]> git.pld-linux.org Git - packages/libzip.git/commitdiff
- updated to 1.8.0 auto/th/libzip-1.8.0-1
authorJakub Bogusz <qboosh@pld-linux.org>
Mon, 11 Apr 2022 17:14:20 +0000 (19:14 +0200)
committerJakub Bogusz <qboosh@pld-linux.org>
Mon, 11 Apr 2022 17:14:20 +0000 (19:14 +0200)
- added pc patch (fixes zstd reference in .pc file)

libzip-pc.patch [new file with mode: 0644]
libzip.spec

diff --git a/libzip-pc.patch b/libzip-pc.patch
new file mode 100644 (file)
index 0000000..6478d81
--- /dev/null
@@ -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)
index 5a25799acbe82ba7938d7c572fea4f10599dc4cf..61940a2c9ed8484ca2b1b6af051568b35d65d1b3 100644 (file)
@@ -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
This page took 0.146108 seconds and 4 git commands to generate.