mirror of
https://abf.rosa.ru/djam/libgit2.git
synced 2025-02-23 14:42:56 +00:00
Update to 1.4.2
This commit is contained in:
parent
75acc21bec
commit
9af4114340
2 changed files with 14 additions and 21 deletions
4
.abf.yml
4
.abf.yml
|
@ -1,4 +1,2 @@
|
||||||
removed_sources:
|
|
||||||
libgit2-0.24.1.tar.gz: 198ac53d713c521d940951ab5d6b90b75b941918
|
|
||||||
sources:
|
sources:
|
||||||
libgit2-0.26.0.tar.gz: 7e9792e3d2ee88719f0d7cb59737256bfc1cddbb
|
libgit2-1.4.2.tar.gz: 2b12cbf784a753f0cb44a728002aa0191072af43
|
||||||
|
|
31
libgit2.spec
31
libgit2.spec
|
@ -1,17 +1,18 @@
|
||||||
%define major 26
|
%define major 1.4
|
||||||
%define libname %mklibname git2_ %{major}
|
%define libname %mklibname git2_ %{major}
|
||||||
%define devname %mklibname git2 -d
|
%define devname %mklibname git2 -d
|
||||||
|
|
||||||
Summary: A C implementation of the Git core methods as a library
|
Summary: A C implementation of the Git core methods as a library
|
||||||
Name: libgit2
|
Name: libgit2
|
||||||
Version: 0.26.0
|
Version: 1.4.2
|
||||||
Release: 4
|
Release: 1
|
||||||
License: GPLv2 with exceptions
|
License: GPLv2 with exceptions
|
||||||
Group: System/Libraries
|
Group: System/Libraries
|
||||||
Url: http://libgit2.github.com/
|
Url: http://libgit2.github.com/
|
||||||
Source0: https://github.com/libgit2/libgit2/archive/v%{version}/%{name}-%{version}.tar.gz
|
Source0: https://github.com/libgit2/libgit2/archive/v%{version}/%{name}-%{version}.tar.gz
|
||||||
BuildRequires: cmake
|
BuildRequires: cmake
|
||||||
BuildRequires: http-parser-devel
|
BuildRequires: pkgconfig(krb5-gssapi)
|
||||||
|
BuildRequires: pkgconfig(libpcre)
|
||||||
BuildRequires: pkgconfig(libssh2)
|
BuildRequires: pkgconfig(libssh2)
|
||||||
BuildRequires: pkgconfig(openssl)
|
BuildRequires: pkgconfig(openssl)
|
||||||
BuildRequires: pkgconfig(zlib)
|
BuildRequires: pkgconfig(zlib)
|
||||||
|
@ -37,7 +38,7 @@ with bindings.
|
||||||
%files -n %{libname}
|
%files -n %{libname}
|
||||||
%doc README.md COPYING AUTHORS
|
%doc README.md COPYING AUTHORS
|
||||||
%{_libdir}/libgit2.so.%{major}
|
%{_libdir}/libgit2.so.%{major}
|
||||||
%{_libdir}/libgit2.so.0.%{major}.*
|
%{_libdir}/libgit2.so.%{major}.*
|
||||||
|
|
||||||
#----------------------------------------------------------------------------
|
#----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
@ -51,7 +52,8 @@ The %{name}-devel package contains libraries and header files for
|
||||||
developing applications that use %{name}.
|
developing applications that use %{name}.
|
||||||
|
|
||||||
%files -n %{devname}
|
%files -n %{devname}
|
||||||
%doc docs examples
|
%doc AUTHORS docs examples README.md SECURITY.md
|
||||||
|
%license COPYING
|
||||||
%{_libdir}/libgit2.so
|
%{_libdir}/libgit2.so
|
||||||
%{_libdir}/pkgconfig/libgit2.pc
|
%{_libdir}/pkgconfig/libgit2.pc
|
||||||
%{_includedir}/git2*
|
%{_includedir}/git2*
|
||||||
|
@ -59,26 +61,19 @@ developing applications that use %{name}.
|
||||||
#----------------------------------------------------------------------------
|
#----------------------------------------------------------------------------
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%autosetup -p1
|
||||||
%apply_patches
|
|
||||||
|
|
||||||
# Remove VCS files from examples
|
# Remove VCS files from examples
|
||||||
find examples -name ".gitignore" -delete
|
find examples -name ".gitignore" -delete
|
||||||
|
|
||||||
# Fix pkgconfig generation
|
# Remove some bundled libraries
|
||||||
sed -i 's|@CMAKE_INSTALL_PREFIX@/||' libgit2.pc.in
|
rm -rf deps/{chromium-zlib,pcre,winhttp,zlib}
|
||||||
|
|
||||||
# Don't test network
|
|
||||||
sed -i 's/ionline/xonline/' CMakeLists.txt
|
|
||||||
|
|
||||||
# Remove bundled libraries
|
|
||||||
rm -rf deps
|
|
||||||
#rm -rf src/xdiff
|
#rm -rf src/xdiff
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%cmake \
|
%cmake \
|
||||||
-DTHREADSAFE:BOOL=ON \
|
-DBUILD_TESTS=OFF \
|
||||||
-DUSE_SSH:BOOL=ON
|
-DUSE_SSH=ON
|
||||||
%make
|
%make
|
||||||
|
|
||||||
%install
|
%install
|
||||||
|
|
Loading…
Add table
Reference in a new issue