commit 595dab812a36e6b6269c55ed2d89b28d7a5aa28a Author: Petr Písař <ppisar@xxxxxxxxxx> Date: Thu Dec 4 15:46:19 2014 +0100 Specify all dependencies perl-Archive-RPM.spec | 62 +++++++++++++++++++++++++++++++++--------------- 1 files changed, 42 insertions(+), 20 deletions(-) --- diff --git a/perl-Archive-RPM.spec b/perl-Archive-RPM.spec index 2b56a69..aac494d 100644 --- a/perl-Archive-RPM.spec +++ b/perl-Archive-RPM.spec @@ -10,27 +10,41 @@ Url: http://search.cpan.org/dist/Archive-RPM Source: http://search.cpan.org/CPAN/authors/id/R/RS/RSRCHBOY/Archive-RPM-%{version}.tar.gz # Restore compatibility with Moose > 2.1005, bug #1168859, CPAN RT#100701 Patch0: Archive-RPM-0.07-Inject-RPM2-Headers-into-INC-for-Moose-2.1005.patch -Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) BuildArch: noarch -# non-perl -BuildRequires: rpm, cpio -Requires: rpm, cpio -BuildRequires: perl(CPAN) -BuildRequires: perl(DateTime) -BuildRequires: perl(ExtUtils::MakeMaker) >= 6.42 -BuildRequires: perl(File::Temp) -BuildRequires: perl(Moose) -BuildRequires: perl(MooseX::AttributeHelpers) -BuildRequires: perl(MooseX::MarkAsMethods) -BuildRequires: perl(MooseX::Traits) -BuildRequires: perl(MooseX::Types::DateTime) -BuildRequires: perl(MooseX::Types::DateTimeX) -BuildRequires: perl(MooseX::Types::Path::Class) -BuildRequires: perl(Path::Class) -BuildRequires: perl(RPM2) >= 0.67 -BuildRequires: perl(Test::More) -Requires: perl(MooseX::Traits) -Requires: perl(MooseX::Types::DateTime) +BuildRequires: perl +BuildRequires: perl(inc::Module::Install) +BuildRequires: perl(Module::Install::AutoInstall) +BuildRequires: perl(Module::Install::External) +# Module::Install::ExtraTests not helpful +BuildRequires: perl(Module::Install::GithubMeta) +BuildRequires: perl(Module::Install::Metadata) +BuildRequires: perl(Module::Install::ReadmeFromPod) +BuildRequires: perl(Module::Install::ReadmeMarkdownFromPod) +BuildRequires: perl(Module::Install::WriteAll) +# Run-time: +BuildRequires: cpio +BuildRequires: perl(DateTime) +BuildRequires: perl(English) +BuildRequires: perl(File::Temp) +BuildRequires: perl(Moose) +BuildRequires: perl(MooseX::AttributeHelpers) +BuildRequires: perl(MooseX::MarkAsMethods) +BuildRequires: perl(MooseX::Traits) +BuildRequires: perl(MooseX::Types::DateTimeX) +BuildRequires: perl(MooseX::Types::Path::Class) +BuildRequires: perl(overload) +BuildRequires: perl(Path::Class) +BuildRequires: perl(RPM2) >= 0.67 +BuildRequires: rpm +# Tests: +BuildRequires: perl(FindBin) +BuildRequires: perl(strict) +BuildRequires: perl(Test::More) +BuildRequires: perl(warnings) +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) +Requires: cpio +Requires: perl(MooseX::Traits) +Requires: rpm %{?perl_default_filter} %{?perl_default_subpackage_tests} @@ -44,6 +58,13 @@ information we can't get through RPM2. %prep %setup -q -n Archive-RPM-%{version} %patch0 -p1 +# Remove bundled modules +rm -r ./inc +sed -i -e '/^inc\//d' MANIFEST +# Remove useless dependency, CPAN RT#100703 +sed -i -e "/^requires 'MooseX::Types::DateTime';\$/d" Makefile.PL +# Disable authors tests +sed -i -e '/^extra_tests;$/d' Makefile.PL %build perl Makefile.PL INSTALLDIRS=vendor @@ -66,6 +87,7 @@ make test %changelog * Thu Dec 04 2014 Petr Pisar <ppisar@xxxxxxxxxx> - 0.07-9 - Restore compatibility with Moose > 2.1005 (bug #1168859) +- Specify all dependencies * Mon Sep 01 2014 Jitka Plesnikova <jplesnik@xxxxxxxxxx> - 0.07-8 - Perl 5.20 rebuild -- 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