[perl-Any-Moose] drop tests subpackage

Iain Arnell iarnell at fedoraproject.org
Sun Jan 22 07:55:33 UTC 2012


commit 1a7b713cb2740284951a996c51f6ea7fc139d4bc
Author: Iain Arnell <iarnell at gmail.com>
Date:   Sun Jan 22 08:55:19 2012 +0100

    drop tests subpackage

 perl-Any-Moose.spec |   15 ++++++++++++---
 1 files changed, 12 insertions(+), 3 deletions(-)
---
diff --git a/perl-Any-Moose.spec b/perl-Any-Moose.spec
index b4de713..8ac93ad 100644
--- a/perl-Any-Moose.spec
+++ b/perl-Any-Moose.spec
@@ -1,7 +1,7 @@
 Name:           perl-Any-Moose
 Summary:        Use Moose or Mouse automagically
 Version:        0.18
-Release:        1%{?dist}
+Release:        2%{?dist}
 License:        GPL+ or Artistic
 Group:          Development/Libraries
 Source0:        http://search.cpan.org/CPAN/authors/id/S/SA/SARTAK/Any-Moose-%{version}.tar.gz 
@@ -19,9 +19,12 @@ BuildRequires:  perl(Test::More)
 # virtual provides in perl-Moose and perl-Mouse
 Requires:       perl(Any-Moose) >= 0.40
 
+# obsolete/provide old tests subpackage
+# can be removed during F19 development cycle
+Obsoletes:      %{name}-tests < 0.18-2
+Provides:       %{name}-tests = %{version}-%{release}
 
 %{?perl_default_filter}
-%{?perl_default_subpackage_tests}
 
 %description
 This module allows one to take advantage of the features Moose/Mouse
@@ -32,6 +35,9 @@ loaded, otherwise we go with Moose.
 %prep
 %setup -q -n Any-Moose-%{version}
 
+# silence rpmlint warnings
+sed -i '1s,#!.*perl,#!%{__perl},' t/*.t
+
 %build
 %{__perl} Makefile.PL INSTALLDIRS=vendor
 make %{?_smp_mflags}
@@ -47,11 +53,14 @@ find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null ';'
 make test
 
 %files
-%doc Changes LICENSE README
+%doc Changes LICENSE README t/
 %{perl_vendorlib}/*
 %{_mandir}/man3/*.3*
 
 %changelog
+* Sun Jan 22 2012 Iain Arnell <iarnell at gmail.com> 0.18-2
+- drop tests-subpackage; move tests to main package documentation
+
 * Fri Jan 13 2012 Robin Lee <cheeselee at fedoraproject.org> - 0.18-1
 - Update to 0.18
 


More information about the scm-commits mailing list