2010-09-04 22:04:29 +02:00
|
|
|
#
|
2012-09-20 00:07:34 +02:00
|
|
|
# spec file for package perl-Module-Build
|
2010-09-14 23:45:40 +02:00
|
|
|
#
|
2013-06-11 15:19:49 +02:00
|
|
|
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2010-09-04 22:04:29 +02:00
|
|
|
#
|
|
|
|
# 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
|
|
|
|
|
|
|
Name: perl-Module-Build
|
2013-12-10 07:39:59 +01:00
|
|
|
Version: 0.4203
|
2013-10-08 09:31:09 +02:00
|
|
|
Release: 0
|
2010-09-14 23:45:40 +02:00
|
|
|
%define cpan_name Module-Build
|
2010-03-04 16:45:24 +01:00
|
|
|
Summary: Build and install Perl modules
|
2013-10-08 09:31:09 +02:00
|
|
|
License: Artistic-1.0 or GPL-1.0+
|
2010-03-04 16:45:24 +01:00
|
|
|
Group: Development/Libraries/Perl
|
2010-09-14 23:45:40 +02:00
|
|
|
Url: http://search.cpan.org/dist/Module-Build/
|
2013-10-08 09:31:09 +02:00
|
|
|
Source: http://www.cpan.org/authors/id/L/LE/LEONT/%{cpan_name}-%{version}.tar.gz
|
2010-09-14 23:45:40 +02:00
|
|
|
BuildArch: noarch
|
2012-09-20 00:07:34 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2010-09-04 22:04:29 +02:00
|
|
|
BuildRequires: perl
|
|
|
|
BuildRequires: perl-macros
|
2013-06-27 11:29:00 +02:00
|
|
|
BuildRequires: perl(CPAN::Meta) >= 2.110420
|
2013-10-08 09:31:09 +02:00
|
|
|
BuildRequires: perl(CPAN::Meta::YAML) >= 0.003
|
|
|
|
BuildRequires: perl(ExtUtils::CBuilder) >= 0.27
|
|
|
|
BuildRequires: perl(ExtUtils::ParseXS) >= 2.21
|
2012-10-25 19:13:13 +02:00
|
|
|
BuildRequires: perl(Module::Metadata) >= 1.000002
|
2013-10-08 09:31:09 +02:00
|
|
|
BuildRequires: perl(Parse::CPAN::Meta) >= 1.4401
|
2012-10-25 19:13:13 +02:00
|
|
|
BuildRequires: perl(Perl::OSType) >= 1
|
2013-10-08 09:31:09 +02:00
|
|
|
BuildRequires: perl(Pod::Man) >= 2.17
|
|
|
|
BuildRequires: perl(Test::Harness) >= 3.16
|
2012-10-25 19:13:13 +02:00
|
|
|
BuildRequires: perl(version) >= 0.87
|
2013-10-08 09:31:09 +02:00
|
|
|
Requires: perl(CPAN::Meta) >= 2.110420
|
2013-06-27 11:29:00 +02:00
|
|
|
Requires: perl(ExtUtils::CBuilder) >= 0.27
|
|
|
|
Requires: perl(ExtUtils::ParseXS) >= 2.21
|
2013-10-08 09:31:09 +02:00
|
|
|
Requires: perl(Module::Metadata) >= 1.000002
|
|
|
|
Requires: perl(Perl::OSType) >= 1
|
|
|
|
Requires: perl(Pod::Man) >= 2.17
|
|
|
|
Requires: perl(version) >= 0.87
|
|
|
|
Recommends: perl(ExtUtils::Manifest) >= 1.54
|
|
|
|
%{perl_requires}
|
2010-03-04 16:45:24 +01:00
|
|
|
|
|
|
|
%description
|
2013-10-08 09:31:09 +02:00
|
|
|
'Module::Build' is a system for building, testing, and installing Perl
|
|
|
|
modules. It is meant to be an alternative to 'ExtUtils::MakeMaker'.
|
2010-03-04 16:45:24 +01:00
|
|
|
Developers may alter the behavior of the module through subclassing in a
|
2013-10-08 09:31:09 +02:00
|
|
|
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.
|
|
|
|
|
|
|
|
See the "MOTIVATIONS" manpage for more comparisons between
|
|
|
|
'ExtUtils::MakeMaker' and 'Module::Build'.
|
|
|
|
|
|
|
|
To install 'Module::Build', and any other module that uses 'Module::Build'
|
|
|
|
for its installation process, do the following:
|
|
|
|
|
|
|
|
perl Build.PL # 'Build.PL' script creates the 'Build' script
|
|
|
|
./Build # Need ./ to ensure we're using this "Build" script
|
|
|
|
./Build test # and not another one that happens to be in the PATH
|
|
|
|
./Build install
|
|
|
|
|
|
|
|
This illustrates initial configuration and the running of three 'actions'.
|
|
|
|
In this case the actions run are 'build' (the default action), 'test', and
|
|
|
|
'install'. Other actions defined so far include:
|
|
|
|
|
|
|
|
build manifest
|
|
|
|
clean manifest_skip
|
|
|
|
code manpages
|
|
|
|
config_data pardist
|
|
|
|
diff ppd
|
|
|
|
dist ppmdist
|
|
|
|
distcheck prereq_data
|
|
|
|
distclean prereq_report
|
|
|
|
distdir pure_install
|
|
|
|
distinstall realclean
|
|
|
|
distmeta retest
|
|
|
|
distsign skipcheck
|
|
|
|
disttest test
|
|
|
|
docs testall
|
|
|
|
fakeinstall testcover
|
|
|
|
help testdb
|
|
|
|
html testpod
|
|
|
|
install testpodcoverage
|
|
|
|
installdeps versioninstall
|
|
|
|
|
|
|
|
You can run the 'help' action for a complete list of actions.
|
2010-03-04 16:45:24 +01:00
|
|
|
|
|
|
|
%prep
|
2012-09-20 00:07:34 +02:00
|
|
|
%setup -q -n %{cpan_name}-%{version}
|
2013-10-08 09:31:09 +02:00
|
|
|
find . -type f -print0 | xargs -0 chmod 644
|
2010-03-04 16:45:24 +01:00
|
|
|
|
|
|
|
%build
|
2010-09-14 23:45:40 +02:00
|
|
|
%{__perl} Build.PL installdirs=vendor
|
|
|
|
./Build build flags=%{?_smp_mflags}
|
2010-03-04 16:45:24 +01:00
|
|
|
|
2010-08-26 21:19:08 +02:00
|
|
|
%check
|
|
|
|
./Build test
|
|
|
|
|
2010-09-04 22:04:29 +02:00
|
|
|
%install
|
2013-10-08 09:31:09 +02:00
|
|
|
./Build install destdir=%{buildroot} create_packlist=0
|
2013-12-10 07:40:26 +01:00
|
|
|
# MANUAL BEGIN
|
|
|
|
# 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.*
|
|
|
|
# MANUAL END
|
2010-09-04 22:04:29 +02:00
|
|
|
%perl_gen_filelist
|
|
|
|
|
|
|
|
%files -f %{name}.files
|
2013-10-08 09:31:09 +02:00
|
|
|
%defattr(-,root,root,755)
|
2012-09-20 00:07:34 +02:00
|
|
|
%doc Changes contrib LICENSE README
|
2010-09-04 22:04:29 +02:00
|
|
|
|
|
|
|
%changelog
|