|
@@ -2,27 +2,36 @@
|
|
|
|
|
|
Summary: C library for reading, creating, and modifying zip archives
|
|
|
Name: libzip
|
|
|
-Version: 1.4.0
|
|
|
+Version: 1.7.3
|
|
|
Release: 1%{?_dist_release}
|
|
|
-
|
|
|
Group: System Environment/Libraries
|
|
|
+Vendor: Project Vine
|
|
|
+Distribution: Vine Linux
|
|
|
+
|
|
|
License: BSD
|
|
|
URL: https://libzip.org/
|
|
|
Source0: https://libzip.org/download/%{name}-%{version}.tar.xz
|
|
|
|
|
|
-# allow path customization (lib64)
|
|
|
-Patch0: libzip-upstream.patch
|
|
|
-# drop RPATH from installed binaries
|
|
|
-Patch1: libzip-rpath.patch
|
|
|
-# fix multi-lib issue
|
|
|
-Patch2: libzip-multilib.patch
|
|
|
-
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
-BuildRequires: zlib-devel >= 1.2.2
|
|
|
+BuildRequires: zlib-devel
|
|
|
BuildRequires: bzip2-devel
|
|
|
+BuildRequires: xz-devel
|
|
|
+BuildRequires: openssl-devel
|
|
|
BuildRequires: pkgconfig
|
|
|
BuildRequires: cmake
|
|
|
|
|
|
+BuildRequires: perl
|
|
|
+BuildRequires: perl(Cwd)
|
|
|
+BuildRequires: perl(File::Copy)
|
|
|
+BuildRequires: perl(File::Path)
|
|
|
+BuildRequires: perl(Getopt::Long)
|
|
|
+BuildRequires: perl(IPC::Open3)
|
|
|
+BuildRequires: perl(Storable)
|
|
|
+BuildRequires: perl(Symbol)
|
|
|
+BuildRequires: perl(UNIVERSAL)
|
|
|
+BuildRequires: perl(strict)
|
|
|
+BuildRequires: perl(warnings)
|
|
|
+
|
|
|
%description
|
|
|
libzip is a C library for reading, creating, and modifying zip archives. Files
|
|
|
can be added from data buffers, files, or compressed data copied directly from
|
|
@@ -40,29 +49,51 @@ Requires: zlib-devel
|
|
|
The %{name}-devel package contains libraries and header files for
|
|
|
developing applications that use %{name}.
|
|
|
|
|
|
+
|
|
|
%prep
|
|
|
%autosetup -p1
|
|
|
|
|
|
+
|
|
|
%build
|
|
|
-%cmake .
|
|
|
+%cmake \
|
|
|
+ -DENABLE_COMMONCRYPTO:BOOL=OFF \
|
|
|
+ -DENABLE_GNUTLS:BOOL=OFF \
|
|
|
+ -DENABLE_MBEDTLS:BOOL=OFF \
|
|
|
+ -DENABLE_OPENSSL:BOOL=ON \
|
|
|
+ -DENABLE_WINDOWS_CRYPTO:BOOL=OFF \
|
|
|
+ -DENABLE_BZIP2:BOOL=ON \
|
|
|
+ -DENABLE_LZMA:BOOL=ON \
|
|
|
+ -DBUILD_TOOLS:BOOL=ON \
|
|
|
+ -DBUILD_REGRESS:BOOL=ON \
|
|
|
+ -DBUILD_EXAMPLES:BOOL=OFF \
|
|
|
+ -DBUILD_DOC:BOOL=ON \
|
|
|
+ .
|
|
|
+
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
+
|
|
|
%install
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
make install DESTDIR=$RPM_BUILD_ROOT INSTALL='install -p'
|
|
|
|
|
|
-find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
|
|
|
+
|
|
|
+%check
|
|
|
+make check
|
|
|
+
|
|
|
|
|
|
%clean
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
+
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
|
|
+
|
|
|
%files
|
|
|
%defattr(-,root,root,-)
|
|
|
-%doc LICENSE* AUTHORS* NEWS* README* THANKS* TODO*
|
|
|
+%license LICENSE*
|
|
|
+%doc AUTHORS THANKS *.md
|
|
|
%{_bindir}/*
|
|
|
%{_libdir}/libzip.so.*
|
|
|
%{_mandir}/man1/*zip*
|
|
@@ -72,10 +103,19 @@ rm -rf $RPM_BUILD_ROOT
|
|
|
%{_includedir}/*
|
|
|
%{_libdir}/libzip.so
|
|
|
%{_libdir}/pkgconfig/libzip.pc
|
|
|
+%dir %{_libdir}/cmake
|
|
|
+%{_libdir}/cmake/libzip
|
|
|
%{_mandir}/man3/*
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
+* Thu Jul 16 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.7.3-1
|
|
|
+- new upstream release.
|
|
|
+
|
|
|
+* Sat Jul 11 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.7.1-1
|
|
|
+- new upstream release.
|
|
|
+- dropped all patches.
|
|
|
+
|
|
|
* Mon Jan 08 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.4.0-1
|
|
|
- new upstream release.
|
|
|
- import patches from rawhide.
|