65 lines
1.9 KiB
RPMSpec
65 lines
1.9 KiB
RPMSpec
|
%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
|