]> git.pld-linux.org Git - packages/libgit2.git/blame - libgit2.spec
ghost soname symlink; cosmetics
[packages/libgit2.git] / libgit2.spec
CommitLineData
e02620dc
KK
1#
2# Conditional build:
3%bcond_without tests # build without tests
3ed59b63 4
e02620dc
KK
5Summary: C git library
6Name: libgit2
7Version: 0.18.0
3ed59b63
ER
8Release: 1
9License: GPL v2 with linking exception
e02620dc 10Group: Libraries
e02620dc
KK
11Source0: https://github.com/libgit2/libgit2/archive/v%{version}.tar.gz?/%{name}-version.tgz
12# Source0-md5: ce6845df0dd084ef2633a69dba64929c
13URL: http://libgit2.github.com/
14BuildRequires: cmake >= 2.6
15BuildRequires: openssl-devel
16%{?with_tests:BuildRequires: python}
17BuildRequires: zlib-devel
18BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19
20%description
21libgit2 is a portable, pure C implementation of the Git core methods
22provided as a re-entrant linkable library with a solid API, allowing
23you to write native speed custom Git applications in any language with
24bindings.
25
26%package devel
27Summary: Header files for %{name} library
28Group: Development/Libraries
29Requires: %{name} = %{version}-%{release}
30
31%description devel
32Header files for %{name} library.
33
34%prep
35%setup -q
36
37%build
3ed59b63 38install -d build
e02620dc
KK
39cd build
40%cmake ..
41%{__make}
42
43%{?with_tests:%{__make} test}
44
45%install
46rm -rf $RPM_BUILD_ROOT
3ed59b63 47%{__make} -C build install \
e02620dc
KK
48 DESTDIR=$RPM_BUILD_ROOT
49
50%clean
51rm -rf $RPM_BUILD_ROOT
52
53%post -p /sbin/ldconfig
54%postun -p /sbin/ldconfig
55
e02620dc
KK
56%files
57%defattr(644,root,root,755)
58%doc AUTHORS CONTRIBUTING.md COPYING README.md
59%attr(755,root,root) %{_libdir}/libgit2.so.*.*.*
3ed59b63 60%ghost %{_libdir}/libgit2.so.0
e02620dc
KK
61
62%files devel
63%defattr(644,root,root,755)
64%attr(755,root,root) %{_libdir}/libgit2.so
65%{_includedir}/git2.h
66%{_includedir}/git2
67%{_pkgconfigdir}/libgit2.pc
This page took 0.097074 seconds and 4 git commands to generate.