[perl-DBICx-TestDatabase] drop tests subpackage

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

 



commit 621763d9cf646c4e5e6b425a5a32ff3b057189f3
Author: Iain Arnell <iarnell@xxxxxxxxx>
Date:   Sun Jan 22 10:09:55 2012 +0100

    drop tests subpackage

 perl-DBICx-TestDatabase.spec |   16 +++++++++++++---
 1 files changed, 13 insertions(+), 3 deletions(-)
---
diff --git a/perl-DBICx-TestDatabase.spec b/perl-DBICx-TestDatabase.spec
index 51ee8e2..1861039 100644
--- a/perl-DBICx-TestDatabase.spec
+++ b/perl-DBICx-TestDatabase.spec
@@ -1,7 +1,7 @@
 Name:           perl-DBICx-TestDatabase 
 Summary:        Create a temporary database from a DBIx::Class::Schema 
 Version:        0.04
-Release:        2%{?dist}
+Release:        3%{?dist}
 License:        GPL+ or Artistic 
 Group:          Development/Libraries
 Source0:        http://search.cpan.org/CPAN/authors/id/J/JR/JROCKWAY/DBICx-TestDatabase-%{version}.tar.gz 
@@ -20,9 +20,12 @@ BuildRequires:  perl(Test::More)
 Requires:       perl(DBD::SQLite) >= 1.29
 Requires:       perl(SQL::Translator)
 
+# obsolete/provide old tests subpackage
+# can be removed during F19 development cycle
+Obsoletes:      %{name}-tests < 0.04-3
+Provides:       %{name}-tests = %{version}-%{release}
 
 %{?perl_default_filter}
-%{?perl_default_subpackage_tests}
 
 %description
 This module creates a temporary SQLite database, deploys your DBIC
@@ -35,6 +38,10 @@ failure, etc.
 %prep
 %setup -q -n DBICx-TestDatabase-%{version}
 
+# silence rpmlint warnings
+find t/ -name '*.t' -type f -print0 \
+  | xargs -0 sed -i '1s,#!.*perl,#!%{__perl},'
+
 %build
 %{__perl} Makefile.PL INSTALLDIRS=vendor
 make %{?_smp_mflags}
@@ -50,11 +57,14 @@ find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null ';'
 make test
 
 %files
-%doc README Changes 
+%doc README Changes t/
 %{perl_vendorlib}/*
 %{_mandir}/man3/*.3*
 
 %changelog
+* Sun Jan 22 2012 Iain Arnell <iarnell@xxxxxxxxx> 0.04-3
+- drop tests subpackage; move tests to main package documentation
+
 * Tue Jan 17 2012 Iain Arnell <iarnell@xxxxxxxxx> - 0.04-2
 - rebuilt again for F17 mass rebuild
 
--
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