2010-09-04 22:04:29 +02:00
|
|
|
#
|
|
|
|
# spec file for package perl-Module-Build (Version 0.31)
|
|
|
|
#
|
|
|
|
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2010-03-04 16:45:24 +01:00
|
|
|
# norootforbuild
|
|
|
|
|
|
|
|
Name: perl-Module-Build
|
2010-09-04 22:04:29 +02:00
|
|
|
%define cpan_name %( echo %{name} | %{__sed} -e 's,perl-,,' )
|
2010-03-04 16:45:24 +01:00
|
|
|
Summary: Build and install Perl modules
|
2010-09-04 22:04:29 +02:00
|
|
|
Version: 0.31
|
|
|
|
Release: 1
|
|
|
|
License: artistic
|
2010-03-04 16:45:24 +01:00
|
|
|
Group: Development/Libraries/Perl
|
2010-09-04 22:04:29 +02:00
|
|
|
Url: http://search.cpan.org/perldoc?Module::Build
|
|
|
|
Source0: %{cpan_name}-%{version}.tar.bz2
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
BuildRequires: perl
|
|
|
|
BuildRequires: perl-macros
|
2010-03-04 16:45:24 +01:00
|
|
|
BuildRequires: perl(Test::More) >= 0.49
|
2010-09-04 22:04:29 +02:00
|
|
|
BuildRequires: perl(Test::Harness) >= 2.03
|
|
|
|
BuildRequires: perl(Data::Dumper)
|
|
|
|
BuildRequires: perl(File::Basename)
|
|
|
|
#BuildRequires: perl(File::Compare)
|
|
|
|
#BuildRequires: perl(File::Copy)
|
2010-03-04 16:45:24 +01:00
|
|
|
BuildRequires: perl(File::Find)
|
|
|
|
BuildRequires: perl(File::Path)
|
2010-09-04 22:04:29 +02:00
|
|
|
BuildRequires: perl(File::Spec) >= 0.82
|
2010-08-26 21:19:08 +02:00
|
|
|
BuildRequires: perl(IO::File)
|
2010-09-04 22:04:29 +02:00
|
|
|
# defined in Build.PL but not used
|
|
|
|
#BuildRequires: perl(Text::Abbrev)
|
2010-08-26 21:19:08 +02:00
|
|
|
BuildRequires: perl(Text::ParseWords)
|
2010-09-04 22:04:29 +02:00
|
|
|
BuildRequires: perl(Getopt::Long)
|
|
|
|
BuildRequires: perl(Test::Harness)
|
|
|
|
# recommends by Build.PL
|
|
|
|
BuildRequires: perl(Archive::Tar) >= 1.08
|
2010-08-26 21:19:08 +02:00
|
|
|
BuildRequires: perl(Archive::Zip)
|
2010-09-04 22:04:29 +02:00
|
|
|
#BuildRequires: perl(ExtUtils::CBuilder) >= 0.15
|
|
|
|
#BuildRequires: perl(ExtUtils::Install) >= 0.30
|
|
|
|
#BuildRequires: perl(ExtUtils::ParseXS) >= 1.02
|
|
|
|
|
|
|
|
## Pod::Readme requires Pod::Text >= 3.00
|
|
|
|
## only perl >= 5.10 will fullfill this dep
|
|
|
|
%if 0%{?suse_version} >= 1100
|
|
|
|
BuildRequires: perl(Pod::Readme) >= 0.04
|
|
|
|
Requires: perl(Pod::Readme) >= 0.04
|
|
|
|
%endif
|
|
|
|
|
|
|
|
BuildRequires: perl(Module::Signature) >= 0.21
|
|
|
|
BuildRequires: perl(version) >= 0.74
|
|
|
|
# YAML support
|
|
|
|
BuildRequires: perl(YAML) >= 0.35
|
|
|
|
|
|
|
|
# not mentioned in Build.PL
|
|
|
|
BuildRequires: perl(PAR::Dist) >= 0.17
|
|
|
|
BuildRequires: perl(TAP::Parser)
|
|
|
|
##################################################
|
|
|
|
Requires: perl = %{perl_version}
|
|
|
|
Requires: perl(Data::Dumper)
|
|
|
|
Requires: perl(File::Basename)
|
|
|
|
Requires: perl(File::Compare)
|
|
|
|
Requires: perl(File::Copy)
|
|
|
|
Requires: perl(File::Find)
|
|
|
|
Requires: perl(File::Path)
|
|
|
|
Requires: perl(File::Spec) >= 0.82
|
|
|
|
Requires: perl(ExtUtils::Install) >= 0.30
|
|
|
|
Requires: perl(ExtUtils::Manifest)
|
|
|
|
Requires: perl(ExtUtils::Mkbootstrap)
|
|
|
|
Requires: perl(IO::File)
|
|
|
|
# defined in Build.PL but not used
|
|
|
|
#Requires: perl(Text::Abbrev)
|
|
|
|
Requires: perl(Text::ParseWords)
|
|
|
|
Requires: perl(Getopt::Long)
|
|
|
|
Requires: perl(Test::Harness)
|
|
|
|
# recommends by Build.PL
|
|
|
|
Requires: perl(Archive::Tar) >= 1.08
|
|
|
|
Requires: perl(ExtUtils::CBuilder) >= 0.15
|
|
|
|
Requires: perl(ExtUtils::ParseXS) >= 1.02
|
|
|
|
Requires: perl(Module::Signature) >= 0.21
|
|
|
|
Requires: perl(version) >= 0.74
|
2010-03-04 16:45:24 +01:00
|
|
|
# YAML support
|
2010-09-04 22:04:29 +02:00
|
|
|
Requires: perl(YAML) >= 0.35
|
2010-03-04 16:45:24 +01:00
|
|
|
# manpage_support
|
2010-09-04 22:04:29 +02:00
|
|
|
Requires: perl(Pod::Man)
|
2010-03-04 16:45:24 +01:00
|
|
|
# HTML_support
|
2010-09-04 22:04:29 +02:00
|
|
|
Requires: perl(Pod::Html)
|
|
|
|
|
|
|
|
# not mentioned in Build.PL
|
|
|
|
Requires: perl(PAR::Dist) >= 0.17
|
|
|
|
Requires: perl(TAP::Parser)
|
|
|
|
Requires: perl(Test::Pod) >= 0.95
|
|
|
|
Requires: perl(Test::Pod::Coverage) >= 1.00
|
2010-03-04 16:45:24 +01:00
|
|
|
|
|
|
|
%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.
|
|
|
|
|
2010-09-04 22:04:29 +02:00
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Andy Lester <andy@petdance.com>
|
|
|
|
|
2010-03-04 16:45:24 +01:00
|
|
|
%prep
|
2010-09-04 22:04:29 +02:00
|
|
|
%setup -q -n %{cpan_name}-%{version}
|
2010-03-04 16:45:24 +01:00
|
|
|
|
|
|
|
%build
|
2010-09-04 22:04:29 +02:00
|
|
|
CFLAGS="$RPM_OPT_FLAGS" perl Build.PL --prefix $RPM_BUILD_ROOT/usr --installdirs vendor
|
2010-03-04 16:45:24 +01:00
|
|
|
./Build
|
|
|
|
|
2010-08-26 21:19:08 +02:00
|
|
|
%check
|
|
|
|
./Build test
|
|
|
|
|
2010-09-04 22:04:29 +02:00
|
|
|
%install
|
|
|
|
./Build install
|
|
|
|
%perl_process_packlist
|
|
|
|
%perl_gen_filelist
|
|
|
|
|
|
|
|
%clean
|
|
|
|
%{__rm} -rf $RPM_BUILD_ROOT
|
2010-03-04 16:45:24 +01:00
|
|
|
|
2010-09-04 22:04:29 +02:00
|
|
|
%files -f %{name}.files
|
2010-03-04 16:45:24 +01:00
|
|
|
%defattr(-,root,root)
|
2010-09-04 22:04:29 +02:00
|
|
|
%doc Changes INSTALL LICENSE README
|
|
|
|
|
|
|
|
%changelog
|
2010-03-04 16:45:24 +01:00
|
|
|
|