This commit is contained in:
Petr Písař 2012-07-02 14:55:35 +02:00
parent 0d44b4ccaf
commit fac74c329c
3 changed files with 63 additions and 0 deletions

1
.gitignore vendored
View File

@ -0,0 +1 @@
/Pod-Parser-1.51.tar.gz

61
perl-Pod-Parser.spec Normal file
View File

@ -0,0 +1,61 @@
Name: perl-Pod-Parser
Version: 1.51
Release: 1%{?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)
# 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
%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.
%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 PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
%{_fixperms} $RPM_BUILD_ROOT/*
%check
make test
%files
%doc ANNOUNCE CHANGES README TODO
%{_bindir}/*
%{perl_vendorlib}/*
%{_mandir}/man1/*
%{_mandir}/man3/*
%changelog
* Mon Jun 25 2012 Petr Pisar <ppisar@redhat.com> 1.51-1
- Specfile autogenerated by cpanspec 1.78.

View File

@ -0,0 +1 @@
99bd80b88a249908bd4f1ecf72214ad5 Pod-Parser-1.51.tar.gz