From 0313ab53595c70fbf5abb20419761dc703663ad0 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sat, 6 Jan 2024 09:41:39 +0100 Subject: [PATCH] imported in devel [release 2.00-2mamba;Thu Aug 16 2012] --- README.md | 2 ++ perl-Test-Distribution.spec | 67 +++++++++++++++++++++++++++++++++++++ 2 files changed, 69 insertions(+) create mode 100644 perl-Test-Distribution.spec diff --git a/README.md b/README.md index 4b412cf..8642d11 100644 --- a/README.md +++ b/README.md @@ -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. + diff --git a/perl-Test-Distribution.spec b/perl-Test-Distribution.spec new file mode 100644 index 0000000..5a4b54c --- /dev/null +++ b/perl-Test-Distribution.spec @@ -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 +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 2.00-2mamba +- imported in devel + +* Mon Mar 07 2011 gil 2.00-1mamba +- package created by autospec