apply paul's fixes from bz 810719

This commit is contained in:
Tom Callaway 2012-04-12 14:09:34 -04:00
parent b22fc7c60b
commit f4e67a2224
1 changed files with 24 additions and 15 deletions

View File

@ -1,13 +1,11 @@
Name: perl-SQL-Abstract Name: perl-SQL-Abstract
Version: 1.72 Version: 1.72
Release: 4%{?dist} Release: 5%{?dist}
Summary: Generate SQL from Perl data structures Summary: Generate SQL from Perl data structures
Group: Development/Libraries Group: Development/Libraries
License: GPL+ or Artistic License: GPL+ or Artistic
URL: http://search.cpan.org/dist/SQL-Abstract URL: http://search.cpan.org/dist/SQL-Abstract
Source0: http://search.cpan.org/CPAN/authors/id/F/FR/FREW/SQL-Abstract-%{version}.tar.gz Source0: http://search.cpan.org/CPAN/authors/id/F/FR/FREW/SQL-Abstract-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch BuildArch: noarch
BuildRequires: perl(Test::Deep) >= 0.106 BuildRequires: perl(Test::Deep) >= 0.106
BuildRequires: perl(Test::Exception) BuildRequires: perl(Test::Exception)
@ -21,8 +19,7 @@ BuildRequires: perl(Hash::Merge) >= 0.12
BuildRequires: perl(Scalar::Util) BuildRequires: perl(Scalar::Util)
BuildRequires: perl(List::Util) BuildRequires: perl(List::Util)
BuildRequires: perl(Test::Builder) BuildRequires: perl(Test::Builder)
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
Requires: perl(Class::Accessor::Grouped) >= 0.10002 Requires: perl(Class::Accessor::Grouped) >= 0.10002
Requires: perl(Getopt::Long::Descriptive) >= 0.086 Requires: perl(Getopt::Long::Descriptive) >= 0.086
Requires: perl(Hash::Merge) >= 0.12 Requires: perl(Hash::Merge) >= 0.12
@ -32,6 +29,14 @@ Requires: perl(Hash::Merge) >= 0.12
%description %description
%{summary}. %{summary}.
%package -n perl-DBIx-Class-Storage-Debug-PrettyPrint
Summary: Pretty Printing DebugObj
Group: Development/Libraries
License: GPL+ or Artistic
%description -n perl-DBIx-Class-Storage-Debug-PrettyPrint
%{summary}.
%prep %prep
%setup -q -n SQL-Abstract-%{version} %setup -q -n SQL-Abstract-%{version}
@ -40,7 +45,6 @@ PERL5_CPANPLUS_IS_RUNNING=1 %{__perl} Makefile.PL INSTALLDIRS=vendor
make make
%install %install
rm -rf $RPM_BUILD_ROOT
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';' find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null ';' find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null ';'
@ -49,19 +53,24 @@ find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null ';'
%check %check
SQLATEST_TESTER=1 make test SQLATEST_TESTER=1 make test
%clean
rm -rf $RPM_BUILD_ROOT
%files %files
%defattr(-,root,root,-)
%doc Changes %doc Changes
%{_bindir}/* %{_bindir}/format-sql
%{perl_vendorlib}/DBIx %{perl_vendorlib}/SQL/
%{perl_vendorlib}/SQL %{_mandir}/man3/SQL::Abstract.3pm*
%{_mandir}/man3/*.3* %{_mandir}/man3/SQL::Abstract::Test.3pm*
%{_mandir}/man3/SQL::Abstract::Tree.3pm*
%files -n perl-DBIx-Class-Storage-Debug-PrettyPrint
%{perl_vendorlib}/DBIx/
%{_mandir}/man3/DBIx::Class::Storage::Debug::PrettyPrint.3pm*
%changelog %changelog
* Sun Apr 8 2012 Paul Howarth <paul@city-fan.org> - 1.72-5
- Split DBIx::Class::Storage::Debug::PrettyPrint off into its own sub-package
to avoid a dependency cycle, since perl-SQL-Abstract and perl-DBIx-Class
would otherwise require each other and make perl-DBIx-Class unbootable
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.72-4 * Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.72-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild