diff --git a/libzip-1.10.1.tar.xz b/libzip-1.10.1.tar.xz new file mode 100644 index 0000000000000000000000000000000000000000..7341dd2081a15fc066a7408ae8d968d0ba66c58c Binary files /dev/null and b/libzip-1.10.1.tar.xz differ diff --git a/libzip-1.9.2.tar.xz b/libzip-1.9.2.tar.xz deleted file mode 100644 index 44a4f4b35c277ea7fec9647360bae2edc452f526..0000000000000000000000000000000000000000 Binary files a/libzip-1.9.2.tar.xz and /dev/null differ diff --git a/libzip.spec b/libzip.spec index 7e9899b84d992c27dd2f0f7dee76591d61948969..095dfad7034360736355a208fa7f5306f3bba692 100644 --- a/libzip.spec +++ b/libzip.spec @@ -1,12 +1,11 @@ -%define anolis_release 2 %bcond_without tests Name: libzip -Version: 1.9.2 -Release: %{anolis_release}%{dist} +Version: 1.10.1 +Release: 5%{?dist} Summary: C library for reading, creating, and modifying zip archives -License: BSD +License: BSD-3-Clause URL: https://libzip.org/ Source0: https://libzip.org/download/libzip-%{version}.tar.xz @@ -15,23 +14,13 @@ BuildRequires: zlib-devel BuildRequires: bzip2-devel BuildRequires: openssl-devel BuildRequires: xz-devel -BuildRequires: libzstd-devel -BuildRequires: cmake >= 3.0.2 -# Needed to run the test suite -# find regress/ -type f | /usr/lib/rpm/perl.req -# find regress/ -type f | /usr/lib/rpm/perl.prov -BuildRequires: perl-interpreter -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) +BuildRequires: libzstd-devel >= 1.3.6 +BuildRequires: cmake >= 3.4 BuildRequires: mandoc +%if %{with tests} +BuildRequires: nihtest +%endif + %description libzip is a C library for reading, creating, and modifying zip archives. Files @@ -39,17 +28,19 @@ can be added from data buffers, files, or compressed data copied directly from other zip archives. Changes made without closing the archive can be reverted. The API is documented by man pages. + %package devel Summary: Development files for %{name} -Requires: %{name} = %{version}-%{release} +Requires: %{name}%{?_isa} = %{version}-%{release} %description devel The %{name}-devel package contains libraries and header files for developing applications that use %{name}. + %package tools Summary: Command line tools from %{name} -Requires: %{name} = %{version}-%{release} +Requires: %{name}%{?_isa} = %{version}-%{release} %description tools The %{name}-tools package provides command line tools split off %{name}: @@ -57,13 +48,6 @@ The %{name}-tools package provides command line tools split off %{name}: - zipmerge - ziptool -%package doc -Summary: Documentation files for %{name} -Requires: %{name} = %{EVR} -BuildArch: noarch - -%description doc -The %{name}-doc package contains documentation files for %{name}. %prep %autosetup -p1 @@ -75,6 +59,7 @@ rm INSTALL.md sed -e '/clone-fs-/d' \ -i regress/CMakeLists.txt + %build %cmake \ -DENABLE_COMMONCRYPTO:BOOL=OFF \ @@ -92,9 +77,11 @@ sed -e '/clone-fs-/d' \ %cmake_build + %install %cmake_install + %check %if %{with tests} %ctest @@ -102,25 +89,20 @@ sed -e '/clone-fs-/d' \ : Test suite disabled %endif -%generate_compatibility_deps + +%ldconfig_scriptlets + %files %license LICENSE %{_libdir}/libzip.so.5* -%dir %{abidir} -%{abidir}/libzip.dump - %files tools %{_bindir}/zipcmp %{_bindir}/zipmerge %{_bindir}/ziptool %{_mandir}/man1/zip* -%{abidir}/zipcmp-option.list -%{abidir}/zipmerge-option.list -%{abidir}/ziptool-option.list - %files devel %doc AUTHORS THANKS *.md %{_includedir}/zip.h @@ -132,10 +114,11 @@ sed -e '/clone-fs-/d' \ %{_mandir}/man3/zip* %{_mandir}/man3/ZIP* -%files doc -%doc AUTHORS README.md %changelog +* Wed Feb 19 2025 Liwei Ge - 1.10.1-5 +- Sync up CentOS upstream libzip-1.10.1-5 (tdawson@redhat.com) + * Tue Nov 7 2023 Wenlong Zhang - 1.9.2-2 - fix the error man directory can not found