[perl-MooseX-Getopt] drop tests subpackage
Iain Arnell
iarnell at fedoraproject.org
Sun Jan 22 10:23:13 UTC 2012
commit 8083a69496aa7aa2e5f7a5fe5e1a0f9037bad425
Author: Iain Arnell <iarnell at gmail.com>
Date: Sun Jan 22 11:22:48 2012 +0100
drop tests subpackage
perl-MooseX-Getopt.spec | 15 ++++++++++++---
1 files changed, 12 insertions(+), 3 deletions(-)
---
diff --git a/perl-MooseX-Getopt.spec b/perl-MooseX-Getopt.spec
index b190060..cd1e634 100644
--- a/perl-MooseX-Getopt.spec
+++ b/perl-MooseX-Getopt.spec
@@ -1,7 +1,7 @@
Name: perl-MooseX-Getopt
Summary: Moose role for processing command line options
Version: 0.38
-Release: 2%{?dist}
+Release: 3%{?dist}
License: GPL+ or Artistic
Group: Development/Libraries
Source0: http://search.cpan.org/CPAN/authors/id/B/BO/BOBTFISH/MooseX-Getopt-%{version}.tar.gz
@@ -23,9 +23,12 @@ BuildRequires: perl(Test::Pod)
BuildRequires: perl(Test::Requires) >= 0.05
BuildRequires: perl(Test::Warn) >= 0.21
+# obsolete/provide old tests subpackage
+# can be removed during F19 development cycle
+Obsoletes: %{name}-tests < 0.38-3
+Provides: %{name}-tests = %{version}-%{release}
%{?perl_default_filter}
-%{?perl_default_subpackage_tests}
%description
This is a Moose role which provides an alternate constructor for creating
@@ -34,6 +37,9 @@ objects using parameters passed in from the command line.
%prep
%setup -q -n MooseX-Getopt-%{version}
+# silence rpmlint warning
+sed -i '1s,#!.*perl,#!%{__perl},' t/*.t
+
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags}
@@ -50,11 +56,14 @@ find %{buildroot} -type d -depth -exec rmdir {} 2>/dev/null ';'
make test
%files
-%doc ChangeLog README
+%doc ChangeLog README t/
%{perl_vendorlib}/*
%{_mandir}/man3/*
%changelog
+* Sun Jan 22 2012 Iain Arnell <iarnell at gmail.com> 0.38-3
+- drop tests subpackage; move tests to main package documentation
+
* Tue Jan 17 2012 Iain Arnell <iarnell at gmail.com> - 0.38-2
- rebuilt again for F17 mass rebuild
More information about the scm-commits
mailing list