From fac74c329cb09def168bd9f2554b0302ae734e11 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= Date: Mon, 2 Jul 2012 14:55:35 +0200 Subject: [PATCH] Import --- .gitignore | 1 + perl-Pod-Parser.spec | 61 ++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 63 insertions(+) create mode 100644 perl-Pod-Parser.spec diff --git a/.gitignore b/.gitignore index e69de29..f30a03c 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/Pod-Parser-1.51.tar.gz diff --git a/perl-Pod-Parser.spec b/perl-Pod-Parser.spec new file mode 100644 index 0000000..8b68c5f --- /dev/null +++ b/perl-Pod-Parser.spec @@ -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 1.51-1 +- Specfile autogenerated by cpanspec 1.78. diff --git a/sources b/sources index e69de29..9e65d6b 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +99bd80b88a249908bd4f1ecf72214ad5 Pod-Parser-1.51.tar.gz