]> git.pld-linux.org Git - packages/libgit2.git/blame - libgit2.spec
- added no-libgit2-test patch (disable patch requiring local libgit2 repository,...
[packages/libgit2.git] / libgit2.spec
CommitLineData
e02620dc
KK
1#
2# Conditional build:
3%bcond_without tests # build without tests
c1bf3b60 4%bcond_with tests_online # build with tests reqiuring online access
3ed59b63 5
e02620dc 6Summary: C git library
6053f043 7Summary(pl.UTF-8): Biblioteka git dla C
e02620dc 8Name: libgit2
8a14caad 9Version: 0.20.0
3ed59b63
ER
10Release: 1
11License: GPL v2 with linking exception
e02620dc 12Group: Libraries
43bce41a 13Source0: https://github.com/libgit2/libgit2/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
8a14caad 14# Source0-md5: e35f613a37e11354f34249f2faa68237
43bce41a 15Patch0: %{name}-test-online.patch
6bc0cd1c 16Patch1: %{name}-no-libgit2-test.patch
e02620dc
KK
17URL: http://libgit2.github.com/
18BuildRequires: cmake >= 2.6
3c0e613e 19BuildRequires: http-parser-devel
43bce41a 20BuildRequires: libssh2-devel
e02620dc
KK
21BuildRequires: openssl-devel
22%{?with_tests:BuildRequires: python}
23BuildRequires: zlib-devel
24BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25
26%description
27libgit2 is a portable, pure C implementation of the Git core methods
28provided as a re-entrant linkable library with a solid API, allowing
29you to write native speed custom Git applications in any language with
30bindings.
31
6053f043
JB
32%description -l pl.UTF-8
33libgit2 to przenośna implementacja w czystym C głównych metod Gita,
34udostępniona jako bezpieczna dla wątków biblioteka ze stałym API,
35pozwalająca na pisanie własnych aplikacji dla Gita o natywnej
36szybkości w dowolnym języku posiadającym odpowiednie wiązania.
37
e02620dc 38%package devel
6053f043
JB
39Summary: Header files for libgit2 library
40Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libgit2
e02620dc
KK
41Group: Development/Libraries
42Requires: %{name} = %{version}-%{release}
6053f043
JB
43Requires: openssl-devel
44Requires: zlib-devel
e02620dc
KK
45
46%description devel
6053f043
JB
47Header files for libgit2 library.
48
49%description devel -l pl.UTF-8
50Pliki nagłówkowe biblioteki libgit2.
e02620dc
KK
51
52%prep
53%setup -q
3c0e613e 54%patch0 -p1
6bc0cd1c 55%patch1 -p1
e02620dc
KK
56
57%build
3ed59b63 58install -d build
e02620dc 59cd build
43bce41a
JB
60%cmake .. \
61 %{?with_tests_online:-DONLINE_TESTS=1}
e02620dc
KK
62%{__make}
63
d1549dd1 64%{?with_tests:%{__make} test ARGS="-V"}
e02620dc
KK
65
66%install
67rm -rf $RPM_BUILD_ROOT
3ed59b63 68%{__make} -C build install \
e02620dc
KK
69 DESTDIR=$RPM_BUILD_ROOT
70
71%clean
72rm -rf $RPM_BUILD_ROOT
73
74%post -p /sbin/ldconfig
75%postun -p /sbin/ldconfig
76
e02620dc
KK
77%files
78%defattr(644,root,root,755)
79%doc AUTHORS CONTRIBUTING.md COPYING README.md
80%attr(755,root,root) %{_libdir}/libgit2.so.*.*.*
6053f043 81%attr(755,root,root) %ghost %{_libdir}/libgit2.so.0
e02620dc
KK
82
83%files devel
84%defattr(644,root,root,755)
85%attr(755,root,root) %{_libdir}/libgit2.so
86%{_includedir}/git2.h
87%{_includedir}/git2
88%{_pkgconfigdir}/libgit2.pc
This page took 0.057856 seconds and 4 git commands to generate.