From 5003f1752c7c0088a7ef360008f59e7d39171f8c Mon Sep 17 00:00:00 2001 From: liuxiaoping Date: Sat, 16 Jul 2022 10:29:09 +0800 Subject: [PATCH] add doc sub package --- rear.spec | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/rear.spec b/rear.spec index c35c67b..ebbe9a6 100644 --- a/rear.spec +++ b/rear.spec @@ -1,9 +1,10 @@ +%define anolis_release .0.1 %define debug_package %{nil} Summary: Relax-and-Recover is a Linux disaster recovery and system migration tool Name: rear Version: 2.6 -Release: 4%{?dist} +Release: 4%{anolis_release}%{?dist} License: GPLv3 Group: Applications/File URL: http://relax-and-recover.org/ @@ -39,6 +40,8 @@ Requires: bc Requires: file Requires: dhcp-client +Provides: /usr/sbin/rear + ### If you require NFS, you may need the below packages #Requires: nfsclient portmap rpcbind @@ -108,6 +111,14 @@ removes any excuse for not having a disaster recovery solution implemented. Professional services and support are available. +%package doc +Summary: Documents for %{name} +BuildArch: noarch +Requires: %{name} = %{version}-%{release} + +%description doc +Doc pages for %{name}. + %pre if [ $1 -gt 1 ] ; then # during upgrade remove obsolete directories @@ -153,8 +164,6 @@ TZ=UTC %{__make} -C doc %files %defattr(-, root, root, 0755) -%doc MAINTAINERS COPYING README.adoc doc/*.txt doc/user-guide/relax-and-recover-user-guide.html -%doc %{_mandir}/man8/rear.8* %config(noreplace) %{_sysconfdir}/cron.d/rear %config(noreplace) %{_sysconfdir}/rear/ %config(noreplace) %{_sysconfdir}/rear/cert/ @@ -162,7 +171,14 @@ TZ=UTC %{__make} -C doc %{_localstatedir}/lib/rear/ %{_sbindir}/rear +%files doc +%doc MAINTAINERS COPYING README.adoc doc/*.txt doc/user-guide/relax-and-recover-user-guide.html +%doc %{_mandir}/man8/rear.8* + %changelog +* Fri Jul 15 2022 Xiaoping Liu - 2.6-4.0.1 +- Add doc sub package + * Sun Feb 27 2022 Pavel Cahyna - 2.6-4 - Apply PR2675 to fix leftover temp dir bug (introduced in backported PR2625) - Apply PR2603 to ignore unused PV devices -- Gitee