70 lines
2.2 KiB
RPMSpec
70 lines
2.2 KiB
RPMSpec
%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0)
|
|
|
|
Name: perl-Test-Distribution
|
|
Version: 2.00
|
|
Release: 3mamba
|
|
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: https://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)
|
|
|
|
%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
|
|
* Wed Jan 31 2024 Automatic Build System <autodist@openmamba.org> 2.00-3mamba
|
|
- automatic rebuild by autodist
|
|
|
|
* 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
|