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

110 lines
4.0 KiB
RPMSpec
Raw Normal View History

#
# spec file for package perl-ExtUtils-MakeMaker
#
# 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-ExtUtils-MakeMaker
Version: 6.98
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/B/BI/BINGOS/%{cpan_name}-%{version}.tar.gz
# MANUAL
Patch0: fix-provides.diff
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
BuildRequires: perl-macros
%{perl_requires}
# MANUAL BEGIN
#!BuildIgnore: perl-ExtUtils-MakeMaker
# used by my/bundles.pm
#BuildRequires: perl-File-Copy-Recursive
BuildRequires: perl(Data::Dumper)
######################################################################
### dependencies defined in a dummy package to avoid build loops
BuildRequires: perl-ExtUtils-MakeMaker-mini
######################################################################
Requires: perl(CPAN::Meta) >= 2.113640
Requires: perl(CPAN::Meta::Requirements) >= 2.121
Requires: perl(CPAN::Meta::YAML) >= 0.002
Requires: perl(ExtUtils::Command) >= 1.16
Requires: perl(ExtUtils::Install) >= 1.52
Requires: perl(ExtUtils::Manifest) >= 1.58
Requires: perl(File::Temp) >= 0.22
Requires: perl(JSON::PP) >= 2.27103
Requires: perl(Parse::CPAN::Meta) >= 1.4400
Requires: perl(Scalar::Util) >= 1.13
Requires: perl(version) >= 0.82
# MANUAL END
%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.
As there are various Make programs with incompatible syntax, which use
operating system shells, again with incompatible syntax, it is important
for users of this module to know which flavour of Make a Makefile has been
written for so they'll use the correct one and won't have to face the
possibly bewildering errors resulting from using the wrong one.
On POSIX systems, that program will likely be GNU Make; on Microsoft
Windows, it will be either Microsoft NMake or DMake. Note that this module
does not support generating Makefiles for GNU Make on Windows. See the
section on the L</"MAKE"> parameter for details.
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
# MANUAL BEGIN
%patch0
rm -rf bundled
# MANAUL END
%build
export BUILDING_AS_PACKAGE=1
%{__perl} Makefile.PL INSTALLDIRS=vendor
%{__make} %{?_smp_mflags}
%check
%{__make} test
%install
%perl_make_install
rm $RPM_BUILD_ROOT/usr/bin/instmodsh
rm $RPM_BUILD_ROOT/usr/share/man/man1/instmodsh.1
%perl_process_packlist
%perl_gen_filelist
%files -f %{name}.files
%defattr(-,root,root,755)
%doc Changes NOTES PATCHING README README.packaging TODO
%changelog