commit 786fe52de88be03e41bf252b14c570565b60a49d Author: Petr Písař <ppisar@xxxxxxxxxx> Date: Wed Aug 22 13:23:09 2012 +0200 Specify all dependencies perl-DBD-Pg.spec | 46 ++++++++++++++++++++++++++++++++++++++-------- 1 files changed, 38 insertions(+), 8 deletions(-) --- diff --git a/perl-DBD-Pg.spec b/perl-DBD-Pg.spec index 544c1fc..59b67f2 100644 --- a/perl-DBD-Pg.spec +++ b/perl-DBD-Pg.spec @@ -1,29 +1,51 @@ Name: perl-DBD-Pg Summary: A PostgreSQL interface for perl Version: 2.19.3 -Release: 1%{?dist} +Release: 2%{?dist} License: GPLv2+ or Artistic Group: Development/Libraries Source0: http://search.cpan.org/CPAN/authors/id/T/TU/TURNSTEP/DBD-Pg-%{version}.tar.gz URL: http://search.cpan.org/dist/DBD-Pg/ -Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) +BuildRequires: perl(Carp) +BuildRequires: perl(constant) +BuildRequires: perl(ExtUtils::MakeMaker) +BuildRequires: perl(File::Spec) +BuildRequires: perl(lib) +BuildRequires: postgresql-devel >= 7.4 +# Run-time: # Prevent bug #443495 BuildRequires: perl(DBI) >= 1.607 -BuildRequires: perl(ExtUtils::MakeMaker) -BuildRequires: perl(Test::More) >= 0.61 +BuildRequires: perl(Exporter) BuildRequires: perl(version) -BuildRequires: postgresql-devel >= 7.4 -BuildRequires: perl(Test::Simple), postgresql-server +# Tests: +%tests_req perl(Cwd) +%tests_req perl(Data::Dumper) +%tests_req perl(Test::More) >= 0.61 +%tests_req perl(Test::Simple) +%tests_req perl(Time::HiRes) +%tests_req postgresql-server +# Optional tests: +%tests_req perl(Encode) +%tests_req perl(File::Temp) +# test sub-package requirements +%tests_subpackage_requires perl(Carp) +%tests_subpackage_requires perl(Data::Peek) +%tests_subpackage_requires perl(DBD::Pg) +%tests_subpackage_requires perl(DBI) +%tests_subpackage_requires perl(File::Spec) +%tests_subpackage_requires perl(lib) +%tests_subpackage_requires perl(YAML) +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) Requires: perl(DBI) >= 1.52 -# test requirements -Requires: perl(Data::Peek) + # Missed by the find provides script: Provides: perl(DBD::Pg) = %{version} %{?perl_default_filter} %global __provides_exclude %{?__provides_exclude:%__provides_exclude|}^perl\\(DBD::Pg\\)$ +%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\(DBI\\)$ %{?perl_default_subpackage_tests} %description @@ -32,6 +54,10 @@ to PostgreSQL databases. %prep %setup -q -n DBD-Pg-%{version} +# Move testme.tmp.pl into tests sub-package +mv testme.tmp.pl t/ +sed -i -e '/^testme.tmp.pl$/ s/^/t\//' MANIFEST +sed -i -e '1 s/#!.*//' t/testme.tmp.pl %build %{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS" @@ -61,6 +87,10 @@ make test %changelog +* Wed Aug 22 2012 Petr Pisar <ppisar@xxxxxxxxxx> - 2.19.3-2 +- Specify all dependencies +- Move testme.tmp.pl to tests sub-package + * Wed Aug 22 2012 Petr Pisar <ppisar@xxxxxxxxxx> - 2.19.3-1 - 2.19.3 bump -- 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