From e51cc138d967813563dd7a2408476c871940768c Mon Sep 17 00:00:00 2001 From: Rafael Garcia-Suarez Date: Mon, 9 May 2005 05:37:16 +0000 Subject: Make spec mandriva-compliant --- perl-URPM.spec | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/perl-URPM.spec b/perl-URPM.spec index f4f0e35..8cafa79 100644 --- a/perl-URPM.spec +++ b/perl-URPM.spec @@ -1,6 +1,5 @@ # Do not edit this spec from src.rpm # This spec is part of Mandrakesoft's cvs -# See http://cvs.mandrakesoft.com/cgi-bin/cvsweb.cgi/ # $Id$ @@ -9,13 +8,13 @@ %define version 1.20 %define release %mkrel 1 -%define group %(perl -e 'printf "%%s\\n", "%_vendor" =~ /mandrake/i ? "Development/Perl" : "Applications/CPAN"') +%define group %(perl -e 'printf "%%s\\n", "%_vendor" =~ /\bmandr/i ? "Development/Perl" : "Applications/CPAN"') %define rpm_version %(rpm -q --queryformat '%{VERSION}-%{RELEASE}' rpm) %{expand:%%define compat_makeinstall_std %(perl -e 'printf "%%s\n", "%{?makeinstall_std:1}" ? "%%makeinstall_std" : "%%{__make} install PREFIX=%%{buildroot}%%{_prefix}"')} %{expand:%%define compat_perl_vendorarch %(perl -MConfig -e 'printf "%%s\n", "%{?perl_vendorarch:1}" ? "%%{perl_vendorarch}" : "$Config{installvendorarch}"')} -%{expand:%%define buildreq_perl_devel %%(perl -e 'printf "%%s\\n", "%_vendor" =~ /mandrake/i ? "perl-devel" : "perl"')} -%{expand:%%define real_release %%(perl -e 'printf "%%s\\n", ("%_vendor" !~ /mandrake/i && ("%release" =~ /(.*?)mdk/)[0] || "%release")')} +%{expand:%%define buildreq_perl_devel %%(perl -e 'printf "%%s\\n", "%_vendor" =~ /\bmandr/i ? "perl-devel" : "perl"')} +%{expand:%%define real_release %%(perl -e 'printf "%%s\\n", ("%_vendor" !~ /\bmandr/i && ("%release" =~ /(.*?)mdk/)[0] || "%release")')} Summary: URPM module for perl Name: %{name} @@ -24,7 +23,7 @@ Release: %{real_release} License: GPL or Artistic Group: %{group} Source: %{real_name}-%{version}.tar.bz2 -URL: http://cvs.mandrakesoft.com/cgi-bin/cvsweb.cgi/soft/perl-URPM +URL: http://cvs.mandriva.com/cgi-bin/cvsweb.cgi/soft/perl-URPM BuildRequires: %{buildreq_perl_devel} rpm-devel >= 4.0.3 bzip2-devel Requires: rpm >= %{rpm_version}, bzip2 >= 1.0 Requires: packdrake >= 5.0.2 -- cgit v1.2.1