From fc55afcc4ecfecfe8bf3fdfb8c1b5a5a0e3a4177 Mon Sep 17 00:00:00 2001 From: Tom Callaway Date: Jan 30 2024 17:20:33 +0000 Subject: suck it mock --- diff --git a/perl-Wx.spec b/perl-Wx.spec index 080f5e0..a2521ca 100644 --- a/perl-Wx.spec +++ b/perl-Wx.spec @@ -48,10 +48,11 @@ BuildRequires: perl(YAML) >= 0.35 BuildRequires: dos2unix #oh, we crossing the streams here, hold on. -%global alien_versioned_require %(rpm -q perl-Alien-wxWidgets --provides |grep gtk) +# By stripping the perl prefix off the provide, we allow something to always be in the evaluated "Requires:" line below, which satisfies mock +%define alien_versioned_require %(rpm -q perl-Alien-wxWidgets --provides |grep gtk | sed 's|perl||g') %if %{?alien_versioned_require:1}%{!?alien_versioned_require:0} -Requires: %{alien_versioned_require} +%{expand:Requires: perl%{alien_versioned_require}} %endif # Manual provides from XS