[perl-DateTime-Format-Natural] split DateTime::Format::Natural::Test into separate sub-package

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



commit 130c653454e7c2cdf97cc375b1dcdbe8489ce63f
Author: Iain Arnell <iarnell@xxxxxxxxx>
Date:   Sun Dec 12 08:57:52 2010 +0100

    split DateTime::Format::Natural::Test into separate sub-package
    
    to avoid runtime dependecy on Test::More

 perl-DateTime-Format-Natural.spec |   20 +++++++++++++++++++-
 1 files changed, 19 insertions(+), 1 deletions(-)
---
diff --git a/perl-DateTime-Format-Natural.spec b/perl-DateTime-Format-Natural.spec
index 6d69be1..eb7425b 100644
--- a/perl-DateTime-Format-Natural.spec
+++ b/perl-DateTime-Format-Natural.spec
@@ -1,6 +1,6 @@
 Name:           perl-DateTime-Format-Natural
 Version:        0.91
-Release:        1%{?dist}
+Release:        2%{?dist}
 Summary:        Create machine readable date/time with natural parsing logic
 License:        GPL+ or Artistic
 Group:          Development/Libraries
@@ -33,6 +33,13 @@ Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $versi
 DateTime::Format::Natural takes a string with a human readable date/time
 and creates a machine readable one by applying natural parsing logic.
 
+%package -n perl-DateTime-Format-Natural-Test
+Summary:        Common test routines/data for perl-DateTime-Format-Natural
+Requires:       %{name} = %{version}-%{release}
+
+%description -n perl-DateTime-Format-Natural-Test
+The DateTime::Format::Natural::Test class exports common test routines.
+
 %prep
 %setup -q -n DateTime-Format-Natural-%{version}
 for f in Changes README; do
@@ -55,13 +62,24 @@ find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
 %files
 %defattr(-,root,root,-)
 %doc Changes README
+%exclude %{perl_vendorlib}/DateTime/Format/Natural/Test.pm
+%exclude %{_mandir}/man3/DateTime::Format::Natural::Test.*
 %{perl_vendorlib}/*
 %{_bindir}/dateparse
 %{_mandir}/man1/*
 %{_mandir}/man3/*
 
+%files -n perl-DateTime-Format-Natural-Test
+%defattr(-,root,root,-)
+%{perl_vendorlib}/DateTime/Format/Natural/Test.pm
+%{_mandir}/man3/DateTime::Format::Natural::Test.*
+
 
 %changelog
+* Sun Dec 12 2010 Iain Arnell <iarnell@xxxxxxxxx> 0.91-2
+- split DateTime::Format::Natural::Test into separate sub-package to avoid
+  runtime dependecy on Test::More
+
 * Tue Nov 02 2010 Iain Arnell <iarnell@xxxxxxxxx> 0.91-1
 - update to latest upstream version
 
--
Fedora Extras Perl SIG
http://www.fedoraproject.org/wiki/Extras/SIGs/Perl
perl-devel mailing list
perl-devel@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/perl-devel


[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Legacy Announce]     [Fedora PHP Devel]     [Kernel Devel]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Big List of Linux Books]     [Gimp]     [Yosemite Information]
  Powered by Linux