Sub-package Pod-Usage

This commit is contained in:
Petr Písař 2013-02-04 17:11:56 +01:00
parent 66982d319d
commit 4218ec6321

View File

@ -1,6 +1,6 @@
Name: perl-Pod-Parser
Version: 1.51
Release: 247%{?dist}
Release: 248%{?dist}
Summary: Basic perl modules for handling Plain Old Documentation (POD)
License: GPL+ or Artistic
Group: Development/Libraries
@ -13,13 +13,9 @@ BuildRequires: perl(Carp)
BuildRequires: perl(Cwd)
BuildRequires: perl(Exporter)
BuildRequires: perl(File::Spec)
# Pod::Usage execute perldoc from perl-Pod-Perldoc by default
BuildRequires: perl-Pod-Perldoc
# Tests:
BuildRequires: perl(Test::More) >= 0.6
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
# Pod::Usage execute perldoc from perl-Pod-Perldoc by default
Requires: perl-Pod-Perldoc
# Filter under-specified depenedencies
%global __requires_exclude %{?__requires_exclude|%__requires_exclude|}^perl\\(Pod::Parser\\)$
@ -29,6 +25,27 @@ This software distribution contains the packages for using Perl5 POD (Plain
Old Documentation). See the "perlpod" and "perlsyn" manual pages from your
Perl5 distribution for more information about POD.
%package -n perl-Pod-Usage
Summary: Print a usage message from embedded pod documentation
License: GPL+ or Artistic
Group: Development/Libraries
# Pod::Usage execute perldoc from perl-Pod-Perldoc by default
BuildRequires: perl-Pod-Perldoc
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
# Pod::Usage executes perldoc from perl-Pod-Perldoc by default
Requires: perl-Pod-Perldoc
Requires: perl(Pod::Text)
Conflicts: perl-Pod-Parser < 1.51-248
%description -n perl-Pod-Usage
pod2usage will print a usage message for the invoking script (using its
embedded POD documentation) and then exit the script with the desired exit
status. The usage message printed may have any one of three levels of
"verboseness": If the verbose level is 0, then only a synopsis is printed.
If the verbose level is 1, then the synopsis is printed along with a
description (if present) of the command line options and arguments. If the
verbose level is 2, then the entire manual page is printed.
%prep
%setup -q -n Pod-Parser-%{version}
find -type f -exec chmod -x {} +
@ -58,7 +75,22 @@ make test
%{_mandir}/man1/*
%{_mandir}/man3/*
%exclude %{_bindir}/pod2usage
%exclude %{perl_vendorlib}/Pod/Usage.pm
%exclude %{_mandir}/man1/pod2usage.*
%exclude %{_mandir}/man3/Pod::Usage.*
%files -n perl-Pod-Usage
%doc ANNOUNCE CHANGES README TODO
%{_bindir}/pod2usage
%{perl_vendorlib}/Pod/Usage.pm
%{_mandir}/man1/pod2usage.*
%{_mandir}/man3/Pod::Usage.*
%changelog
* Mon Feb 04 2013 Petr Pisar <ppisar@redhat.com> - 1.51-248
- Sub-package Pod-Usage
* Wed Jan 16 2013 Petr Pisar <ppisar@redhat.com> - 1.51-247
- Increase release to supersede perl sub-package