From bbcfa8e061f86374abe62e38e05bd721884d5833 Mon Sep 17 00:00:00 2001 From: HangBo Fan Date: Tue, 19 Jul 2022 10:51:50 +0800 Subject: [PATCH] spec: add doc sub package --- radvd.spec | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/radvd.spec b/radvd.spec index 198a43d..728be76 100644 --- a/radvd.spec +++ b/radvd.spec @@ -1,7 +1,8 @@ +%define anolis_release .0.1 Summary: A Router Advertisement daemon Name: radvd Version: 2.17 -Release: 15%{?dist} +Release: 15%{anolis_release}%{?dist} # The code includes the advertising clause, so it's GPL-incompatible License: BSD with advertising Group: System Environment/Daemons @@ -35,6 +36,14 @@ advertisements. Install radvd if you are setting up IPv6 network and/or Mobile IPv6 services. +%package doc +Summary: Documents for %{name} +BuildArch: noarch +Requires: %{name} = %{version}-%{release} + +%description doc +Doc pages for %{name}. + %prep %autosetup -p1 @@ -87,7 +96,6 @@ getent passwd radvd >/dev/null || \ exit 0 %files -%doc CHANGES COPYRIGHT INTRO.html README TODO %{_unitdir}/radvd.service %config(noreplace) %{_sysconfdir}/radvd.conf %config(noreplace) %{_sysconfdir}/sysconfig/radvd @@ -98,7 +106,13 @@ exit 0 %{_sbindir}/radvd %{_sbindir}/radvdump +%files doc +%doc CHANGES COPYRIGHT INTRO.html README TODO + %changelog +* Mon Jul 18 2022 Hangbo Fan - 2.17-15.0.1 +- Add doc sub package + * Wed Apr 15 2020 Pavel Zhukov - 2.17-15 - Fix double-free scenario (#1669177) -- Gitee