|
|
|
@ -6,12 +6,12 @@
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
Name: libgit2
|
|
|
|
|
Version: 1.1.0
|
|
|
|
|
Version: 1.3.0
|
|
|
|
|
Release: %autorelease
|
|
|
|
|
Summary: C implementation of the Git core methods as a library with a solid API
|
|
|
|
|
License: GPLv2 with exceptions
|
|
|
|
|
URL: https://libgit2.org/
|
|
|
|
|
Source0: https://github.com/libgit2/libgit2/archive/v%{version}/%{name}-%{version}.tar.gz
|
|
|
|
|
Source0: https://github.com/libgit2/libgit2/archive/refs/tags/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
|
|
|
|
|
|
|
|
|
BuildRequires: gcc
|
|
|
|
|
BuildRequires: cmake >= 3.5.1
|
|
|
|
@ -25,6 +25,7 @@ BuildRequires: openssl-devel
|
|
|
|
|
BuildRequires: pcre2-devel
|
|
|
|
|
BuildRequires: python3
|
|
|
|
|
BuildRequires: zlib-devel
|
|
|
|
|
BuildRequires: libgit2
|
|
|
|
|
Provides: bundled(libxdiff)
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
@ -54,7 +55,7 @@ sed -i '/-sonline/s/^/#/' tests/CMakeLists.txt
|
|
|
|
|
rm -vr deps
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%cmake . -B%{_target_platform} \
|
|
|
|
|
%cmake \
|
|
|
|
|
-GNinja \
|
|
|
|
|
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
|
|
|
|
-DREGEX_BACKEND=pcre2 \
|
|
|
|
@ -66,17 +67,20 @@ rm -vr deps
|
|
|
|
|
-DUSE_SSH=OFF \
|
|
|
|
|
%endif
|
|
|
|
|
%{nil}
|
|
|
|
|
%ninja_build -C %{_target_platform}
|
|
|
|
|
%cmake_build
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%ninja_install -C %{_target_platform}
|
|
|
|
|
%cmake_install
|
|
|
|
|
# Include previous ABI version for temporary binary compatibility
|
|
|
|
|
cp -a %{_libdir}/libgit2.so.1.1* %{buildroot}%{_libdir}
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
%ninja_test -C %{_target_platform}
|
|
|
|
|
%ctest
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%license COPYING
|
|
|
|
|
%{_libdir}/libgit2.so.*
|
|
|
|
|
%{_libdir}/libgit2.so.1.3*
|
|
|
|
|
%{_libdir}/libgit2.so.1.1*
|
|
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
|
%doc AUTHORS docs examples README.md
|
|
|
|
|