Unbundle inc/* and correct dependencies

This commit is contained in:
Petr Písař 2012-10-23 11:29:46 +02:00
parent 3cec759fa5
commit a2f0e01601

View File

@ -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