1
0
perl-Module-Build/perl-Module-Build.spec

112 lines
3.7 KiB
RPMSpec
Raw Normal View History

# vim: set sw=4 ts=4 et nu:
# norootforbuild
Name: perl-Module-Build
Version: 0.3607
Release: 0
Summary: Build and install Perl modules
Source: http://search.cpan.org/CPAN/authors/id/D/DA/DAGOLDEN/Module-Build-%{version}.tar.gz
URL: http://search.cpan.org/dist/Module-Build
Group: Development/Libraries/Perl
License: Perl License
BuildRoot: %{_tmppath}/build-%{name}-%{version}
Requires: perl = %{perl_version}
BuildRequires: make perl
BuildRequires: perl(Test::More) >= 0.49
BuildRequires: perl(Test::Harness) >= 3.16
BuildRequires: perl(File::Temp) >= 0.15
BuildRequires: perl(Module::Build)
BuildRequires: perl(File::Spec) >= 0.82
BuildRequires: perl(ExtUtils::Install)
BuildRequires: perl(File::Compare)
BuildRequires: perl(File::Find)
BuildRequires: perl(File::Path)
BuildRequires: perl(ExtUtils::CBuilder) >= 0.27
BuildRequires: perl(ExtUtils::Manifest)
BuildRequires: perl(Text::Abbrev)
BuildRequires: perl(File::Copy)
BuildRequires: perl(Getopt::Long)
BuildRequires: perl(Test::Harness)
BuildRequires: perl(IO::File)
BuildRequires: perl(Data::Dumper)
BuildRequires: perl(ExtUtils::ParseXS) >= 2.21
BuildRequires: perl(Text::ParseWords)
BuildRequires: perl(File::Basename)
BuildRequires: perl(ExtUtils::Mkbootstrap)
BuildRequires: perl(Cwd)
BuildRequires: perl(PAR::Dist) >= 0.17
BuildRequires: perl(Archive::Zip)
Requires: perl(File::Spec) >= 0.82
Requires: perl(ExtUtils::Install)
Requires: perl(File::Compare)
Requires: perl(File::Find)
Requires: perl(File::Path)
Requires: perl(ExtUtils::CBuilder) >= 0.27
Requires: perl(ExtUtils::Manifest)
Requires: perl(Text::Abbrev)
Requires: perl(File::Copy)
Requires: perl(Getopt::Long)
Requires: perl(Test::Harness)
Requires: perl(IO::File)
Requires: perl(Data::Dumper)
Requires: perl(ExtUtils::ParseXS) >= 2.21
Requires: perl(Text::ParseWords)
Requires: perl(File::Basename)
Requires: perl(ExtUtils::Mkbootstrap)
Requires: perl(Cwd)
Requires: perl(PAR::Dist) >= 0.17
Requires: perl(Archive::Zip)
# YAML support
Requires: perl(YAML) >= 0.35
# manpage_support
Requires: perl(Pod::Man)
# HTML_support
Requires: perl(Pod::Html)
%description
`Module::Build' is a system for building, testing, and installing Perl
modules. It is meant to be an alternative to `ExtUtils::MakeMaker'.
Developers may alter the behavior of the module through subclassing in a
much more straightforward way than with `MakeMaker'. It also does not
require a `make' on your system - most of the `Module::Build' code is
pure-perl and written in a very cross-platform way. In fact, you don`t
even need a shell, so even platforms like MacOS (traditional) can use it
fairly easily. Its only prerequisites are modules that are included with
perl 5.6.0, and it works fine on perl 5.005 if you can install a few
additional modules.
%prep
%setup -q -n "Module-Build-%{version}"
%build
%__perl ./Build.PL
./Build
%install
./Build pure_install --destdir "%{buildroot}" --installdirs vendor
%perl_process_packlist
%check
./Build test
%clean
%{?buildroot:%__rm -rf "%{buildroot}"}
%files
%defattr(-,root,root)
%doc Changes README LICENSE
%{_bindir}/config_data
%doc %{_mandir}/man1/config_data.1%{ext_man}
%dir %{perl_vendorlib}/Module
%{perl_vendorlib}/Module/Build.pm
%{perl_vendorlib}/Module/Build
%dir %{perl_vendorlib}/inc
%{perl_vendorlib}/inc/latest.pm
%{perl_vendorlib}/inc/latest
%dir %{perl_vendorarch}/auto/Module
%{perl_vendorarch}/auto/Module/Build
%doc %{perl_man3dir}/Module::Build.%{perl_man3ext}%{ext_man}
%doc %{perl_man3dir}/Module::Build::*.%{perl_man3ext}%{ext_man}
%doc %{perl_man3dir}/inc::latest.%{perl_man3ext}%{ext_man}