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:
parent
5dc5d6d029
commit
090e953a99
35
perl.spec
35
perl.spec
@ -19,7 +19,7 @@
|
|||||||
Name: perl
|
Name: perl
|
||||||
Version: %{perl_version}
|
Version: %{perl_version}
|
||||||
# release number must be even higher, becase dual-lived modules will be broken otherwise
|
# release number must be even higher, becase dual-lived modules will be broken otherwise
|
||||||
Release: 139%{?dist}
|
Release: 140%{?dist}
|
||||||
Epoch: %{perl_epoch}
|
Epoch: %{perl_epoch}
|
||||||
Summary: Practical Extraction and Report Language
|
Summary: Practical Extraction and Report Language
|
||||||
Group: Development/Languages
|
Group: Development/Languages
|
||||||
@ -723,6 +723,21 @@ BuildArch: noarch
|
|||||||
Basic utilities for writing tests.
|
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
|
%package Time-Piece
|
||||||
Summary: Time objects from localtime and gmtime
|
Summary: Time objects from localtime and gmtime
|
||||||
Group: Development/Libraries
|
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 - )
|
tar -cf - $dir | ( cd %{buildroot}%{perl5_testdir}/perl-tests/t && tar -xf - )
|
||||||
done
|
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
|
# 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}/Unicode/Collate/allkeys.txt
|
||||||
rm -rf $RPM_BUILD_ROOT/%{privlib}/unicore/*.txt
|
rm -rf $RPM_BUILD_ROOT/%{privlib}/unicore/*.txt
|
||||||
@ -1447,6 +1471,7 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
%files tests
|
%files tests
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%{perl5_testdir}/
|
%{perl5_testdir}/
|
||||||
|
%exclude %{perl5_testdir}/Test-Simple
|
||||||
|
|
||||||
%files Archive-Extract
|
%files Archive-Extract
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
@ -1732,6 +1757,11 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
%{_mandir}/man3/Test::Simple*
|
%{_mandir}/man3/Test::Simple*
|
||||||
%{_mandir}/man3/Test::Tutorial*
|
%{_mandir}/man3/Test::Tutorial*
|
||||||
|
|
||||||
|
%files Test-Simple-tests
|
||||||
|
%defattr(-,root,root,-)
|
||||||
|
%dir %{perl_testdir}
|
||||||
|
%{perl_testdir}/Test-Simple
|
||||||
|
|
||||||
%files Time-Piece
|
%files Time-Piece
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%{archlib}/Time/Piece.pm
|
%{archlib}/Time/Piece.pm
|
||||||
@ -1772,6 +1802,9 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
|
|
||||||
# Old changelog entries are preserved in CVS.
|
# Old changelog entries are preserved in CVS.
|
||||||
%changelog
|
%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
|
* Wed Oct 6 2010 Marcela Mašláňová <mmaslano@redhat.com> - 4:5.12.2-139
|
||||||
- remove removal of NDBM
|
- remove removal of NDBM
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user