76 lines
2.2 KiB
RPMSpec
76 lines
2.2 KiB
RPMSpec
%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0)
|
|
|
|
Name: perl-Test-Kwalitee
|
|
Version: 1.01
|
|
Release: 3mamba
|
|
Summary: Test::Kwalitee - An automated test for signs of quality in a Perl module distribtion
|
|
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/Test/Test-Kwalitee-1.01.tar.gz
|
|
License: GPL, Artistic
|
|
## AUTOBUILDREQ-BEGIN
|
|
BuildRequires: libperl
|
|
BuildRequires: perl-Module-CPANTS-Analyse
|
|
BuildRequires: perl-Test-Simple
|
|
BuildRequires: perl-devel
|
|
## AUTOBUILDREQ-END
|
|
BuildRequires: perl-devel >= %perl_major_ver
|
|
BuildRequires: perl-Module-CPANTS-Analyse
|
|
BuildRequires: perl-Module-Signature
|
|
Requires: perl >= %perl_major_ver
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
|
%description
|
|
An automated test for signs of quality in a Perl module distribtion.
|
|
|
|
%prep
|
|
%setup -q -n Test-Kwalitee-%{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"
|
|
|
|
packlist=`find %{buildroot} -name .packlist`
|
|
[ -z "$packlist" ] && exit 1 || cat $packlist | \
|
|
sed "s,%buildroot,,g;s,.*/man/.*,&.gz,g" | \
|
|
sort -u > .packlist && rm $packlist
|
|
|
|
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
|
|
|
|
%clean
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
rm -f .packlist
|
|
|
|
%files -f .packlist
|
|
%defattr(-,root,root)
|
|
|
|
%changelog
|
|
* Fri Aug 30 2013 Automatic Build System <autodist@mambasoft.it> 1.01-3mamba
|
|
- automatic rebuild by autodist
|
|
|
|
* Thu Nov 06 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 1.01-2mamba
|
|
- automatic rebuild by autodist
|
|
|
|
* Mon Oct 20 2008 gil <puntogil@libero.it> 1.01-1mamba
|
|
- update to 1.01
|
|
|
|
* Fri Nov 09 2007 Aleph0 <aleph0@openmamba.org> 0.30-1mamba
|
|
- package created by autospec
|