8
0
Files
perl-ExtUtils-MakeMaker/perl-ExtUtils-MakeMaker.spec

120 lines
4.1 KiB
RPMSpec
Raw Normal View History

#
# spec file for package perl-ExtUtils-MakeMaker
#
# 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-ExtUtils-MakeMaker
Version: 6.64
Release: 0
%define cpan_name ExtUtils-MakeMaker
Summary: Create a module Makefile
License: Artistic-1.0 or GPL-1.0+
Group: Development/Libraries/Perl
Url: http://search.cpan.org/dist/ExtUtils-MakeMaker/
Source: http://www.cpan.org/authors/id/M/MS/MSCHWERN/%{cpan_name}-%{version}.tar.gz
# MANUAL
Patch0: fix-provides.diff
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
BuildRequires: perl-macros
# MANUAL BEGIN
#!BuildIgnore: perl-ExtUtils-MakeMaker
BuildRequires: perl-CPAN-Meta
BuildRequires: perl-File-Copy-Recursive
BuildRequires: perl(Data::Dumper)
# MANUAL END
# Extra_Prereqs for being built as vendor pkg
BuildRequires: perl(CPAN::Meta) >= 2.112580
BuildRequires: perl(CPAN::Meta::YAML) >= 0.002
BuildRequires: perl(ExtUtils::Command) >= 1.16
BuildRequires: perl(ExtUtils::Install) >= 1.52
BuildRequires: perl(ExtUtils::Manifest) >= 1.58
BuildRequires: perl(File::Temp) >= 0.22
BuildRequires: perl(JSON::PP) >= 2.27103
BuildRequires: perl(Parse::CPAN::Meta) >= 1.4400
BuildRequires: perl(Scalar::Util) >= 1.13
BuildRequires: perl(Version::Requirements) >= 0.101020
BuildRequires: perl(version) >= 0.82
#
#BuildRequires: perl(CPAN::Meta)
#BuildRequires: perl(CPAN::Meta::Converter)
#BuildRequires: perl(CPAN::Meta::Feature)
#BuildRequires: perl(CPAN::Meta::Prereqs)
#BuildRequires: perl(CPAN::Meta::Validator)
#BuildRequires: perl(ExtUtils::CBuilder)
#BuildRequires: perl(I::Do::Not::Exist)
#BuildRequires: perl(List::Util::PP)
#BuildRequires: perl(MakeMaker::Test::NoXS)
#BuildRequires: perl(MakeMaker::Test::Setup::BFD)
#BuildRequires: perl(MakeMaker::Test::Setup::MPV)
#BuildRequires: perl(MakeMaker::Test::Setup::PL_FILES)
#BuildRequires: perl(MakeMaker::Test::Setup::Problem)
#BuildRequires: perl(MakeMaker::Test::Setup::Recurs)
#BuildRequires: perl(MakeMaker::Test::Setup::SAS)
#BuildRequires: perl(MakeMaker::Test::Setup::XS)
#BuildRequires: perl(MakeMaker::Test::Utils)
#BuildRequires: perl(my::bundles)
#BuildRequires: perl(Test::Builder::IO::Scalar)
#BuildRequires: perl(TieIn)
#BuildRequires: perl(TieOut)
#BuildRequires: perl(VMS::Feature)
#BuildRequires: perl(Win32API::File)
#BuildRequires: perl(YAML)
#BuildRequires: perl(YAML::Tiny)
%{perl_requires}
%description
This utility is designed to write a Makefile for an extension module from a
Makefile.PL. It is based on the Makefile.SH model provided by Andy
Dougherty and the perl5-porters.
It splits the task of generating the Makefile into several subroutines that
can be individually overridden. Each subroutine returns the text it wishes
to have written to the Makefile.
MakeMaker is object oriented. Each directory below the current directory
that contains a Makefile.PL is treated as a separate object. This makes it
possible to write an unlimited number of Makefiles with a single invocation
of WriteMakefile().
%prep
%setup -q -n %{cpan_name}-%{version}
# MANUAL BEGIN
%patch0
rm -rf bundled
# MANAUL END
find . -type f -print0 | xargs -0 chmod 644
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%{__make} %{?_smp_mflags}
%check
%{__make} test
%install
%perl_make_install
rm $RPM_BUILD_ROOT/usr/bin/instmodsh
%perl_process_packlist
%perl_gen_filelist
%files -f %{name}.files
%defattr(-,root,root,755)
%doc Changes my NOTES PATCHING README TODO
%changelog