[perl-SQL-Abstract] Specify all dependencies

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

 



commit 4ab1d94b7b52c2a760dbb262165e5b945449d419
Author: Petr Písař <ppisar@xxxxxxxxxx>
Date:   Wed Dec 3 18:13:06 2014 +0100

    Specify all dependencies

 perl-SQL-Abstract.spec |   67 +++++++++++++++++++++++++++++++++++++++--------
 1 files changed, 55 insertions(+), 12 deletions(-)
---
diff --git a/perl-SQL-Abstract.spec b/perl-SQL-Abstract.spec
index 7894f90..f473567 100644
--- a/perl-SQL-Abstract.spec
+++ b/perl-SQL-Abstract.spec
@@ -1,35 +1,70 @@
 Name:           perl-SQL-Abstract
 Version:        1.81
-Release:        1%{?dist}
+Release:        2%{?dist}
 Summary:        Generate SQL from Perl data structures
 Group:          Development/Libraries
 License:        GPL+ or Artistic
 URL:            http://search.cpan.org/dist/SQL-Abstract
 Source0:        http://search.cpan.org/CPAN/authors/id/R/RI/RIBASUSHI/SQL-Abstract-%{version}.tar.gz
 BuildArch:      noarch
-BuildRequires:  perl(Class::Accessor::Grouped) >= 0.10005
-BuildRequires:  perl(Clone) >= 0.31
+BuildRequires:  perl
+BuildRequires:  perl(inc::Module::Install) >= 1.06
+BuildRequires:  perl(Module::Install::Makefile)
+BuildRequires:  perl(Module::Install::Metadata)
+BuildRequires:  perl(Module::Install::WriteAll)
+BuildRequires:  perl(strict)
+BuildRequires:  perl(warnings)
+# Run-time:
+BuildRequires:  perl(base)
+BuildRequires:  perl(Carp)
+BuildRequires:  perl(constant)
 BuildRequires:  perl(Data::Dumper)
-BuildRequires:	perl(Exporter) >= 5.57
-BuildRequires:	perl(MRO::Compat) >= 0.12
-BuildRequires:	perl(Moo) >= 1.004002
-BuildRequires:  perl(ExtUtils::MakeMaker) >= 6.42
-BuildRequires:  perl(Getopt::Long::Descriptive) >= 0.091
+# DBIx::Class::Storage::Statistic used only with optional tests
+BuildRequires:  perl(DBIx::Class::Storage::Statistics)
+BuildRequires:  perl(Exporter) >= 5.57
 BuildRequires:  perl(Hash::Merge) >= 0.12
 BuildRequires:  perl(List::Util)
+BuildRequires:  perl(Method::Generate::Accessor)
+BuildRequires:  perl(Method::Generate::Constructor)
+BuildRequires:  perl(Moo) >= 1.004002
+BuildRequires:  perl(Moo::Object)
+BuildRequires:  perl(mro)
+# MRO::Compat 0.12 not needed since perl 5.9
 BuildRequires:  perl(Scalar::Util)
-BuildRequires:	perl(Text::Balanced) >= 2.00
+BuildRequires:  perl(Sub::Defer)
+BuildRequires:  perl(Sub::Quote)
 BuildRequires:  perl(Test::Builder)
+BuildRequires:  perl(Test::Builder::Module)
 BuildRequires:  perl(Test::Deep) >= 0.101
+BuildRequires:  perl(Text::Balanced) >= 2.00
+# Optional run-time:
+# Term::ANSIColor not usefull for tests
+# Tests:
+BuildRequires:  perl(overload)
+BuildRequires:  perl(Storable)
 BuildRequires:  perl(Test::Exception) >= 0.31
-BuildRequires:  perl(Test::Warn)
 BuildRequires:  perl(Test::More) >= 0.92
+BuildRequires:  perl(Test::Warn)
+# Optional tests:
+BuildRequires:  perl(DBIx::Class) >= 0.08124
 Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
-Requires:       perl(Class::Accessor::Grouped) >= 0.10005
-Requires:       perl(Getopt::Long::Descriptive) >= 0.091
+Requires:       perl(Data::Dumper)
+Requires:       perl(Exporter) >= 5.57
 Requires:       perl(Hash::Merge) >= 0.12
+Requires:       perl(Method::Generate::Accessor)
+Requires:       perl(Method::Generate::Constructor)
+Requires:       perl(Moo) >= 1.004002
+Requires:       perl(Moo::Object)
+Requires:       perl(mro)
+# MRO::Compat 0.12 not needed since perl 5.9
+Requires:       perl(Sub::Defer)
+Requires:       perl(Sub::Quote)
+Requires:       perl(Test::Deep) >= 0.101
+Requires:       perl(Text::Balanced) >= 2.00
 
 %{?perl_default_filter}
+# Remove under-speciefed dependencies
+%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\((Exporter|Test::Deep)\\)$
 
 %description
 %{summary}.
@@ -38,12 +73,17 @@ Requires:       perl(Hash::Merge) >= 0.12
 Summary:        Pretty Printing DebugObj
 Group:          Development/Libraries
 License:        GPL+ or Artistic
+# Optional run-time:
+# Term::ANSIColor
 
 %description -n perl-DBIx-Class-Storage-Debug-PrettyPrint
 %{summary}.
 
 %prep
 %setup -q -n SQL-Abstract-%{version}
+# Remove bundled modules
+rm -r ./inc
+sed -i -e '/^inc\//d' MANIFEST
 
 %build
 PERL5_CPANPLUS_IS_RUNNING=1 %{__perl} Makefile.PL INSTALLDIRS=vendor
@@ -70,6 +110,9 @@ SQLATEST_TESTER=1 make test
 %{_mandir}/man3/DBIx::Class::Storage::Debug::PrettyPrint.3pm*
 
 %changelog
+* Wed Dec 03 2014 Petr Pisar <ppisar@xxxxxxxxxx> - 1.81-2
+- Specify all dependencies (bug #1168882)
+
 * Mon Nov 24 2014 Tom Callaway <spot@xxxxxxxxxxxxxxxxx> - 1.81-1
 - update to 1.81
 
--
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