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
|
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
|
2012-09-20 00:07:34 +02:00
|
|
|
License: GPL-1.0+ or Artistic-1.0
|
2010-03-04 16:45:24 +01:00
|
|
|
Group: Development/Libraries/Perl
|
2013-06-11 15:19:49 +02:00
|
|
|
Version: 0.4005
|
2012-09-20 00:07:34 +02:00
|
|
|
Release: 0
|
2010-09-14 23:45:40 +02:00
|
|
|
Url: http://search.cpan.org/dist/Module-Build/
|
2012-09-20 00:07:34 +02:00
|
|
|
Source: http://search.cpan.org/CPAN/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-12-03 15:42:46 +01:00
|
|
|
%{perl_requires}
|
2010-12-03 10:19:09 +01:00
|
|
|
# for rename
|
2010-09-04 22:04:29 +02:00
|
|
|
BuildRequires: perl
|
|
|
|
BuildRequires: perl-macros
|
2012-09-20 00:07:34 +02:00
|
|
|
BuildRequires: util-linux
|
2010-09-14 23:45:40 +02:00
|
|
|
BuildRequires: perl(File::Temp) >= 0.15
|
2012-09-20 00:07:34 +02:00
|
|
|
BuildRequires: perl(Module::Build)
|
2010-09-14 23:45:40 +02:00
|
|
|
BuildRequires: perl(Test::Harness) >= 3.16
|
2012-09-20 00:07:34 +02:00
|
|
|
BuildRequires: perl(Test::More) >= 0.49
|
2010-09-14 23:45:40 +02:00
|
|
|
#
|
|
|
|
BuildRequires: perl(Cwd)
|
2010-09-04 22:04:29 +02:00
|
|
|
BuildRequires: perl(Data::Dumper)
|
|
|
|
BuildRequires: perl(File::Basename)
|
2010-09-14 23:45:40 +02:00
|
|
|
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-09-14 23:45:40 +02:00
|
|
|
BuildRequires: perl(Getopt::Long)
|
2010-08-26 21:19:08 +02:00
|
|
|
BuildRequires: perl(IO::File)
|
2010-09-14 23:45:40 +02:00
|
|
|
BuildRequires: perl(Text::Abbrev)
|
2010-08-26 21:19:08 +02:00
|
|
|
BuildRequires: perl(Text::ParseWords)
|
2010-09-14 23:45:40 +02:00
|
|
|
#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)
|
2011-08-17 19:42:39 +02:00
|
|
|
%if 0%{?suse_version}
|
2010-09-14 23:45:40 +02:00
|
|
|
Recommends: perl(version) >= 0.74
|
2011-08-17 19:42:39 +02:00
|
|
|
%endif
|
2010-09-14 23:45:40 +02:00
|
|
|
##################################################
|
|
|
|
#
|
|
|
|
BuildRequires: perl(Archive::Tar) >= 1.09
|
2010-09-04 22:04:29 +02:00
|
|
|
## 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
|
2010-09-14 23:45:40 +02:00
|
|
|
Recommends: perl(Pod::Readme) >= 0.04
|
2010-09-04 22:04:29 +02:00
|
|
|
%endif
|
2010-09-14 23:45:40 +02:00
|
|
|
#BuildRequires: perl(Module::Signature) >= 0.21
|
2011-08-17 19:42:39 +02:00
|
|
|
%if 0%{?suse_version}
|
2010-09-14 23:45:40 +02:00
|
|
|
Recommends: perl(Module::Signature) >= 0.21
|
2011-08-17 19:42:39 +02:00
|
|
|
%endif
|
2010-09-14 23:45:40 +02:00
|
|
|
#
|
|
|
|
#BuildRequires: perl(Software::License)
|
|
|
|
#Requires: perl(Software::License)
|
2010-03-04 16:45:24 +01:00
|
|
|
# YAML support
|
2011-08-17 19:42:39 +02:00
|
|
|
#BuildRequires: perl(YAML::Tiny) >= 1.38
|
|
|
|
#Requires: perl(YAML::Tiny) >= 1.38
|
2010-03-04 16:45:24 +01:00
|
|
|
# manpage_support
|
2012-09-20 00:07:34 +02:00
|
|
|
Requires: perl(Pod::Man)
|
2010-03-04 16:45:24 +01:00
|
|
|
# HTML_support
|
2012-09-20 00:07:34 +02:00
|
|
|
Requires: perl(Pod::Html)
|
2010-09-04 22:04:29 +02:00
|
|
|
# not mentioned in Build.PL
|
2010-09-14 23:45:40 +02:00
|
|
|
BuildRequires: perl(PAR::Dist) >= 0.17
|
2012-09-20 00:07:34 +02:00
|
|
|
Requires: perl(PAR::Dist) >= 0.17
|
2012-10-25 19:13:13 +02:00
|
|
|
BuildRequires: perl(CPAN::Meta)
|
|
|
|
BuildRequires: perl(Module::Metadata) >= 1.000002
|
2013-06-27 11:25:29 +02:00
|
|
|
Requires: perl(Module::Metadata) >= 1.000002
|
2012-10-25 19:13:13 +02:00
|
|
|
BuildRequires: perl(Perl::OSType) >= 1
|
2012-10-25 19:59:02 +02:00
|
|
|
Requires: perl(Perl::OSType) >= 1
|
2012-10-25 19:13:13 +02:00
|
|
|
BuildRequires: perl(version) >= 0.87
|
2010-09-14 23:45:40 +02:00
|
|
|
##################################################
|
2010-03-04 16:45:24 +01:00
|
|
|
|
|
|
|
%description
|
2010-09-14 23:45:40 +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
|
2010-09-14 23:45:40 +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. 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-03-04 16:45:24 +01:00
|
|
|
|
2010-09-04 22:04:29 +02:00
|
|
|
Authors:
|
|
|
|
--------
|
2010-09-14 23:45:40 +02:00
|
|
|
Ken Williams <kwilliams@cpan.org>
|
2010-09-04 22:04:29 +02:00
|
|
|
|
2010-03-04 16:45:24 +01:00
|
|
|
%prep
|
2012-09-20 00:07:34 +02:00
|
|
|
%setup -q -n %{cpan_name}-%{version}
|
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
|
2010-09-14 23:45:40 +02:00
|
|
|
#TEST_SIGNATURE=1 ./Build test
|
2010-08-26 21:19:08 +02:00
|
|
|
./Build test
|
|
|
|
|
2010-09-04 22:04:29 +02:00
|
|
|
%install
|
2010-09-14 23:45:40 +02:00
|
|
|
./Build install destdir=$RPM_BUILD_ROOT create_packlist=0
|
2010-12-03 10:19:09 +01:00
|
|
|
# avoid conflict with Perl's own supplied version
|
2012-10-25 19:13:13 +02:00
|
|
|
mv %{buildroot}/usr/bin/config_data %{buildroot}/usr/bin/config_data-%{version}
|
|
|
|
rename config_data config_data-%{version} %{buildroot}/%{_mandir}/man1/config_data.*
|
2010-09-04 22:04:29 +02:00
|
|
|
%perl_gen_filelist
|
|
|
|
|
2010-09-14 23:45:40 +02:00
|
|
|
%clean
|
2010-09-04 22:04:29 +02:00
|
|
|
%{__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-09-14 23:45:40 +02:00
|
|
|
%defattr(-,root,root,-)
|
2012-09-20 00:07:34 +02:00
|
|
|
%doc Changes contrib LICENSE README
|
2010-09-04 22:04:29 +02:00
|
|
|
|
|
|
|
%changelog
|