From 4432fa1365cc17bf9e067d6c93abd1ef87951d2b Mon Sep 17 00:00:00 2001 From: Liwei Ge Date: Tue, 19 Jul 2022 11:07:58 +0800 Subject: [PATCH] spec: add sub doc package --- perl-DBI.spec | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/perl-DBI.spec b/perl-DBI.spec index d8335ff..67ab975 100644 --- a/perl-DBI.spec +++ b/perl-DBI.spec @@ -1,3 +1,5 @@ +%define anolis_release .0.1 + # According to documentation, module using Coro is just: # A PROOF-OF-CONCEPT IMPLEMENTATION FOR EXPERIMENTATION. # Omit Coro support on bootsrap bacause perl-DBI is pulled in by core @@ -34,7 +36,7 @@ Name: perl-DBI Version: 1.641 -Release: 1%{?dist} +Release: 1%{anolis_release}%{?dist} Summary: A database access API for perl License: GPL+ or Artistic URL: http://dbi.perl.org/ @@ -149,6 +151,14 @@ implemented on top of Coro. The BIG WIN from using Coro is that it enables the use of existing DBI frameworks like DBIx::Class. %endif +%package doc +Summary: Documents for %{name} +Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release} +BuildArch: noarch + +%description doc +Doc pages for %{name}. + %prep %setup -q -n DBI-%{version} for F in lib/DBD/Gofer.pm; do @@ -194,7 +204,6 @@ make test %files # Changes already packaged as DBI::Changes -%doc README.md ex/perl_dbi_nulls_test.pl ex/profile.pl %{_bindir}/dbipro* %{_bindir}/dbilogstrip %{perl_vendorarch}/*.p* @@ -213,7 +222,13 @@ make test %{perl_vendorarch}/DBD/Gofer/Transport/corostream.pm %endif +%files doc +%doc README.md ex/perl_dbi_nulls_test.pl ex/profile.pl + %changelog +* Tue Jul 19 2022 Liwei Ge - 1.641-1.0.1 +- Add doc sub package + * Tue Mar 20 2018 Petr Pisar - 1.641-1 - 1.641 bump -- Gitee