%bcond_without curl # Use cURL for HTTP
%bcond_without kerberos5 # GSSAPI for SPNEGO auth
%bcond_without libssh # SSH support via libssh2
-%bcond_without tests # build without tests
+%bcond_with tests # build without tests
Summary: C Git library
Summary(pl.UTF-8): Biblioteka Git dla C
Name: libgit2
-Version: 0.28.2
-Release: 1
+Version: 1.0.0
+Release: 0.1
License: GPL v2 with linking exception
Group: Libraries
#Source0Download: https://github.com/libgit2/libgit2/releases
Source0: https://github.com/libgit2/libgit2/archive/v%{version}/%{name}-%{version}.tar.gz
-# Source0-md5: 07768918ff33688ae14a18b412f3bc1f
+# Source0-md5: 5ce9b630203573e544d663cbd750040f
Patch0: %{name}-no-libgit2-test.patch
URL: http://libgit2.github.com/
BuildRequires: cmake >= 3.0
%patch0 -p1
# Don't test network
-sed -i 's/ionline/xonline/' tests/CMakeLists.txt
+sed -i '/ADD_TEST(online/s/^/#/' tests/CMakeLists.txt
%build
install -d build
%defattr(644,root,root,755)
%doc AUTHORS docs/contributing.md COPYING README.md
%attr(755,root,root) %{_libdir}/libgit2.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libgit2.so.28
+%attr(755,root,root) %ghost %{_libdir}/libgit2.so.1.0
%files devel
%defattr(644,root,root,755)