2008-09-16 17:46:16 +02:00
|
|
|
#
|
2011-12-11 10:13:03 +01:00
|
|
|
# spec file for package perl-ExtUtils-MakeMaker
|
2008-09-16 17:46:16 +02:00
|
|
|
#
|
2015-02-08 08:52:21 +01:00
|
|
|
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
|
2008-09-16 17:46:16 +02:00
|
|
|
#
|
2011-12-11 10:13:03 +01:00
|
|
|
# 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/
|
2008-09-16 17:46:16 +02:00
|
|
|
#
|
|
|
|
|
2012-02-16 13:35:19 +01:00
|
|
|
|
2011-12-11 10:13:03 +01:00
|
|
|
Name: perl-ExtUtils-MakeMaker
|
2015-02-08 08:52:21 +01:00
|
|
|
Version: 7.04
|
2011-12-11 10:13:03 +01:00
|
|
|
Release: 0
|
2014-02-08 11:59:12 +01:00
|
|
|
%define cpan_name ExtUtils-MakeMaker
|
2011-12-11 10:13:03 +01:00
|
|
|
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/
|
2013-11-26 15:34:42 +01:00
|
|
|
Source: http://www.cpan.org/authors/id/B/BI/BINGOS/%{cpan_name}-%{version}.tar.gz
|
2011-12-11 10:13:03 +01:00
|
|
|
BuildArch: noarch
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2010-10-19 10:46:01 +02:00
|
|
|
BuildRequires: perl
|
2011-12-11 10:17:55 +01:00
|
|
|
BuildRequires: perl-macros
|
2013-11-26 15:34:42 +01:00
|
|
|
%{perl_requires}
|
2015-03-27 10:49:46 +01:00
|
|
|
Patch1: Do_not_set_RPATH_by_default.patch
|
|
|
|
|
2011-12-11 10:17:55 +01:00
|
|
|
# MANUAL BEGIN
|
|
|
|
#!BuildIgnore: perl-ExtUtils-MakeMaker
|
2014-07-18 12:56:42 +02:00
|
|
|
# used by my/bundles.pm
|
|
|
|
#BuildRequires: perl-File-Copy-Recursive
|
2013-01-25 20:24:20 +01:00
|
|
|
BuildRequires: perl(Data::Dumper)
|
2014-07-18 12:56:42 +02:00
|
|
|
######################################################################
|
|
|
|
### 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
|
2011-12-11 10:17:55 +01:00
|
|
|
# MANUAL END
|
2008-09-16 17:46:16 +02:00
|
|
|
|
|
|
|
%description
|
2011-12-11 10:13:03 +01:00
|
|
|
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.
|
|
|
|
|
2013-11-26 15:34:42 +01:00
|
|
|
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
|
2015-02-08 08:57:03 +01:00
|
|
|
Windows, it will be either Microsoft NMake, DMake or GNU Make. See the
|
2013-11-26 15:34:42 +01:00
|
|
|
section on the L</"MAKE"> parameter for details.
|
|
|
|
|
2015-02-08 08:57:03 +01:00
|
|
|
ExtUtils::MakeMaker (EUMM) 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().
|
|
|
|
|
|
|
|
All inputs to WriteMakefile are Unicode characters, not just octets. EUMM
|
|
|
|
seeks to handle all of these correctly. It is currently still not possible
|
|
|
|
to portably use Unicode characters in module names, because this requires
|
|
|
|
Perl to handle Unicode filenames, which is not yet the case on Windows.
|
2008-09-16 17:46:16 +02:00
|
|
|
|
|
|
|
%prep
|
2011-12-11 10:13:03 +01:00
|
|
|
%setup -q -n %{cpan_name}-%{version}
|
2015-03-27 10:49:46 +01:00
|
|
|
%patch1 -p1
|
2013-11-26 15:34:42 +01:00
|
|
|
find . -type f -print0 | xargs -0 chmod 644
|
2012-02-16 13:35:19 +01:00
|
|
|
# MANUAL BEGIN
|
2015-02-08 08:52:21 +01:00
|
|
|
grep -v ^bundled MAINFEST > t && mv t MAINFEST
|
2012-02-16 13:35:19 +01:00
|
|
|
rm -rf bundled
|
|
|
|
# MANAUL END
|
2008-09-16 17:46:16 +02:00
|
|
|
|
|
|
|
%build
|
2014-07-18 12:56:42 +02:00
|
|
|
export BUILDING_AS_PACKAGE=1
|
2011-12-11 10:13:03 +01:00
|
|
|
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
|
|
|
%{__make} %{?_smp_mflags}
|
2009-12-20 21:17:36 +01:00
|
|
|
|
|
|
|
%check
|
2011-12-11 10:13:03 +01:00
|
|
|
%{__make} test
|
2008-09-16 17:46:16 +02:00
|
|
|
|
|
|
|
%install
|
|
|
|
%perl_make_install
|
2011-12-11 10:17:55 +01:00
|
|
|
rm $RPM_BUILD_ROOT/usr/bin/instmodsh
|
2013-11-26 15:34:42 +01:00
|
|
|
rm $RPM_BUILD_ROOT/usr/share/man/man1/instmodsh.1
|
2008-09-16 17:46:16 +02:00
|
|
|
%perl_process_packlist
|
2011-12-11 10:13:03 +01:00
|
|
|
%perl_gen_filelist
|
2008-09-16 17:46:16 +02:00
|
|
|
|
2011-12-11 10:13:03 +01:00
|
|
|
%files -f %{name}.files
|
|
|
|
%defattr(-,root,root,755)
|
2015-02-08 08:57:03 +01:00
|
|
|
%doc Changes CONTRIBUTING NOTES README README.packaging
|
2008-09-16 17:46:16 +02:00
|
|
|
|
2009-09-07 15:12:08 +02:00
|
|
|
%changelog
|