|
|
|
@ -1,13 +1,13 @@
|
|
|
|
|
Name: libgit2
|
|
|
|
|
Version: 0.28.4
|
|
|
|
|
Release: 2%{?dist}
|
|
|
|
|
Version: 0.99.0
|
|
|
|
|
Release: 1%{?dist}
|
|
|
|
|
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
|
|
|
|
|
|
|
|
|
|
BuildRequires: gcc
|
|
|
|
|
BuildRequires: cmake >= 2.8.11
|
|
|
|
|
BuildRequires: cmake >= 3.5.1
|
|
|
|
|
BuildRequires: ninja-build
|
|
|
|
|
BuildRequires: http-parser-devel
|
|
|
|
|
BuildRequires: libcurl-devel
|
|
|
|
@ -40,17 +40,19 @@ developing applications that use %{name}.
|
|
|
|
|
find examples -name ".gitignore" -delete -print
|
|
|
|
|
|
|
|
|
|
# Don't run "online" tests
|
|
|
|
|
sed -i '/ADD_TEST(online/s/^/#/' tests/CMakeLists.txt
|
|
|
|
|
sed -i '/-sonline/s/^/#/' tests/CMakeLists.txt
|
|
|
|
|
|
|
|
|
|
# Remove bundled libraries
|
|
|
|
|
rm -frv deps
|
|
|
|
|
rm -vr deps
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%cmake . -B%{_target_platform} \
|
|
|
|
|
-GNinja \
|
|
|
|
|
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
|
|
|
|
-DSHA1_BACKEND=OpenSSL \
|
|
|
|
|
-DUSE_HTTP_PARSER=system \
|
|
|
|
|
-DUSE_SHA1=HTTPS \
|
|
|
|
|
-DUSE_HTTPS=OpenSSL \
|
|
|
|
|
-DUSE_NTLMCLIENT=OFF \
|
|
|
|
|
%{nil}
|
|
|
|
|
%ninja_build -C %{_target_platform}
|
|
|
|
|
|
|
|
|
@ -72,6 +74,9 @@ rm -frv deps
|
|
|
|
|
%{_includedir}/git2/
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Mon Mar 02 2020 Igor Raits <ignatenkobrain@fedoraproject.org> - 0.99.0-1
|
|
|
|
|
- Update to 0.99.0
|
|
|
|
|
|
|
|
|
|
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.28.4-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|