Merge branch 'f39' into epel9

epel9 imports/epel9/libgit2-1.7.2-2.el9
Pete Walter 11 months ago
commit 34a8126ec6

2
.gitignore vendored

@ -46,3 +46,5 @@
/libgit2-1.6.2.tar.gz
/libgit2-1.6.3.tar.gz
/libgit2-1.6.4.tar.gz
/libgit2-1.7.1.tar.gz
/libgit2-1.7.2.tar.gz

@ -6,7 +6,7 @@
%endif
Name: libgit2
Version: 1.6.4
Version: 1.7.2
Release: %autorelease
Summary: C implementation of the Git core methods as a library with a solid API
License: GPLv2 with exceptions
@ -17,6 +17,7 @@ BuildRequires: gcc
BuildRequires: cmake >= 3.5.1
BuildRequires: ninja-build
BuildRequires: http-parser-devel
BuildRequires: krb5-devel
BuildRequires: libcurl-devel
%if %{with libssh2}
BuildRequires: libssh2-devel
@ -58,8 +59,19 @@ find examples -name ".gitignore" -delete -print
# Don't run "online" tests
sed -i '/-sonline/s/^/#/' tests/libgit2/CMakeLists.txt
# Remove bundled libraries
rm -vr deps
%if 0%{?fedora} >= 40 || 0%{?rhel} >= 10
# On Fedora 40+ and RHEL 10+, we're using zlib-ng rather than
# zlib for compression. As a result, all of the pack tests fail
# due to checking the hashes of the packed data against static
# values that were created with zlib.
# https://github.com/libgit2/libgit2/issues/6728
sed -i 's/-xonline/-xonline -xpack/' tests/libgit2/CMakeLists.txt
%endif
# Remove bundled libraries (except libxdiff)
pushd deps
find . -maxdepth 1 -not -name xdiff -exec rm -rf {} ';'
popd
%build
%cmake \
@ -87,7 +99,7 @@ rm -vr deps
%files
%license COPYING
%{_libdir}/libgit2.so.1.6*
%{_libdir}/libgit2.so.1.7*
%files devel
%doc AUTHORS docs examples README.md

@ -1 +1 @@
SHA512 (libgit2-1.6.4.tar.gz) = fd73df91710f19b0d6c3765c37c7f529233196da91cf4d58028a8d3840244f11df44abafabd74a8ed1cbe4826d1afd6ff9f01316d183ace0924c65e7cf0eb8d5
SHA512 (libgit2-1.7.2.tar.gz) = 825737e4a1991fba50ea535f15b0e560ebe76ead752e04aeba36925b944d0da77fe9826a70980a1aa3d0bf9afbedfab79dd92e799c9252931384c89ebec9b012

Loading…
Cancel
Save