From 569a858cdbe039e0249f7eee60487349e8948e73 Mon Sep 17 00:00:00 2001 From: Liwei Ge Date: Tue, 19 Jul 2022 15:04:37 +0800 Subject: [PATCH] spec: add sub doc package --- perl-URI.spec | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/perl-URI.spec b/perl-URI.spec index 3ac96a5..b9a570d 100644 --- a/perl-URI.spec +++ b/perl-URI.spec @@ -1,3 +1,5 @@ +%define anolis_release .0.1 + # Utilize Business::ISBN that needs gd library %if 0%{?rhel} %bcond_with perl_URI_enables_Business_ISBN @@ -7,7 +9,7 @@ Name: perl-URI Version: 1.73 -Release: 3%{?dist} +Release: 3%{anolis_release}%{?dist} Summary: A Perl module implementing URI parsing and manipulation License: GPL+ or Artistic URL: http://search.cpan.org/dist/URI/ @@ -69,6 +71,14 @@ This module implements the URI class. Objects of this class represent "Uniform Resource Identifier references" as specified in RFC 2396 (and updated by RFC 2732). +%package doc +Summary: Documents for %{name} +Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release} +BuildArch: noarch + +%description doc +Doc pages for %{name}. + %prep %setup -q -n URI-%{version} chmod -c 644 uri-test @@ -86,7 +96,6 @@ make test %files %license LICENSE -%doc Changes CONTRIBUTING.md uri-test %{perl_privlib}/URI.pm %{perl_privlib}/URI/ %{_mandir}/man3/URI.3* @@ -101,7 +110,13 @@ make test %{_mandir}/man3/URI::file.3* %{_mandir}/man3/URI::ldap.3* +%files doc +%doc Changes CONTRIBUTING.md uri-test + %changelog +* Tue Jul 19 2022 Liwei Ge - 1.73-3.0.1 +- Add doc sub package + * Wed Jul 11 2018 Petr Pisar - 1.73-3 - Disable Business::ISBN feature -- Gitee