drop tests subpackage

f38
Iain Arnell 13 years ago
parent 31ae61bba3
commit 621763d9cf

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

Loading…
Cancel
Save