diff --git a/.gitignore b/.gitignore index e69de29..92f4915 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/Pod-Stripper-0.22.tar.gz diff --git a/perl-Pod-Stripper.spec b/perl-Pod-Stripper.spec new file mode 100644 index 0000000..4a38f7f --- /dev/null +++ b/perl-Pod-Stripper.spec @@ -0,0 +1,53 @@ +Name: perl-Pod-Stripper +Version: 0.22 +Release: 1%{?dist} +Summary: Strip all pod, and output what's left +License: GPL+ or Artistic +URL: http://search.cpan.org/dist/Pod-Stripper/ +Source0: http://www.cpan.org/authors/id/P/PO/PODMASTER/Pod-Stripper-%{version}.tar.gz +BuildArch: noarch +BuildRequires: make +BuildRequires: perl +BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76 +BuildRequires: sed +# Run-time +BuildRequires: perl(Pod::Parser) >= 1.13 +BuildRequires: perl(strict) +BuildRequires: perl(vars) +# Tests +BuildRequires: perl(Test) >= 1.15 +Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) +Requires: perl(Pod::Parser) >= 1.13 + +%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}perl\\(Pod::Parser\\)\s*$ + +%description +This be Pod::Stripper, a subclass of Pod::Parser. It parses perl files, +stripping out the pod, and dumping the rest (presumably code) to wherever +you point it to (like you do with Pod::Parser). + +%prep +%setup -q -n Pod-Stripper-%{version} +sed -i 's/\r//' Changes README podstrip + +%build +perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 +make %{?_smp_mflags} + +%install +make pure_install DESTDIR=$RPM_BUILD_ROOT +%{_fixperms} $RPM_BUILD_ROOT/* + +%check +make test + +%files +%doc Changes README +%{_bindir}/* +%{perl_vendorlib}/* +%{_mandir}/man1/* +%{_mandir}/man3/* + +%changelog +* Wed Dec 02 2015 Jitka Plesnikova - 0.22-1 +- Initial release diff --git a/sources b/sources index e69de29..4a34bb4 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +33095c075bcb8f366a3fb3bf2c1d3fc8 Pod-Stripper-0.22.tar.gz