[Rpm-maint] [rpm-software-management/rpm] RFE: Configurable macro file search path(s) (#363)

Vít Ondruch notifications at github.com
Mon Mar 5 16:07:17 UTC 2018


Of course, that was just test. So I did different one:

~~~
$ git diff
diff --git a/ruby.spec b/ruby.spec
index c9ff8dc..ecc5e93 100644
--- a/ruby.spec
+++ b/ruby.spec
@@ -102,8 +102,7 @@ Source14: test_systemtap.rb
 
 # The load directive is supported since RPM 4.12, i.e. F21+. The build process
 # fails on older Fedoras.
-%{?load:%{SOURCE4}}
-%{?load:%{SOURCE5}}
+%{?load:%{dirname:%{SOURCE4}}/macros.*}
 
 # Fix ruby_version abuse.
 # https://bugs.ruby-lang.org/issues/11002
@@ -520,6 +519,8 @@ HTTP.
 
 
 %prep
+echo "%{dirname:%{SOURCE4}}/macros.*"
+
 %setup -q -n %{ruby_archive}
 
 # Remove bundled libraries to be sure they are not used.
~~~

This does not load anything.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/issues/363#issuecomment-370469400
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20180305/98aed951/attachment.html>


More information about the Rpm-maint mailing list