|
|
|
@ -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
|
|
|
|
|