diff --git a/perl-Test-Distribution.spec b/perl-Test-Distribution.spec index f3c93d1..ba5fe29 100644 --- a/perl-Test-Distribution.spec +++ b/perl-Test-Distribution.spec @@ -1,9 +1,6 @@ -# noarch, but to avoid debug*.list interfering with signature/manifest tests: -%define debug_package %{nil} - Name: perl-Test-Distribution Version: 2.00 -Release: 4%{?dist} +Release: 7%{?dist} Summary: Perform tests on all modules of a distribution License: GPL+ or Artistic Group: Development/Libraries @@ -15,7 +12,6 @@ BuildArch: noarch BuildRequires: perl(Module::Build) BuildRequires: perl(File::Find::Rule) >= 0.03 BuildRequires: perl(Module::CoreList) >= 1.93 -BuildRequires: perl(Module::Signature) BuildRequires: perl(Pod::Coverage) >= 0.17 BuildRequires: perl(Test::Pod) >= 0.95 BuildRequires: perl(Test::Pod::Coverage) @@ -32,12 +28,17 @@ Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $versi %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 +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} +for f in README Changes.pod; do + /usr/bin/iconv -f iso-8859-1 -t utf-8 < ${f} > ${f}.utf8 + mv ${f}.utf8 ${f} +done + %build %{__perl} Build.PL installdirs=vendor ./Build @@ -46,17 +47,13 @@ that they all define a $VERSION. rm -rf %{buildroot} ./Build install destdir=%{buildroot} create_packlist=0 -find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \; +find %{buildroot} -depth -type d -exec rmdir {} \; 2>/dev/null -%{_fixperms} %{buildroot}/* +%{_fixperms} %{buildroot} %check -# appease Module::Signature -tmpdir=$(mktemp -d %{_tmppath}/%{name}-%{version}-%{release}.XXXXXX) -mkdir -m 700 $tmpdir/_gnupg -export GNUPGHOME=$tmpdir/_gnupg -./Build test && rm -rf $tmpdir +LC_ALL=C ./Build test %clean rm -rf %{buildroot} @@ -64,10 +61,23 @@ rm -rf %{buildroot} %files %defattr(-,root,root,-) %doc Changes.pod README -%{perl_vendorlib}/* -%{_mandir}/man3/* +%{perl_vendorlib}/Test/ +%{_mandir}/man3/Test::Distribution.3pm* %changelog +* Tue May 18 2010 Paul Howarth - 2.00-7 +- No signature test, so Module::Signature not needed as buildreq, and no need + to go to great lengths to avoid clobbering ~/.gnupg +- Recode README and Changes.pod as UTF8 +- Run tests in "C" locale to avoid Module::Build's inability to find perl + in the test suite on older distributions + +* Thu May 06 2010 Marcela Maslanova - 2.00-6 +- Mass rebuild with perl-5.12.0 + +* Fri Dec 4 2009 Stepan Kasal - 2.00-5 +- rebuild against perl 5.10.1 + * Sun Jul 26 2009 Fedora Release Engineering - 2.00-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild