From 8883eaac9e71340ba3f3bb4a501dac3a11efafb2 Mon Sep 17 00:00:00 2001 From: Liwei Ge Date: Fri, 15 Jul 2022 14:51:04 +0800 Subject: [PATCH] spec: add doc sub package --- zip.spec | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/zip.spec b/zip.spec index b483b33..6b72990 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 -- Gitee