perl-Module-Build/perl-Module-Build.spec
Stephan Kulow 3b1667f235 - updated to 0.4005
[ENHANCEMENTS]
 
   - Added --pureperl-only support
 
   [BUG FIXES]
 
   - #72176: pod2html will fail with an empty podpath in some cases. [Phillip Moore]
 
   - Fix links between modules in HTML docs output [Michael Wild, Leon Timmermans]
 
   [BUG FIXES]
 
   - Minor VMS fix for @INC [Craig Berry]
 
   [ENHANCEMENTS]
 
   - test_requires support has been added [Matsuno Tokuhiro]

OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Module-Build?expand=0&rev=15
2013-06-11 13:19:49 +00:00

143 lines
4.8 KiB
RPMSpec

#
# spec file for package perl-Module-Build
#
# Copyright (c) 2013 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/
#
Name: perl-Module-Build
%define cpan_name Module-Build
Summary: Build and install Perl modules
License: GPL-1.0+ or Artistic-1.0
Group: Development/Libraries/Perl
Version: 0.4005
Release: 0
Url: http://search.cpan.org/dist/Module-Build/
Source: http://search.cpan.org/CPAN/authors/id/L/LE/LEONT/%{cpan_name}-%{version}.tar.gz
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%{perl_requires}
# for rename
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: util-linux
BuildRequires: perl(File::Temp) >= 0.15
BuildRequires: perl(Module::Build)
BuildRequires: perl(Test::Harness) >= 3.16
BuildRequires: perl(Test::More) >= 0.49
#
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)
%if 0%{?suse_version}
Recommends: perl(version) >= 0.74
%endif
##################################################
#
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
%if 0%{?suse_version}
Recommends: perl(Module::Signature) >= 0.21
%endif
#
#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
BuildRequires: perl(CPAN::Meta)
BuildRequires: perl(Module::Metadata) >= 1.000002
BuildRequires: perl(Perl::OSType) >= 1
Requires: perl(Perl::OSType) >= 1
BuildRequires: perl(version) >= 0.87
##################################################
%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
%changelog