From: Jakub Bogusz Date: Sat, 13 Jul 2002 15:40:19 +0000 (+0000) Subject: - added _noautoreq needed with rpm 4.0.2 and perl without threads X-Git-Tag: perl-Test-Simple-0_45-2 X-Git-Url: http://git.pld-linux.org/?p=packages%2Fperl-Test-Simple.git;a=commitdiff_plain;h=aa8c7784e0e167cd9226c588e5aecfae25be7471 - added _noautoreq needed with rpm 4.0.2 and perl without threads Changed files: perl-Test-Simple.spec -> 1.11 --- diff --git a/perl-Test-Simple.spec b/perl-Test-Simple.spec index 6ec2dfd..a47af1d 100644 --- a/perl-Test-Simple.spec +++ b/perl-Test-Simple.spec @@ -15,6 +15,13 @@ BuildRequires: rpm-perlprov >= 3.0.3-16 BuildArch: noarch BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) +# false requires found by rpm 4.0.2 +%if "%(perl -MConfig -e 'print $Config{useithreads};')" != "define" +%define _noautoreq 'perl(threads)' 'perl(threads::shared)' +%else +Requires: perl(threads) perl(threads::shared) +%endif + %description This is an extremely simple, extremely basic module for writing tests suitable for CPAN modules and other pursuits. If you wish to do more