diff --git a/unzip.spec b/unzip.spec index 45d6b59d3cdab4a79f87faa99e828ed3dacb1f08..2882479fa5ec79da1ef3fa1c30aae8d0eac594df 100644 --- a/unzip.spec +++ b/unzip.spec @@ -1,4 +1,4 @@ - +%define anolis_release .0.1 # Settings for EL <= 7 %if 0%{?rhel} && 0%{?rhel} <= 7 %{!?__global_ldflags: %global __global_ldflags -Wl,-z,relro} @@ -7,7 +7,7 @@ Summary: A utility for unpacking zip files Name: unzip Version: 6.0 -Release: 46%{?dist} +Release: 46%{anolis_release}%{?dist} License: BSD Group: Applications/Archiving Source: http://downloads.sourceforge.net/infozip/unzip60.tar.gz @@ -79,6 +79,14 @@ Patch34: unzip-zipbomb-switch.patch URL: http://www.info-zip.org/UnZip.html BuildRequires: bzip2-devel +Requires: glibc +Provides: /usr/bin/funzip +Provides: /usr/bin/unzip +Provides: /usr/bin/unzipsfx +Provides: /usr/bin/zipgrep +Provides: /usr/bin/zipinfo + + %description The unzip utility is used to list, test, or extract files from a zip archive. Zip archives are commonly found on MS-DOS systems. The zip @@ -90,6 +98,14 @@ in some respects. Install the unzip package if you need to list, test or extract files from a zip archive. +%package doc +Summary: Documents for %{name} +BuildArch: noarch +Requires: %{name} = %{version}-%{release} + +%description doc +Doc pages for %{name}. + %prep %setup -q -n unzip60 %patch1 -p1 -b .bzip2-configure @@ -144,11 +160,16 @@ make -f unix/Makefile prefix=$RPM_BUILD_ROOT%{_prefix} MANDIR=$RPM_BUILD_ROOT/%{ %files %defattr(-,root,root) %license LICENSE COPYING.OLD -%doc README BUGS %{_bindir}/* %{_mandir}/*/* +%files doc +%doc README BUGS + %changelog +* Mon Jul 18 2022 Hangbo Fan - 6.0-46.0.1 +- Add doc sub package + * Thu Dec 16 2021 Jakub Martisko - 6.0-46 - Add environment variable that disables the zipbomb detection - Resolves: rhbz#2020320