perl-ExtUtils-MakeMaker/perl-ExtUtils-MakeMaker.spec

106 lines
3.7 KiB
RPMSpec

#
# spec file for package perl-ExtUtils-MakeMaker
#
# Copyright (c) 2011 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.62
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
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
BuildRequires: perl-macros
# MANUAL BEGIN
#!BuildIgnore: perl-ExtUtils-MakeMaker
BuildRequires: perl(CPAN::Meta) >= 2.112150
BuildRequires: perl-File-Copy-Recursive
# MANUAL END
#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(CPAN::Meta::YAML)
#BuildRequires: perl(ExtUtils::CBuilder)
#BuildRequires: perl(I::Do::Not::Exist)
#BuildRequires: perl(JSON::PP)
#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(Parse::CPAN::Meta)
#BuildRequires: perl(Scalar::Util::PP)
#BuildRequires: perl(Test::Builder::IO::Scalar)
#BuildRequires: perl(TieIn)
#BuildRequires: perl(TieOut)
#BuildRequires: perl(version)
#BuildRequires: perl(Version::Requirements) >= 0.101020
#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}
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