[perl-MooseX-Params-Validate] drop old tests sub-package
Iain Arnell
iarnell at fedoraproject.org
Fri Feb 15 15:59:32 UTC 2013
commit 66ad34677cb93e10d90af0e989911b34c5021f82
Author: Iain Arnell <iarnell at gmail.com>
Date: Fri Feb 15 08:59:19 2013 -0700
drop old tests sub-package
perl-MooseX-Params-Validate.spec | 11 +++++++++--
1 files changed, 9 insertions(+), 2 deletions(-)
---
diff --git a/perl-MooseX-Params-Validate.spec b/perl-MooseX-Params-Validate.spec
index 30020f5..7b07122 100644
--- a/perl-MooseX-Params-Validate.spec
+++ b/perl-MooseX-Params-Validate.spec
@@ -24,9 +24,12 @@ BuildRequires: perl(Test::Fatal)
BuildRequires: perl(Test::More) >= 0.88
BuildRequires: perl(warnings)
+# obsolete/provide old tests sub-package
+# can be removed during F21 development cycle
+Obsoletes: %{name}-tests < 0.18-1
+Provides: %{name}-tests = %{version}-%{release}
%{?perl_default_filter}
-%{?perl_default_subpackage_tests}
%description
This module fills a gap in Moose by adding method parameter validation to
@@ -36,6 +39,9 @@ the "official" one by any means though.
%prep
%setup -q -n MooseX-Params-Validate-%{version}
+# silence rpmlint warning
+sed -i -e '1s,#!.*perl,#!%{__perl},' t/*.t
+
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags}
@@ -50,7 +56,7 @@ find %{buildroot} -type f -name .packlist -exec rm -f {} \;
make test
%files
-%doc Changes README LICENSE
+%doc Changes README LICENSE t
%{perl_vendorlib}/*
%{_mandir}/man3/*
@@ -58,6 +64,7 @@ make test
* Fri Feb 15 2013 Iain Arnell <iarnell at gmail.com> 0.18-1
- update to latest upstream version
- drop explicit requires
+- drop tests sub-package; move tests to main documentation
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.16-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
More information about the perl-devel
mailing list