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

137 lines
4.6 KiB
RPMSpec

#
# spec file for package perl-Module-Build (Version 0.36)
#
# Copyright (c) 2010 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 Module-Build
Summary: Build and install Perl modules
Version: 0.36.07
%define _version 0.3607
Release: 1
License: GPL+ or Artistic
Group: Development/Libraries/Perl
Url: http://search.cpan.org/dist/Module-Build/
#Source: http://www.cpan.org/modules/by-module/Module/Module-Build-%{version}.tar.gz
Source: %{cpan_name}-%{_version}.tar.bz2
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{_version}-build
%{perl_requires}
# for rename
BuildRequires: util-linux
BuildRequires: perl
BuildRequires: perl(Module::Build)
BuildRequires: perl-macros
BuildRequires: perl(File::Temp) >= 0.15
BuildRequires: perl(Test::More) >= 0.49
BuildRequires: perl(Test::Harness) >= 3.16
#
BuildRequires: perl(Cwd)
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(Getopt::Long)
BuildRequires: perl(IO::File)
BuildRequires: perl(Text::Abbrev)
BuildRequires: perl(Text::ParseWords)
#BuildRequires: perl(version) >= 0.74
##################################################
Requires: perl(Cwd)
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(Getopt::Long)
Requires: perl(IO::File)
Requires: perl(Text::Abbrev)
Requires: perl(Text::ParseWords)
Recommends: perl(version) >= 0.74
##################################################
#
BuildRequires: perl(Archive::Tar) >= 1.09
## 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
Recommends: perl(Pod::Readme) >= 0.04
%endif
#BuildRequires: perl(Module::Signature) >= 0.21
Recommends: perl(Module::Signature) >= 0.21
#
#BuildRequires: perl(Software::License)
#Requires: perl(Software::License)
# YAML support
BuildRequires: perl(YAML::Tiny) >= 1.38
Requires: perl(YAML::Tiny) >= 1.38
# manpage_support
Requires: perl(Pod::Man)
# HTML_support
Requires: perl(Pod::Html)
# not mentioned in Build.PL
BuildRequires: perl(PAR::Dist) >= 0.17
Requires: perl(PAR::Dist) >= 0.17
##################################################
%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:
--------
Ken Williams <kwilliams@cpan.org>
%prep
%setup -q -n %{cpan_name}-%{_version}
%build
%{__perl} Build.PL installdirs=vendor
./Build build flags=%{?_smp_mflags}
%check
#TEST_SIGNATURE=1 ./Build test
./Build test
%install
./Build install destdir=$RPM_BUILD_ROOT create_packlist=0
# avoid conflict with Perl's own supplied version
mv %{buildroot}/usr/bin/config_data %{buildroot}/usr/bin/config_data-%{_version}
rename config_data config_data-%{_version} %{buildroot}/%{_mandir}/man1/config_data.*
%perl_gen_filelist
%clean
%{__rm} -rf $RPM_BUILD_ROOT
%files -f %{name}.files
%defattr(-,root,root,-)
%doc Changes contrib LICENSE README scripts
%changelog