diff --git a/tar.spec b/tar.spec index 26a92ffed4daa815dcae53d7e313743b5b7ccd94..7613215abcee4bbf762b6ecd68ee81ace528206f 100644 --- a/tar.spec +++ b/tar.spec @@ -1,3 +1,4 @@ +%define anolis_release .0.1 %if %{?WITH_SELINUX:0}%{!?WITH_SELINUX:1} %global WITH_SELINUX 1 %endif @@ -6,7 +7,7 @@ Summary: A GNU file archiving program Name: tar Epoch: 2 Version: 1.30 -Release: 5%{?dist} +Release: 5%{anolis_release}%{?dist} License: GPLv3+ Group: Applications/Archiving URL: http://www.gnu.org/software/tar/ @@ -56,6 +57,14 @@ backups. If you want to use tar for remote backups, you also need to install the rmt package on the remote box. +%package doc +Summary: Documents for %{name} +BuildArch: noarch +Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release} + +%description doc +Doc pages for %{name}. + %prep %autosetup -p1 autoreconf -v @@ -121,14 +130,19 @@ fi %files -f %{name}.lang %{!?_licensedir:%global license %%doc} %license COPYING -%doc AUTHORS README THANKS NEWS ChangeLog %{_bindir}/tar %{_bindir}/gtar %{_mandir}/man1/tar.1* %{_mandir}/man1/gtar.1* %{_infodir}/tar.info* +%files doc +%doc AUTHORS README THANKS NEWS ChangeLog + %changelog +* Mon Jul 18 2022 Hangbo Fan - 1.30-5.0.1 +- Add doc sub package + * Wed May 20 2020 Ondrej Dubaj - 1.30-5 - fixed NULL return value from xgetcwd (#1837871)