From a2f0e0160147322b3149c92070e9158331453c69 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= Date: Tue, 23 Oct 2012 11:29:46 +0200 Subject: [PATCH] Unbundle inc/* and correct dependencies --- perl-Module-ScanDeps.spec | 30 ++++++++++++++++-------------- 1 file changed, 16 insertions(+), 14 deletions(-) diff --git a/perl-Module-ScanDeps.spec b/perl-Module-ScanDeps.spec index 4f172fe..2743f2a 100644 --- a/perl-Module-ScanDeps.spec +++ b/perl-Module-ScanDeps.spec @@ -6,15 +6,18 @@ License: GPL+ or Artistic Group: Development/Libraries Source0: http://search.cpan.org/CPAN/authors/id/R/RS/RSCHUPP/Module-ScanDeps-%{version}.tar.gz URL: http://search.cpan.org/dist/Module-ScanDeps/ -Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) BuildArch: noarch +BuildRequires: perl(inc::Module::Install) >= 1.00 +# Run-time: +BuildRequires: perl(B) BuildRequires: perl(Config) +BuildRequires: perl(constant) BuildRequires: perl(Cwd) +BuildRequires: perl(Data::Dumper) BuildRequires: perl(DynaLoader) BuildRequires: perl(Encode) BuildRequires: perl(Exporter) -BuildRequires: perl(ExtUtils::MakeMaker) >= 6.59 BuildRequires: perl(File::Basename) BuildRequires: perl(File::Find) BuildRequires: perl(File::Path) @@ -22,22 +25,18 @@ BuildRequires: perl(File::Spec) BuildRequires: perl(File::Temp) BuildRequires: perl(FileHandle) BuildRequires: perl(Module::Build::ModuleInfo) -BuildRequires: perl(Module::Pluggable) -BuildRequires: perl(Test::More) -BuildRequires: perl(Test::Pod) -BuildRequires: perl(constant) -BuildRequires: perl(prefork) BuildRequires: perl(vars) BuildRequires: perl(version) - -Requires: perl(DynaLoader) +# Tests: +BuildRequires: perl(lib) +BuildRequires: perl(prefork) +BuildRequires: perl(Test::More) +# Optional tests: +BuildRequires: perl(Module::Pluggable) +BuildRequires: perl(Test::Pod) >= 1.00 +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) Requires: perl(Encode) -Requires: perl(Exporter) Requires: perl(File::Find) -Requires: perl(File::Spec) -Requires: perl(File::Temp) -Requires: perl(Module::Build::ModuleInfo) -Requires: perl(version) %{?perl_default_filter} @@ -49,6 +48,9 @@ Test/More.pm). The values are hash references. %prep %setup -q -n Module-ScanDeps-%{version} +# Remove bundled modules +rm -rf inc/* +sed -i '/^inc\//d' MANIFEST %build %{__perl} Makefile.PL INSTALLDIRS=vendor