imported in devel [release 2.00-2mamba;Thu Aug 16 2012]
This commit is contained in:
parent
c379c22773
commit
0313ab5359
@ -1,2 +1,4 @@
|
||||
# perl-Test-Distribution
|
||||
|
||||
When using this module in a test script, it goes through all the modules in your distribution, checks their POD, checks that they compile ok and checks that they all define a $VERSION.
|
||||
|
||||
|
67
perl-Test-Distribution.spec
Normal file
67
perl-Test-Distribution.spec
Normal file
@ -0,0 +1,67 @@
|
||||
%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0)
|
||||
|
||||
Name: perl-Test-Distribution
|
||||
Version: 2.00
|
||||
Release: 2mamba
|
||||
Summary: Test::Distribution - perform tests on all modules of a distribution
|
||||
Group: System/Libraries/Perl
|
||||
Vendor: openmamba
|
||||
Distribution: openmamba
|
||||
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
||||
URL: http://www.cpan.org
|
||||
Source: http://search.cpan.org/CPAN/authors/id/S/SR/SRSHAH/Test-Distribution-%{version}.tar.gz
|
||||
License: GPL, Artistic
|
||||
BuildRequires: perl(Module::Build)
|
||||
BuildRequires: perl(File::Find::Rule)
|
||||
BuildRequires: perl(Module::CoreList)
|
||||
BuildRequires: perl(Module::Signature)
|
||||
BuildRequires: perl(Pod::Coverage)
|
||||
BuildRequires: perl(Test::Pod)
|
||||
BuildRequires: perl(Test::Pod::Coverage)
|
||||
BuildRequires: perl-devel
|
||||
Requires: perl >= %perl_major_ver
|
||||
Requires: perl(File::Find::Rule)
|
||||
Requires: perl(Module::CoreList)
|
||||
Requires: perl(Module::Signature)
|
||||
Requires: perl(Pod::Coverage)
|
||||
Requires: perl(Test::Pod)
|
||||
Requires: perl(Test::Pod::Coverage)
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
||||
|
||||
%description
|
||||
When using this module in a test script, it goes through all the modules in your distribution, checks their POD, checks that they compile ok and checks that they all define a $VERSION.
|
||||
|
||||
%prep
|
||||
%setup -q -n Test-Distribution-%{version}
|
||||
|
||||
%build
|
||||
%{__perl} Build.PL installdirs=vendor
|
||||
./Build
|
||||
tmpdir=$(mktemp -d %{_tmppath}/%{name}-%{version}-%{release}.XXXXXX)
|
||||
mkdir -m 700 $tmpdir/_gnupg
|
||||
export GNUPGHOME=$tmpdir/_gnupg
|
||||
./Build test
|
||||
rm -rf $tmpdir
|
||||
|
||||
%install
|
||||
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||||
./Build install destdir=%{buildroot} create_packlist=0
|
||||
|
||||
find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \;
|
||||
chmod -R u+w %{buildroot}/*
|
||||
|
||||
%clean
|
||||
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%{perl_vendorlib}/Test
|
||||
%{_mandir}/man3/*.3pm.gz
|
||||
%doc Changes.pod README
|
||||
|
||||
%changelog
|
||||
* Thu Aug 16 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 2.00-2mamba
|
||||
- imported in devel
|
||||
|
||||
* Mon Mar 07 2011 gil <puntogil@libero.it> 2.00-1mamba
|
||||
- package created by autospec
|
Loading…
Reference in New Issue
Block a user