#
# Conditional build:
+%bcond_without kerberos5 # GSSAPI for SPNEGO auth
%bcond_without tests # build without tests
%bcond_with tests_online # build with tests reqiuring online access
-Summary: C git library
-Summary(pl.UTF-8): Biblioteka git dla C
+Summary: C Git library
+Summary(pl.UTF-8): Biblioteka Git dla C
Name: libgit2
-Version: 0.20.0
-Release: 3
+Version: 0.24.0
+Release: 1
License: GPL v2 with linking exception
Group: Libraries
-Source0: https://github.com/libgit2/libgit2/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
-# Source0-md5: e35f613a37e11354f34249f2faa68237
+Source0: https://github.com/libgit2/libgit2/archive/v%{version}/%{name}-%{version}.tar.gz
+# Source0-md5: 8cabf04502d7203793b32f47ca410ae3
Patch0: %{name}-test-online.patch
Patch1: %{name}-no-libgit2-test.patch
URL: http://libgit2.github.com/
-BuildRequires: cmake >= 2.6
-BuildRequires: http-parser-devel
+BuildRequires: cmake >= 2.8
+BuildRequires: curl-devel
+%{?with_kerberos5:BuildRequires: heimdal-devel}
+BuildRequires: http-parser-devel >= 2
BuildRequires: libssh2-devel
BuildRequires: openssl-devel
+BuildRequires: pkgconfig
%{?with_tests:BuildRequires: python}
BuildRequires: zlib-devel
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
-DINCLUDE_INSTALL_DIR:PATH=include \
-DLIB_INSTALL_DIR:PATH=%{_lib} \
%{?with_tests_online:-DONLINE_TESTS:BOOL=ON} \
- -DTHREADSAFE:BOOL=ON
+ -DTHREADSAFE:BOOL=ON \
+ %{?with_kerberos5:-DUSE_GSSAPI:BOOL=ON}
%{__make}
%{?with_tests:%{__make} test ARGS="-V"}
%defattr(644,root,root,755)
%doc AUTHORS CONTRIBUTING.md COPYING README.md
%attr(755,root,root) %{_libdir}/libgit2.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libgit2.so.0
+%attr(755,root,root) %ghost %{_libdir}/libgit2.so.24
%files devel
%defattr(644,root,root,755)