|
|
|
@ -1,5 +1,5 @@
|
|
|
|
|
Name: libgit2
|
|
|
|
|
Version: 0.26.6
|
|
|
|
|
Version: 0.27.4
|
|
|
|
|
Release: 1%{?dist}
|
|
|
|
|
Summary: C implementation of the Git core methods as a library with a solid API
|
|
|
|
|
License: GPLv2 with exceptions
|
|
|
|
@ -7,12 +7,13 @@ URL: http://libgit2.github.com/
|
|
|
|
|
Source0: https://github.com/libgit2/libgit2/archive/v%{version}/%{name}-%{version}.tar.gz
|
|
|
|
|
|
|
|
|
|
BuildRequires: gcc
|
|
|
|
|
BuildRequires: cmake
|
|
|
|
|
BuildRequires: cmake >= 2.8.11
|
|
|
|
|
BuildRequires: ninja-build
|
|
|
|
|
BuildRequires: http-parser-devel
|
|
|
|
|
BuildRequires: libcurl-devel
|
|
|
|
|
BuildRequires: libssh2-devel
|
|
|
|
|
BuildRequires: openssl-devel
|
|
|
|
|
BuildRequires: python2
|
|
|
|
|
BuildRequires: python3
|
|
|
|
|
BuildRequires: zlib-devel
|
|
|
|
|
Provides: bundled(libxdiff)
|
|
|
|
|
|
|
|
|
@ -36,29 +37,26 @@ developing applications that use %{name}.
|
|
|
|
|
# Remove VCS files from examples
|
|
|
|
|
find examples -name ".gitignore" -delete -print
|
|
|
|
|
|
|
|
|
|
# Fix pkgconfig generation
|
|
|
|
|
sed -i 's|@CMAKE_INSTALL_PREFIX@/||' libgit2.pc.in
|
|
|
|
|
|
|
|
|
|
# Don't test network
|
|
|
|
|
sed -i 's/ionline/xonline/' CMakeLists.txt
|
|
|
|
|
sed -i 's/ionline/xonline/' tests/CMakeLists.txt
|
|
|
|
|
|
|
|
|
|
# Remove bundled libraries
|
|
|
|
|
rm -frv deps
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
mkdir %{_target_platform}
|
|
|
|
|
pushd %{_target_platform}
|
|
|
|
|
%cmake -DTHREADSAFE=ON ..
|
|
|
|
|
popd
|
|
|
|
|
%make_build -C %{_target_platform}
|
|
|
|
|
%cmake . -B%{_target_platform} \
|
|
|
|
|
-GNinja \
|
|
|
|
|
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
|
|
|
|
-DSHA1_BACKEND=OpenSSL \
|
|
|
|
|
-DUSE_HTTPS=OpenSSL \
|
|
|
|
|
%{nil}
|
|
|
|
|
%ninja_build -C %{_target_platform}
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%make_install -C %{_target_platform}
|
|
|
|
|
%ninja_install -C %{_target_platform}
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
pushd %{_target_platform}
|
|
|
|
|
ctest -VV
|
|
|
|
|
popd
|
|
|
|
|
%ninja_test -C %{_target_platform}
|
|
|
|
|
|
|
|
|
|
%ldconfig_scriptlets
|
|
|
|
|
|
|
|
|
@ -74,6 +72,9 @@ popd
|
|
|
|
|
%{_includedir}/git2/
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Fri Aug 10 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.27.4-1
|
|
|
|
|
- Update to 0.27.4
|
|
|
|
|
|
|
|
|
|
* Tue Aug 07 2018 Pete Walter <pwalter@fedoraproject.org> - 0.26.6-1
|
|
|
|
|
- Update to 0.26.6
|
|
|
|
|
|
|
|
|
|