From c6a123c8023962b943f3549b67fb5b4da0ed05f0 Mon Sep 17 00:00:00 2001 From: Liwei Ge Date: Tue, 19 Jul 2022 13:31:25 +0800 Subject: [PATCH] spec: add sub doc package --- perl-libnet.spec | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/perl-libnet.spec b/perl-libnet.spec index 6618fc3..bfa58f6 100644 --- a/perl-libnet.spec +++ b/perl-libnet.spec @@ -1,3 +1,5 @@ +%define anolis_release .0.1 + # Run optional test %bcond_without perl_libnet_enables_optional_test # SASL support @@ -7,7 +9,7 @@ Name: perl-libnet Version: 3.11 -Release: 3%{?dist} +Release: 3%{anolis_release}%{?dist} Summary: Perl clients for various network protocols # other files: GPL+ or Artistic ## Not in binary packages @@ -108,6 +110,14 @@ This is a collection of Perl modules which provides a simple and consistent programming interface (API) to the client side of various protocols used in the internet community. +%package doc +Summary: Documents for %{name} +Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release} +BuildArch: noarch + +%description doc +Doc pages for %{name}. + %prep %setup -q -n libnet-%{version} # Provide dummy Net::libnetFAQ document, CPAN RT#117888 @@ -128,11 +138,16 @@ make test %files %license Artistic Copying LICENCE -%doc Changes README %{perl_vendorlib}/* %{_mandir}/man3/* +%files doc +%doc Changes README + %changelog +* Tue Jul 19 2022 Liwei Ge - 3.11-3.0.1 +- Add doc sub package + * Fri Feb 09 2018 Fedora Release Engineering - 3.11-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild -- Gitee