automatic rebuild by autodist [release 1.02-2mamba;Thu Nov 06 2008]

This commit is contained in:
Silvan Calarco 2024-01-06 09:32:19 +01:00
parent 93c3b689e3
commit 2883d0bf28
2 changed files with 66 additions and 0 deletions

View File

@ -1,2 +1,4 @@
# perl-Pod-Strip # perl-Pod-Strip
Pod::Strip is a subclass of Pod::Simple that strips all POD from Perl Code.

64
perl-Pod-Strip.spec Normal file
View File

@ -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 <aleph0@openmamba.org>
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 <silvan.calarco@mambasoft.it> 1.02-2mamba
- automatic rebuild by autodist
* Mon Nov 12 2007 Aleph0 <aleph0@openmamba.org> 1.02-1mamba
- package created by autospec