From 090e953a995c677b7a2953a010f3cc75309425fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= Date: Thu, 7 Oct 2010 17:49:01 +0200 Subject: [PATCH] Package Test-Simple tests It's necessary to provide -tests subpackage for perl-Test-Simple in the same version, because we need to dual-live with standalone perl-Test-Simple{,-tests} packages. --- perl.spec | 35 ++++++++++++++++++++++++++++++++++- 1 file changed, 34 insertions(+), 1 deletion(-) diff --git a/perl.spec b/perl.spec index 36e6eb8..8f67313 100644 --- a/perl.spec +++ b/perl.spec @@ -19,7 +19,7 @@ Name: perl Version: %{perl_version} # release number must be even higher, becase dual-lived modules will be broken otherwise -Release: 139%{?dist} +Release: 140%{?dist} Epoch: %{perl_epoch} Summary: Practical Extraction and Report Language Group: Development/Languages @@ -723,6 +723,21 @@ BuildArch: noarch Basic utilities for writing tests. +%package Test-Simple-tests +Summary: Test suite for package perl-Test-Simple +Group: Development/Debug +License: GPL+ or Artistic +Epoch: 0 +Version: 0.94 +Requires: perl-Test-Simple = 0:0.94-%{release} +Requires: /usr/bin/prove +AutoReqProv: 0 +BuildArch: noarch + +%description Test-Simple-tests +This package provides the test suite for package perl-Test-Simple. + + %package Time-Piece Summary: Time objects from localtime and gmtime Group: Development/Libraries @@ -1090,6 +1105,15 @@ for dir in `find ext/ -type d -name t -maxdepth 2` ; do tar -cf - $dir | ( cd %{buildroot}%{perl5_testdir}/perl-tests/t && tar -xf - ) done +# Selected "Dual-lifed cpan" packages +pushd cpan +for package in Test-Simple; do + for dir in `find ${package} -type d -name t -maxdepth 2` ; do + tar -cf - $dir | ( cd %{buildroot}%{perl5_testdir} && tar -xf - ) + done +done +popd + # remove files used only during build process from rpm rm -rf $RPM_BUILD_ROOT/%{privlib}/Unicode/Collate/allkeys.txt rm -rf $RPM_BUILD_ROOT/%{privlib}/unicore/*.txt @@ -1447,6 +1471,7 @@ rm -rf $RPM_BUILD_ROOT %files tests %defattr(-,root,root,-) %{perl5_testdir}/ +%exclude %{perl5_testdir}/Test-Simple %files Archive-Extract %defattr(-,root,root,-) @@ -1732,6 +1757,11 @@ rm -rf $RPM_BUILD_ROOT %{_mandir}/man3/Test::Simple* %{_mandir}/man3/Test::Tutorial* +%files Test-Simple-tests +%defattr(-,root,root,-) +%dir %{perl_testdir} +%{perl_testdir}/Test-Simple + %files Time-Piece %defattr(-,root,root,-) %{archlib}/Time/Piece.pm @@ -1772,6 +1802,9 @@ rm -rf $RPM_BUILD_ROOT # Old changelog entries are preserved in CVS. %changelog +* Thu Oct 07 2010 Petr Pisar - 4:5.12.2-140 +- Package Test-Simple tests to dual-live with standalone package + * Wed Oct 6 2010 Marcela Mašláňová - 4:5.12.2-139 - remove removal of NDBM