drop tests subpackage

f38
Iain Arnell 13 years ago
parent ddd96c13c1
commit ce8058d739

@ -1,12 +1,11 @@
Name: perl-DBIx-Class-Schema-Loader
Summary: Dynamic definition of a DBIx::Class::Schema
Version: 0.07010
Release: 4%{?dist}
Release: 5%{?dist}
License: GPL+ or Artistic
Group: Development/Libraries
Source0: http://search.cpan.org/CPAN/authors/id/R/RK/RKITOVER/DBIx-Class-Schema-Loader-%{version}.tar.gz
URL: http://search.cpan.org/dist/DBIx-Class-Schema-Loader/
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
BuildArch: noarch
@ -63,8 +62,12 @@ Requires: perl(Text::Balanced)
# hidden from PAUSE
Provides: perl(DBIx::Class::Schema::Loader::Utils)
# obsolete/provide old tests subpackage
# can be removed during F19 development cycle
Obsoletes: %{name}-tests < 0.07010-5
Provides: %{name}-tests = %{version}-%{release}
%{?perl_default_filter}
%{?perl_default_subpackage_tests}
%description
DBIx::Class::Schema::Loader automates the definition of a
@ -74,20 +77,16 @@ and setting up the columns, primary keys, and relationships.
%prep
%setup -q -n DBIx-Class-Schema-Loader-%{version}
sed -i -e '/^auto_install/d' Makefile.PL
mv README README.iconv
iconv -f iso-8859-1 -t utf-8 README.iconv >README
touch -r README.iconv README
rm -f README.iconv
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%{__perl} Makefile.PL --skipdeps INSTALLDIRS=vendor
make %{?_smp_mflags}
%install
rm -rf %{buildroot}
make pure_install DESTDIR=%{buildroot}
find %{buildroot} -type f -name .packlist -exec rm -f {} +
@ -99,17 +98,17 @@ find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \;
export SCHEMA_LOADER_TESTS_BACKCOMPAT=1
make test
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
%doc Changes README
%doc Changes README t/
%{perl_vendorlib}/*
%{_mandir}/man[13]/*
%{_bindir}/*
%changelog
* Sun Jan 22 2012 Iain Arnell <iarnell@gmail.com> 0.07010-5
- drop tests subpackage; move tests to main package documentation
- clean up spec for modern rpmbuild
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.07010-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild

Loading…
Cancel
Save