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.
This commit is contained in:
Petr Písař 2010-10-07 17:49:01 +02:00
parent 5dc5d6d029
commit 090e953a99
1 changed files with 34 additions and 1 deletions

View File

@ -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 <ppisar@redhat.com> - 4:5.12.2-140
- Package Test-Simple tests to dual-live with standalone package
* Wed Oct 6 2010 Marcela Mašláňová <mmaslano@redhat.com> - 4:5.12.2-139
- remove removal of NDBM