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