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
|
|
|
#
|
2022-12-12 11:01:06 +01:00
|
|
|
# Copyright (c) 2022 SUSE LLC
|
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.
|
|
|
|
|
2019-04-16 08:35:04 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2010-09-04 22:04:29 +02:00
|
|
|
#
|
|
|
|
|
2010-03-04 16:45:24 +01:00
|
|
|
|
2022-12-12 11:01:06 +01:00
|
|
|
%define cpan_name Module-Build
|
2010-03-04 16:45:24 +01:00
|
|
|
Name: perl-Module-Build
|
2022-12-12 11:01:06 +01:00
|
|
|
Version: 0.423200
|
2013-10-08 09:31:09 +02:00
|
|
|
Release: 0
|
2022-12-12 11:01:06 +01:00
|
|
|
%define cpan_version 0.4232
|
|
|
|
Provides: perl(Module::Build) = 0.423200
|
2019-04-16 08:35:04 +02:00
|
|
|
License: Artistic-1.0 OR GPL-1.0-or-later
|
2022-12-12 11:01:06 +01:00
|
|
|
Summary: Build and install Perl modules
|
|
|
|
URL: https://metacpan.org/release/%{cpan_name}
|
2017-04-06 15:04:59 +02:00
|
|
|
Source0: https://cpan.metacpan.org/authors/id/L/LE/LEONT/%{cpan_name}-%{cpan_version}.tar.gz
|
2015-04-16 15:00:54 +02:00
|
|
|
Source1: cpanspec.yml
|
2010-09-14 23:45:40 +02:00
|
|
|
BuildArch: noarch
|
2010-09-04 22:04:29 +02:00
|
|
|
BuildRequires: perl
|
|
|
|
BuildRequires: perl-macros
|
2015-02-03 17:05:10 +01:00
|
|
|
BuildRequires: perl(CPAN::Meta) >= 2.142060
|
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
|
2016-05-10 15:40:42 +02:00
|
|
|
BuildRequires: perl(TAP::Harness) >= 3.29
|
2012-10-25 19:13:13 +02:00
|
|
|
BuildRequires: perl(version) >= 0.87
|
2015-02-03 17:05:10 +01:00
|
|
|
Requires: perl(CPAN::Meta) >= 2.142060
|
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
|
2016-05-10 15:40:42 +02:00
|
|
|
Requires: perl(TAP::Harness) >= 3.29
|
2013-10-08 09:31:09 +02:00
|
|
|
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'.
|
2019-04-16 08:35:04 +02:00
|
|
|
Developers may alter the behavior of the module through subclassing. 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.
|
2013-10-08 09:31:09 +02:00
|
|
|
|
2019-04-16 08:35:04 +02:00
|
|
|
See "COMPARISON" for more comparisons between 'Module::Build' and other
|
|
|
|
installer tools.
|
2013-10-08 09:31:09 +02:00
|
|
|
|
2015-02-03 17:05:10 +01:00
|
|
|
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
|
2022-12-12 11:01:06 +01:00
|
|
|
%autosetup -n %{cpan_name}-%{cpan_version}
|
2010-03-04 16:45:24 +01:00
|
|
|
|
|
|
|
%build
|
2019-04-16 08:35:04 +02:00
|
|
|
perl Build.PL installdirs=vendor
|
2010-09-14 23:45:40 +02:00
|
|
|
./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
|
2020-01-30 13:30:09 +01:00
|
|
|
%doc Changes README
|
2017-04-06 15:04:59 +02:00
|
|
|
%license LICENSE
|
2010-09-04 22:04:29 +02:00
|
|
|
|
|
|
|
%changelog
|