[packages/libzip] - updated to 1.8.0 - added pc patch (fixes zstd reference in .pc file)
qboosh
qboosh at pld-linux.org
Mon Apr 11 19:14:24 CEST 2022
commit d6b0a07293f979315ae139e82dadaca49e94f8f5
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Mon Apr 11 19:14:20 2022 +0200
- updated to 1.8.0
- added pc patch (fixes zstd reference in .pc file)
libzip-pc.patch | 10 ++++++++++
libzip.spec | 10 +++++++---
2 files changed, 17 insertions(+), 3 deletions(-)
---
diff --git a/libzip.spec b/libzip.spec
index 5a25799..61940a2 100644
--- a/libzip.spec
+++ b/libzip.spec
@@ -5,16 +5,18 @@
Summary: C library for reading, creating, and modifying zip archives
Summary(pl.UTF-8): Biblioteka C do odczytu, zapisu i modyfikacji archiwów zip
Name: libzip
-Version: 1.7.3
-Release: 2
+Version: 1.8.0
+Release: 1
License: BSD
Group: Libraries
Source0: https://libzip.org/download/%{name}-%{version}.tar.xz
-# Source0-md5: c0185e10023963bbec0e0002ab39d981
+# Source0-md5: c0448fb7be85bc1caa87bc2fe5ab5ff8
+Patch0: %{name}-pc.patch
URL: https://libzip.org/
BuildRequires: bzip2-devel
BuildRequires: cmake >= 3.0.2
BuildRequires: groff
+# also mbedtls >= 1.0 supported
%{?with_gnutls:BuildRequires: gnutls-devel}
%{?with_gnutls:BuildRequires: nettle-devel >= 3.0}
%{!?with_gnutls:BuildRequires: openssl-devel}
@@ -23,6 +25,7 @@ BuildRequires: tar >= 1:1.22
BuildRequires: xz
BuildRequires: xz-devel >= 1:5.2
BuildRequires: zlib-devel >= 1.1.2
+BuildRequires: zstd-devel
Requires: zlib >= 1.1.2
Requires: xz-libs >= 1:5.2
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -60,6 +63,7 @@ Pliki nagłówkowe biblioteki libzip.
%prep
%setup -q
+%patch0 -p1
%build
install -d build
diff --git a/libzip-pc.patch b/libzip-pc.patch
new file mode 100644
index 0000000..6478d81
--- /dev/null
+++ b/libzip-pc.patch
@@ -0,0 +1,10 @@
+--- libzip-1.8.0/CMakeLists.txt.orig 2021-06-18 18:08:29.000000000 +0200
++++ libzip-1.8.0/CMakeLists.txt 2022-04-11 18:02:41.493156907 +0200
+@@ -303,6 +303,7 @@ string(REGEX REPLACE "-lOpenSSL::Crypto"
+ string(REGEX REPLACE "-lZLIB::ZLIB" "-lz" LIBS ${LIBS})
+ string(REGEX REPLACE "-lGnuTLS::GnuTLS" "-lgnutls" LIBS ${LIBS})
+ string(REGEX REPLACE "-lNettle::Nettle" "-lnettle" LIBS ${LIBS})
++string(REGEX REPLACE "-lZstd::Zstd" "-lzstd" LIBS ${LIBS})
+ configure_file(libzip.pc.in libzip.pc @ONLY)
+ if(LIBZIP_DO_INSTALL)
+ install(FILES ${PROJECT_BINARY_DIR}/libzip.pc DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig)
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/libzip.git/commitdiff/d6b0a07293f979315ae139e82dadaca49e94f8f5
More information about the pld-cvs-commit
mailing list