diff --git a/zip.spec b/zip.spec index b483b336aecadd3690d22db124f4bca19fca401b..6b729905719c4bd82d7318572973a6698ce9e09c 100644 --- a/zip.spec +++ b/zip.spec @@ -1,7 +1,8 @@ +%define anolis_release .0.1 Summary: A file compression and packaging utility compatible with PKZIP Name: zip Version: 3.0 -Release: 23%{?dist} +Release: 23%{anolis_release}%{?dist} License: BSD Group: Applications/Archiving Source: http://downloads.sourceforge.net/infozip/zip30.tar.gz @@ -21,6 +22,8 @@ Patch7: zip-3.0-configure.patch Patch8: zip-3.0-covscan1.patch BuildRequires: bzip2-devel Requires: unzip +Requires: glibc +Provides: /usr/bin/zip %global _hardened_build 1 @@ -33,6 +36,14 @@ MS-DOS systems). Install the zip package if you need to compress files using the zip program. +%package doc +Summary: Documents for %{name} +BuildArch: noarch +Requires: %{name} = %{version}-%{release} + +%description doc +Doc pages for %{name}. + %prep %setup -q -n zip30 %patch1 -p1 -b .exec-shield @@ -56,8 +67,6 @@ make -f unix/Makefile prefix=$RPM_BUILD_ROOT%{_prefix} \ %files %license LICENSE -%doc README CHANGES TODO WHATSNEW WHERE README.CR -%doc proginfo/algorith.txt %{_bindir}/zipnote %{_bindir}/zipsplit %{_bindir}/zip @@ -67,7 +76,14 @@ make -f unix/Makefile prefix=$RPM_BUILD_ROOT%{_prefix} \ %{_mandir}/man1/zipnote.1* %{_mandir}/man1/zipsplit.1* +%files doc +%doc README CHANGES TODO WHATSNEW WHERE README.CR +%doc proginfo/algorith.txt + %changelog +* Fri Jul 15 2022 Liwei Ge - 3.0-23.0.1 +- Add doc sub package + * Tue Nov 13 2018 Jakub Martisko - 3.0-23 - Set the ziperr function as noreturn - Fix email in the previous chnagelog entry