From 2a7f77bd90baa99ce96c62f44f7dc9adc505765c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <[email protected]>
Date: Mon, 27 Mar 2017 10:58:12 +0200
Subject: Silent pkgconf-devel version substition when pkgconf is unavailable

This happens when building source package.
---
 perl-Alien-pkgconf.spec | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/perl-Alien-pkgconf.spec b/perl-Alien-pkgconf.spec
index 39e796a..30438eb 100644
--- a/perl-Alien-pkgconf.spec
+++ b/perl-Alien-pkgconf.spec
@@ -39,7 +39,7 @@ BuildRequires:  perl(Test2::Bundle::More)
 BuildRequires:  perl(Test2::Tools::Basic)
 BuildRequires:  perl(Test::Alien) >= 0.08
 # This RPM package ensures libpkgconf.so is installed on the system
-Requires:       libpkgconf-devel(%{__isa}) = %(pkgconf --modversion libpkgconf 
|| echo 0)
+Requires:       libpkgconf-devel(%{__isa}) = %(type -p pkgconf >/dev/null && 
pkgconf --modversion libpkgconf || echo 0)
 Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
 Requires:       perl(File::ShareDir) >= 1.102
 Requires:       perl(JSON::PP) >= 2.27400
-- 
cgit v1.1


        
https://src.fedoraproject.org/cgit/perl-Alien-pkgconf.git/commit/?h=master&id=2a7f77bd90baa99ce96c62f44f7dc9adc505765c
_______________________________________________
perl-devel mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to