]> git.pld-linux.org Git - packages/libgit2.git/blobdiff - libgit2.spec
up to 0.24.0, SONAME change
[packages/libgit2.git] / libgit2.spec
index 6a3e4b32fd2ab2b7fcce29e868e2e56e3bacdb7f..461f55f399a8160c4005bb1d5dfbb4ecfbd65611 100644 (file)
@@ -1,24 +1,28 @@
 #
 # 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.21.0
+Version:       0.24.0
 Release:       1
 License:       GPL v2 with linking exception
 Group:         Libraries
 Source0:       https://github.com/libgit2/libgit2/archive/v%{version}/%{name}-%{version}.tar.gz
-# Source0-md5: 06b598bf21b0536dcbf454dc63af2313
+# 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)
@@ -67,7 +71,8 @@ cd build
        -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"}
@@ -87,7 +92,7 @@ rm -rf $RPM_BUILD_ROOT
 %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.21
+%attr(755,root,root) %ghost %{_libdir}/libgit2.so.24
 
 %files devel
 %defattr(644,root,root,755)
This page took 0.031103 seconds and 4 git commands to generate.