Upgrade to 1.7.2

This commit is contained in:
starlet-dx 2024-03-06 11:07:38 +08:00
parent a19db9eaec
commit 08125a3694
3 changed files with 9 additions and 3 deletions

Binary file not shown.

BIN
libgit2-1.7.2.tar.gz Normal file

Binary file not shown.

View File

@ -1,12 +1,12 @@
Name: libgit2
Version: 1.6.5
Version: 1.7.2
Release: 1
Summary: portable, pure C implementation of the Git core methods
License: GPLv2 with exceptions
URL: https://libgit2.org
Source0: https://github.com/libgit2/libgit2/archive/v%{version}/%{name}-%{version}.tar.gz
BuildRequires: gcc cmake >= 2.8.11 ninja-build http-parser-devel libcurl-devel
BuildRequires: gcc cmake >= 3.5.1 ninja-build http-parser-devel libcurl-devel
BuildRequires: libssh2-devel openssl-devel python3 zlib-devel
BuildRequires: pcre2-devel
Provides: bundled(libxdiff)
@ -27,7 +27,10 @@ This package contains libraries and headers for developing applications that use
%autosetup -n %{name}-%{version} -p1
find examples -name ".gitignore" -delete -print
sed -i '/-sonline/s/^/#/' tests/libgit2/CMakeLists.txt
rm -vr deps
# Remove bundled libraries (except libxdiff)
pushd deps
find . -maxdepth 1 -not -name xdiff -exec rm -rf {} ';'
popd
%build
%cmake . -B%{_target_platform} -GNinja -DCMAKE_BUILD_TYPE=RelWithDebInfo \
@ -56,6 +59,9 @@ rm -vr deps
%{_includedir}/git2*
%changelog
* Wed Mar 06 2024 yaoxin <yao_xin001@hoperun.com> - 1.7.2-1
- Upgrade to 1.7.2
* Wed Feb 07 2024 yaoxin <yao_xin001@hoperun.com> - 1.6.5-1
- Upgrade to 1.6.5 for fix CVE-2024-24575 and CVE-2024-24577