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
|
|
|
#
|
2013-01-25 20:24:20 +01:00
|
|
|
# Copyright (c) 2013 SUSE LINUX Products 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
|
2013-11-26 15:34:42 +01:00
|
|
|
Version: 6.82
|
2011-12-11 10:13:03 +01:00
|
|
|
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/
|
2013-11-26 15:34:42 +01:00
|
|
|
Source: http://www.cpan.org/authors/id/B/BI/BINGOS/%{cpan_name}-%{version}.tar.gz
|
2012-02-16 13:35:19 +01:00
|
|
|
# MANUAL
|
|
|
|
Patch0: fix-provides.diff
|
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}
|
2011-12-11 10:17:55 +01:00
|
|
|
# MANUAL BEGIN
|
|
|
|
#!BuildIgnore: perl-ExtUtils-MakeMaker
|
2011-12-11 15:31:23 +01:00
|
|
|
BuildRequires: perl-CPAN-Meta
|
2011-12-11 10:13:03 +01:00
|
|
|
BuildRequires: perl-File-Copy-Recursive
|
2013-01-25 20:24:20 +01:00
|
|
|
BuildRequires: perl(Data::Dumper)
|
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
|
|
|
|
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.
|
|
|
|
|
2011-12-11 10:13:03 +01:00
|
|
|
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().
|
2008-09-16 17:46:16 +02:00
|
|
|
|
|
|
|
%prep
|
2011-12-11 10:13:03 +01:00
|
|
|
%setup -q -n %{cpan_name}-%{version}
|
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
|
2013-01-25 20:24:20 +01:00
|
|
|
%patch0
|
2012-02-16 13:35:19 +01:00
|
|
|
rm -rf bundled
|
|
|
|
# MANAUL END
|
2008-09-16 17:46:16 +02:00
|
|
|
|
|
|
|
%build
|
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)
|
2013-11-26 15:34:42 +01:00
|
|
|
%doc Changes NOTES PATCHING README README.packaging TODO
|
2008-09-16 17:46:16 +02:00
|
|
|
|
2009-09-07 15:12:08 +02:00
|
|
|
%changelog
|