3 %bcond_without tests # build without tests
9 License: GPL v2 with linking exception
11 Source0: https://github.com/libgit2/libgit2/archive/v%{version}.tar.gz?/%{name}-version.tgz
12 # Source0-md5: ce6845df0dd084ef2633a69dba64929c
13 URL: http://libgit2.github.com/
14 BuildRequires: cmake >= 2.6
15 BuildRequires: openssl-devel
16 %{?with_tests:BuildRequires: python}
17 BuildRequires: zlib-devel
18 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21 libgit2 is a portable, pure C implementation of the Git core methods
22 provided as a re-entrant linkable library with a solid API, allowing
23 you to write native speed custom Git applications in any language with
27 Summary: Header files for %{name} library
28 Group: Development/Libraries
29 Requires: %{name} = %{version}-%{release}
32 Header files for %{name} library.
43 %{?with_tests:%{__make} test}
46 rm -rf $RPM_BUILD_ROOT
47 %{__make} -C build install \
48 DESTDIR=$RPM_BUILD_ROOT
51 rm -rf $RPM_BUILD_ROOT
53 %post -p /sbin/ldconfig
54 %postun -p /sbin/ldconfig
57 %defattr(644,root,root,755)
58 %doc AUTHORS CONTRIBUTING.md COPYING README.md
59 %attr(755,root,root) %{_libdir}/libgit2.so.*.*.*
60 %ghost %{_libdir}/libgit2.so.0
63 %defattr(644,root,root,755)
64 %attr(755,root,root) %{_libdir}/libgit2.so
67 %{_pkgconfigdir}/libgit2.pc