perl-Pod-Parser/perl-Pod-Parser.spec
2013-02-04 18:28:51 +01:00

131 lines
4.2 KiB
RPMSpec

Name: perl-Pod-Parser
Version: 1.51
Release: 248%{?dist}
Summary: Basic perl modules for handling Plain Old Documentation (POD)
License: GPL+ or Artistic
Group: Development/Libraries
URL: http://search.cpan.org/dist/Pod-Parser/
Source0: http://www.cpan.org/authors/id/M/MA/MAREKR/Pod-Parser-%{version}.tar.gz
BuildArch: noarch
BuildRequires: perl(ExtUtils::MakeMaker)
# Run-time
BuildRequires: perl(Carp)
BuildRequires: perl(Cwd)
BuildRequires: perl(Exporter)
BuildRequires: perl(File::Spec)
# Tests:
BuildRequires: perl(Test::More) >= 0.6
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
# Filter under-specified depenedencies
%global __requires_exclude %{?__requires_exclude|%__requires_exclude|}^perl\\(Pod::Parser\\)$
%description
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-Checker
Summary: Check POD documents for syntax errors
License: GPL+ or Artistic
Group: Development/Libraries
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
Conflicts: perl-Pod-Parser < 1.51-248
%description -n perl-Pod-Checker
Module and tools to verify POD documentation contents for compliance with the
Plain Old Documentation format specifications.
%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 {} +
chmod +x scripts/*
for F in ANNOUNCE CHANGES README TODO; do
tr -d '\r' < "$F" > "${F}.unix"
touch -r "$F" "${F}.unix"
mv "${F}.unix" "$F"
done
%build
perl Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags}
%install
make pure_install DESTDIR=$RPM_BUILD_ROOT
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
%{_fixperms} $RPM_BUILD_ROOT/*
%check
make test
%files
%doc ANNOUNCE CHANGES README TODO
%{_bindir}/*
%{perl_vendorlib}/*
%{_mandir}/man1/*
%{_mandir}/man3/*
# Pod-Checker
%exclude %{_bindir}/podchecker
%exclude %{perl_vendorlib}/Pod/Checker.pm
%exclude %{_mandir}/man1/podchecker.*
%exclude %{_mandir}/man3/Pod::Checker.*
# Pod-Usage
%exclude %{_bindir}/pod2usage
%exclude %{perl_vendorlib}/Pod/Usage.pm
%exclude %{_mandir}/man1/pod2usage.*
%exclude %{_mandir}/man3/Pod::Usage.*
%files -n perl-Pod-Checker
%doc ANNOUNCE CHANGES README TODO
%{_bindir}/podchecker
%{perl_vendorlib}/Pod/Checker.pm
%{_mandir}/man1/podchecker.*
%{_mandir}/man3/Pod::Checker.*
%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
- Sub-package Pod-Checker
* Wed Jan 16 2013 Petr Pisar <ppisar@redhat.com> - 1.51-247
- Increase release to supersede perl sub-package
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.51-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
* Mon Jul 02 2012 Petr Pisar <ppisar@redhat.com> - 1.51-2
- Perl 5.16 rebuild
* Mon Jun 25 2012 Petr Pisar <ppisar@redhat.com> 1.51-1
- Specfile autogenerated by cpanspec 1.78.