]> git.pld-linux.org Git - packages/libgit2.git/blobdiff - libgit2.spec
- updated to 0.22.2
[packages/libgit2.git] / libgit2.spec
index c907a8af3fd9fc100f7118514dfc66610c566d50..b0e3ad3a196af5c8430e3703d68e12e95dfb55fe 100644 (file)
@@ -6,12 +6,12 @@
 Summary:       C git library
 Summary(pl.UTF-8):     Biblioteka git dla C
 Name:          libgit2
-Version:       0.20.0
+Version:       0.22.2
 Release:       1
 License:       GPL v2 with linking exception
 Group:         Libraries
-Source0:       https://github.com/libgit2/libgit2/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
-# Source0-md5: e35f613a37e11354f34249f2faa68237
+Source0:       https://github.com/libgit2/libgit2/archive/v%{version}/%{name}-%{version}.tar.gz
+# Source0-md5: 7b21448c471dc76a3ca4801b61ac856a
 Patch0:                %{name}-test-online.patch
 Patch1:                %{name}-no-libgit2-test.patch
 URL:           http://libgit2.github.com/
@@ -40,6 +40,8 @@ Summary:      Header files for libgit2 library
 Summary(pl.UTF-8):     Pliki nagłówkowe biblioteki libgit2
 Group:         Development/Libraries
 Requires:      %{name} = %{version}-%{release}
+Requires:      http-parser-devel
+Requires:      libssh2-devel
 Requires:      openssl-devel
 Requires:      zlib-devel
 
@@ -57,8 +59,15 @@ Pliki nagłówkowe biblioteki libgit2.
 %build
 install -d build
 cd build
+# CMakeLists.txt supports only relative LIB_INSTALL_DIR and INCLUDE_INSTALL_DIR
+# (otherwise .pc file is generated incorrectly).
+# Type (:PATH or :STRING) must be specified explicitly to avoid expansion
+# relative to cwd.
 %cmake .. \
-       %{?with_tests_online:-DONLINE_TESTS=1}
+       -DINCLUDE_INSTALL_DIR:PATH=include \
+       -DLIB_INSTALL_DIR:PATH=%{_lib} \
+       %{?with_tests_online:-DONLINE_TESTS:BOOL=ON} \
+       -DTHREADSAFE:BOOL=ON
 %{__make}
 
 %{?with_tests:%{__make} test ARGS="-V"}
@@ -78,7 +87,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.0
+%attr(755,root,root) %ghost %{_libdir}/libgit2.so.22
 
 %files devel
 %defattr(644,root,root,755)
This page took 0.06032 seconds and 4 git commands to generate.