1
0
perl-Module-Build/perl-Module-Build.spec
Lars Vogdt d76aa99c82 - update to 0.4210:
[BUG FIXES]
  - Formally declare 5.8 dependency [Karen Etheridge]
  - Fix MBTest to work with new and old versions of Test::Builder [Chad Granum]
  - Fix type installdir -> installdirs [Leon Timmermans, Vitaliy Tokarev]
  - Removed missed references to Module::Build::Version
  - Stop calling UNIVERSAL::isa as a function
  - Fixup CPAN::Meta dependency
  - Handle old releases of CPAN::Meta more gracefully.
  [ENHANCEMENTS]
  - Enable release and author tests during disttest [Leon Timmermans, Alberto Simões]
  - Use CPAN::Meta::Merge for meta_merge
  - Convert with CPAN::Meta::Convert in meta_add
  - Add configure requirements
  [DEPRECATIONS]
  - Module::Build::YAML has been removed
  - Module::Build::ModuleInfo has been removed
  - Module::Build::Version has been removed
  - Get rid of "use vars"
  - Added use warnings to all modules
- use local lib in lib/Module/Build/Base.pm

OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Module-Build?expand=0&rev=30
2014-12-21 21:13:01 +00:00

89 lines
3.2 KiB
RPMSpec

#
# spec file for package perl-Module-Build
#
# Copyright (c) 2014 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
Version: 0.4210
Release: 0
%define cpan_name Module-Build
Summary: Build and install Perl modules
License: Artistic-1.0 or GPL-1.0+
Group: Development/Libraries/Perl
Url: http://search.cpan.org/dist/Module-Build/
Source: http://www.cpan.org/authors/id/L/LE/LEONT/%{cpan_name}-%{version}.tar.gz
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(CPAN::Meta) >= 2.141170
BuildRequires: perl(CPAN::Meta::YAML) >= 0.003
BuildRequires: perl(ExtUtils::CBuilder) >= 0.27
BuildRequires: perl(ExtUtils::ParseXS) >= 2.21
BuildRequires: perl(Module::Metadata) >= 1.000002
BuildRequires: perl(Parse::CPAN::Meta) >= 1.4401
BuildRequires: perl(Perl::OSType) >= 1
BuildRequires: perl(Pod::Man) >= 2.17
BuildRequires: perl(Test::Harness) >= 3.16
BuildRequires: perl(version) >= 0.87
Requires: perl(CPAN::Meta) >= 2.141170
Requires: perl(ExtUtils::CBuilder) >= 0.27
Requires: perl(ExtUtils::ParseXS) >= 2.21
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}
%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.
See the "MOTIVATIONS" manpage for more comparisons between
'ExtUtils::MakeMaker' and 'Module::Build'.
%prep
%setup -q -n %{cpan_name}-%{version}
find . -type f -print0 | xargs -0 chmod 644
sed -i "s|^use warnings;.*|use warnings;\nuse lib '%{perl_vendorlib}';\n|g" lib/Module/Build/Base.pm
%build
%{__perl} Build.PL installdirs=vendor
./Build build flags=%{?_smp_mflags}
%check
./Build test
%install
./Build install destdir=%{buildroot} create_packlist=0
# 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
%perl_gen_filelist
%files -f %{name}.files
%defattr(-,root,root,755)
%doc Changes contrib LICENSE README
%changelog