From 281cfec05128f2ee54909da80ae012131352f331 Mon Sep 17 00:00:00 2001 From: Liwei Ge Date: Tue, 19 Jul 2022 13:43:30 +0800 Subject: [PATCH] spec: add sub doc package --- perl-Math-BigRat.spec | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/perl-Math-BigRat.spec b/perl-Math-BigRat.spec index e040fc8..e451e4d 100644 --- a/perl-Math-BigRat.spec +++ b/perl-Math-BigRat.spec @@ -1,7 +1,9 @@ +%define anolis_release .0.1 + Name: perl-Math-BigRat # Keep 4-digit version to compete with perl.spec Version: 0.2614 -Release: 1%{?dist} +Release: 1%{anolis_release}%{?dist} Summary: Arbitrary big rational numbers License: GPL+ or Artistic URL: http://search.cpan.org/dist/Math-BigRat/ @@ -43,6 +45,14 @@ Conflicts: perl < 4:5.22.0-348 Math::BigRat complements Math::BigInt and Math::BigFloat by providing support for arbitrary big rational numbers. +%package doc +Summary: Documents for %{name} +Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release} +BuildArch: noarch + +%description doc +Doc pages for %{name}. + %prep %setup -q -n Math-BigRat-%{version} @@ -60,11 +70,16 @@ make test %files %license LICENSE -%doc BUGS CHANGES README TODO %{perl_vendorlib}/* %{_mandir}/man3/* +%files doc +%doc BUGS CHANGES README TODO + %changelog +* Tue Jul 19 2022 Liwei Ge - 0.2614-1.0.1 +- Add doc sub package + * Wed Apr 18 2018 Petr Pisar - 0.2614-1 - 0.2614 bump -- Gitee