From 517eaefdaffcf7657163b2e3e175f0d52de9b9ba1b6d82bb632102404443101f Mon Sep 17 00:00:00 2001 From: Stephan Kulow Date: Tue, 30 Nov 2010 10:23:22 +0000 Subject: [PATCH] - added a new macro %perl_requires OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl?expand=0&rev=50 --- macros.perl | 15 +++++++++++++++ perl.changes | 5 +++++ 2 files changed, 20 insertions(+) diff --git a/macros.perl b/macros.perl index a1fa930..3ea4f7c 100644 --- a/macros.perl +++ b/macros.perl @@ -22,6 +22,21 @@ %perl_installarchlib %(perl -V:installarchlib | sed "s!.*='!!;s!'.*!!") %perl_prefix %{buildroot} +# Macro to encapsulate perl requires (empty for fedora and suse > 11.3) +# we keep the complicated form even here to easy sync the other macros with +# perl-macros package +# +%if 0%{?suse_version} +# dummy version for the version mls added automatic version requires +%if %suse_version < 1701 +%perl_requires Requires: perl = %{perl_version} +%else +%perl_requires nil +%endif +%else +%perl_requires nil +%endif + # suse specific macros # %perl_make_install make DESTDIR=$RPM_BUILD_ROOT install_vendor diff --git a/perl.changes b/perl.changes index 4894d60..9dd602f 100644 --- a/perl.changes +++ b/perl.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Nov 30 10:23:06 UTC 2010 - coolo@novell.com + +- added a new macro %perl_requires + ------------------------------------------------------------------- Mon Nov 29 15:20:19 UTC 2010 - coolo@novell.com