From f7d78e8aba3992d64c8aba63e2726dfa623a927d Mon Sep 17 00:00:00 2001 From: liuxiaoping Date: Sat, 16 Jul 2022 17:10:34 +0800 Subject: [PATCH] add doc sub package --- rsync.spec | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/rsync.spec b/rsync.spec index 38bba7c..1d505e5 100644 --- a/rsync.spec +++ b/rsync.spec @@ -1,3 +1,4 @@ +%define anolis_release .0.1 %global _hardened_build 1 %define isprerelease 0 @@ -9,7 +10,7 @@ Summary: A program for synchronizing files over a network Name: rsync Version: 3.1.3 -Release: 14%{?dist}.2 +Release: 14%{anolis_release}%{?dist}.2 Group: Applications/Internet URL: http://rsync.samba.org/ @@ -27,6 +28,9 @@ BuildRequires: libacl-devel, libattr-devel, autoconf, popt-devel, systemd Provides: bundled(zlib) = 1.2.8 License: GPLv3+ +Provides: /usr/bin/rsync +Requires: glibc + Patch0: rsync-man.patch Patch1: rsync-3.0.6-iconv-logging.patch Patch2: rsync-3.1.3-covscan.patch @@ -56,6 +60,14 @@ Requires: %{name} = %{version}-%{release} Rsync can be used to offer read only access to anonymous clients. This package provides the anonymous rsync service. +%package doc +Summary: Documents for %{name} +BuildArch: noarch +Requires: %{name} = %{version}-%{release} + +%description doc +Doc pages for %{name}. + %prep # TAG: for pre versions use @@ -108,7 +120,6 @@ chmod -x support/* %files %{!?_licensedir:%global license %%doc} %license COPYING -%doc NEWS OLDNEWS README support/ tech_report.tex %{_bindir}/%{name} %{_mandir}/man1/%{name}.1* @@ -129,7 +140,13 @@ chmod -x support/* %postun daemon %systemd_postun_with_restart rsyncd.service +%files doc +%doc NEWS OLDNEWS README support/ tech_report.tex + %changelog +* Sat Jul 16 2022 Xiaoping Liu - 3.1.3-14.0.1.2 +- Add doc sub package + * Wed Apr 20 2022 Michal Ruprich - 3.1.3-14.2 - Related: #2074783 - Needed to bump this to rebuild correctly -- Gitee