From 8083a69496aa7aa2e5f7a5fe5e1a0f9037bad425 Mon Sep 17 00:00:00 2001 From: Iain Arnell Date: Sun, 22 Jan 2012 11:22:48 +0100 Subject: [PATCH] drop tests subpackage --- perl-MooseX-Getopt.spec | 15 ++++++++++++--- 1 file 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 0.38-3 +- drop tests subpackage; move tests to main package documentation + * Tue Jan 17 2012 Iain Arnell - 0.38-2 - rebuilt again for F17 mass rebuild