diff options
author | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2005-05-09 05:37:16 +0000 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2005-05-09 05:37:16 +0000 |
commit | e51cc138d967813563dd7a2408476c871940768c (patch) | |
tree | f14d96d4b46c9e185234d5bd19685abfa9ce1b2f /perl-URPM.spec | |
parent | fcfe634456adc308fbb618127bc9a990b22ec5bc (diff) | |
download | perl-URPM-e51cc138d967813563dd7a2408476c871940768c.tar perl-URPM-e51cc138d967813563dd7a2408476c871940768c.tar.gz perl-URPM-e51cc138d967813563dd7a2408476c871940768c.tar.bz2 perl-URPM-e51cc138d967813563dd7a2408476c871940768c.tar.xz perl-URPM-e51cc138d967813563dd7a2408476c871940768c.zip |
Make spec mandriva-compliant
Diffstat (limited to 'perl-URPM.spec')
-rw-r--r-- | perl-URPM.spec | 9 |
1 files 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 |