diff --git a/README.md b/README.md index 9db4b78..6217b48 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # perl-Pod-Strip +Pod::Strip is a subclass of Pod::Simple that strips all POD from Perl Code. + diff --git a/perl-Pod-Strip.spec b/perl-Pod-Strip.spec new file mode 100644 index 0000000..62e1291 --- /dev/null +++ b/perl-Pod-Strip.spec @@ -0,0 +1,64 @@ +%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0) + +Name: perl-Pod-Strip +Version: 1.02 +Release: 2mamba +Summary: Pod::Strip - A subclass of Pod::Simple that strips all POD from Perl Code +Group: System/Libraries/Perl +Vendor: openmamba +Distribution: openmamba +Packager: Aleph0 +URL: http://www.cpan.org +Source: http://www.cpan.org/modules/by-module/Pod/Pod-Strip-%{version}.tar.gz +License: GPL, Artistic +Requires: perl >= %perl_major_ver +BuildRequires: perl-devel >= %perl_major_ver +BuildRequires: perl-Pod-Simple +BuildRequires: perl-Pod-Coverage +BuildRequires: perl-Module-Build +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +Pod::Strip is a subclass of Pod::Simple that strips all POD from Perl Code. + +%prep +%setup -q -n Pod-Strip-%{version} + +%build +perl Build.PL installdirs=vendor +./Build +./Build test + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +./Build install \ + destdir="%{buildroot}" \ + --install_path bindoc="%{_mandir}/man1" \ + --install_path libdoc="%{_mandir}/man3" + +find %{buildroot}%{perl_vendorlib} \ + -type d -depth -exec rmdir {} 2>/dev/null \; + +strid=`echo $packlist | sed 's,.*auto\(.*\)/.packlist,\1,'` +for dir in `find %{buildroot} -type d | grep $strid`; do + echo %dir ${dir#%buildroot} >> .packlist +done + +# cleanup unpackaged files +find %{buildroot}%{_prefix}/lib \ + -type f \( -name perllocal.pod -o -name .packlist \) -exec rm -f {} \; + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%files +%defattr(-,root,root) +%{_prefix}/lib/perl5/vendor_perl/*/Pod/Strip.pm +%{_mandir}/man3/Pod::Strip.3pm.gz + +%changelog +* Thu Nov 06 2008 Silvan Calarco 1.02-2mamba +- automatic rebuild by autodist + +* Mon Nov 12 2007 Aleph0 1.02-1mamba +- package created by autospec