perl-Module-Build/perl-Module-Build.spec

146 lines
4.6 KiB
RPMSpec
Raw Normal View History

#
# 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/
#
# norootforbuild
Name: perl-Module-Build
%define cpan_name %( echo %{name} | %{__sed} -e 's,perl-,,' )
Summary: Build and install Perl modules
Version: 0.31
Release: 1
License: artistic
Group: Development/Libraries/Perl
Url: http://search.cpan.org/perldoc?Module::Build
Source0: %{cpan_name}-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(Test::More) >= 0.49
BuildRequires: perl(Test::Harness) >= 2.03
BuildRequires: perl(Data::Dumper)
BuildRequires: perl(File::Basename)
#BuildRequires: perl(File::Compare)
#BuildRequires: perl(File::Copy)
BuildRequires: perl(File::Find)
BuildRequires: perl(File::Path)
BuildRequires: perl(File::Spec) >= 0.82
BuildRequires: perl(IO::File)
# defined in Build.PL but not used
#BuildRequires: perl(Text::Abbrev)
BuildRequires: perl(Text::ParseWords)
BuildRequires: perl(Getopt::Long)
BuildRequires: perl(Test::Harness)
# recommends by Build.PL
BuildRequires: perl(Archive::Tar) >= 1.08
BuildRequires: perl(Archive::Zip)
#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
# YAML support
Requires: perl(YAML) >= 0.35
# manpage_support
Requires: perl(Pod::Man)
# HTML_support
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
%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.
Authors:
--------
Andy Lester <andy@petdance.com>
%prep
%setup -q -n %{cpan_name}-%{version}
%build
CFLAGS="$RPM_OPT_FLAGS" perl Build.PL --prefix $RPM_BUILD_ROOT/usr --installdirs vendor
./Build
%check
./Build test
%install
./Build install
%perl_process_packlist
%perl_gen_filelist
%clean
%{__rm} -rf $RPM_BUILD_ROOT
%files -f %{name}.files
%defattr(-,root,root)
%doc Changes INSTALL LICENSE README
%changelog