forked from pool/perl-Module-Install
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Module-Install?expand=0&rev=1
101 lines
3.6 KiB
RPMSpec
101 lines
3.6 KiB
RPMSpec
# vim: set sw=4 ts=4 et nu:
|
|
# norootforbuild
|
|
|
|
Name: perl-Module-Install
|
|
Version: 1.00
|
|
Release: 0
|
|
Summary: Standalone, extensible Perl module installer
|
|
Source: http://search.cpan.org/CPAN/authors/id/A/AD/ADAMK/Module-Install-%{version}.tar.gz
|
|
URL: http://search.cpan.org/dist/Module-Install
|
|
Group: Development/Libraries/Perl
|
|
License: Perl License
|
|
BuildRoot: %{_tmppath}/build-%{name}-%{version}
|
|
Requires: perl = %{perl_version}
|
|
BuildRequires: perl
|
|
BuildRequires: make
|
|
BuildRequires: perl(Test::More) >= 0.86
|
|
BuildRequires: perl(Test::Harness) >= 3.13
|
|
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.42
|
|
BuildRequires: perl(YAML::Tiny) >= 1.33
|
|
BuildRequires: perl(ExtUtils::MakeMaker)
|
|
BuildRequires: perl(Parse::CPAN::Meta) >= 1.39
|
|
BuildRequires: perl(File::Remove) >= 1.42
|
|
BuildRequires: perl(YAML::Tiny) >= 1.38
|
|
BuildRequires: perl(File::Spec) >= 3.28
|
|
BuildRequires: perl(ExtUtils::ParseXS) >= 2.19
|
|
BuildRequires: perl(Devel::PPPort) >= 3.16
|
|
BuildRequires: perl(ExtUtils::Install) >= 1.52
|
|
BuildRequires: perl(PAR::Dist) >= 0.29
|
|
BuildRequires: perl(LWP::UserAgent) >= 5.812
|
|
BuildRequires: perl(Module::ScanDeps) >= 0.89
|
|
BuildRequires: perl(Module::CoreList) >= 2.17
|
|
BuildRequires: perl(Archive::Tar) >= 1.44
|
|
BuildRequires: perl(JSON) >= 2.14
|
|
BuildRequires: perl(Module::Build) >= 0.29
|
|
Requires: perl(Parse::CPAN::Meta) >= 1.39
|
|
Requires: perl(File::Remove) >= 1.42
|
|
Requires: perl(YAML::Tiny) >= 1.38
|
|
Requires: perl(File::Spec) >= 3.28
|
|
Requires: perl(ExtUtils::ParseXS) >= 2.19
|
|
Requires: perl(Devel::PPPort) >= 3.16
|
|
Requires: perl(ExtUtils::Install) >= 1.52
|
|
Requires: perl(PAR::Dist) >= 0.29
|
|
Requires: perl(LWP::UserAgent) >= 5.812
|
|
Requires: perl(Module::ScanDeps) >= 0.89
|
|
Requires: perl(Module::CoreList) >= 2.17
|
|
Requires: perl(Archive::Tar) >= 1.44
|
|
Requires: perl(JSON) >= 2.14
|
|
Requires: perl(Module::Build) >= 0.29
|
|
|
|
%description
|
|
Module::Install is a package for writing installers for CPAN (or
|
|
CPAN-like) distributions that are clean, simple, minimalist, act in a
|
|
strictly correct manner with ExtUtils::MakeMaker, and will run on any Perl
|
|
installation version 5.005 or newer.
|
|
|
|
The intent is to make it as easy as possible for CPAN authors (and
|
|
especially for first-time CPAN authors) to have installers that follow all
|
|
the best practices for distribution installation, but involve as much DWIM
|
|
(Do What I Mean) as possible when writing them.
|
|
Writing Module::Install Installers
|
|
|
|
%prep
|
|
%setup -q -n "Module-Install-%{version}"
|
|
%__sed -i '/^auto_install/d' Makefile.PL
|
|
|
|
%build
|
|
%__perl Makefile.PL PREFIX="%{_prefix}"
|
|
%__make %{?jobs:-j%{jobs}}
|
|
|
|
%install
|
|
%perl_make_install
|
|
%perl_process_packlist
|
|
|
|
%check
|
|
%__make test
|
|
|
|
%clean
|
|
%{?buildroot:%__rm -rf "%{buildroot}"}
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%doc LICENSE README Changes
|
|
%dir %{perl_vendorlib}/Module
|
|
%{perl_vendorlib}/Module/AutoInstall.pm
|
|
%{perl_vendorlib}/Module/Install.pm
|
|
%doc %{perl_vendorlib}/Module/Install.pod
|
|
%{perl_vendorlib}/Module/Install
|
|
%dir %{perl_vendorlib}/inc
|
|
%dir %{perl_vendorlib}/inc/Module
|
|
%{perl_vendorlib}/inc/Module/Install.pm
|
|
%{perl_vendorlib}/inc/Module/Install
|
|
%dir %{perl_vendorarch}/auto/Module
|
|
%{perl_vendorarch}/auto/Module/Install
|
|
%doc %{perl_man3dir}/Module::AutoInstall.%{perl_man3ext}%{ext_man}
|
|
%doc %{perl_man3dir}/Module::Install.%{perl_man3ext}%{ext_man}
|
|
%doc %{perl_man3dir}/Module::Install::*.%{perl_man3ext}%{ext_man}
|
|
%doc %{perl_man3dir}/inc::Module::Install.%{perl_man3ext}%{ext_man}
|
|
%doc %{perl_man3dir}/inc::Module::Install::*.%{perl_man3ext}%{ext_man}
|
|
/var/adm/perl-modules/%{name}
|
|
|