Summary: C Git library
Summary(pl.UTF-8): Biblioteka Git dla C
Name: libgit2
-Version: 1.3.0
+Version: 1.4.3
Release: 1
License: GPL v2 with linking exception
Group: Libraries
#Source0Download: https://github.com/libgit2/libgit2/releases
Source0: https://github.com/libgit2/libgit2/archive/v%{version}/%{name}-%{version}.tar.gz
-# Source0-md5: c8b6658e421d51f0e1a5fe0c17fc41dc
+# Source0-md5: 61b3421e91c7e0e2938dfb36c26f19ba
Patch0: %{name}-no-libgit2-test.patch
URL: http://libgit2.github.com/
BuildRequires: cmake >= 3.5.1
BuildRequires: http-parser-devel >= 2
%{?with_libssh:BuildRequires: libssh2-devel}
BuildRequires: openssl-devel
-BuildRequires: pcre-devel
+BuildRequires: pcre2-8-devel
BuildRequires: pkgconfig
%{?with_tests:BuildRequires: python}
BuildRequires: rpmbuild(macros) >= 1.742
# Type (:PATH or :STRING) must be specified explicitly to avoid expansion
# relative to cwd.
%cmake .. \
- -DINCLUDE_INSTALL_DIR:PATH=include \
- -DLIB_INSTALL_DIR:PATH=%{_lib} \
- %{cmake_on_off tests BUILD_CLAR} \
+ %{cmake_on_off tests BUILD_TESTS} \
+ -DREGEX_BACKEND=pcre2 \
%{cmake_on_off kerberos5 USE_GSSAPI} \
- %{cmake_on_off libssh USE_SSH} \
-DUSE_HTTP_PARSER=system \
- -DTHREADSAFE:BOOL=ON
+ %{cmake_on_off libssh USE_SSH}
%{__make}
%{?with_tests:%{__make} test ARGS="-V"}
%install
rm -rf $RPM_BUILD_ROOT
+
%{__make} -C build install \
DESTDIR=$RPM_BUILD_ROOT
%defattr(644,root,root,755)
%doc AUTHORS docs/contributing.md COPYING README.md
%attr(755,root,root) %{_libdir}/libgit2.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libgit2.so.1.3
+%attr(755,root,root) %ghost %{_libdir}/libgit2.so.1.4
%files devel
%defattr(644,root,root,755)