]> git.pld-linux.org Git - packages/rpm-build-macros.git/commitdiff
1.665: added ruby_specdir, memoize ruby_gemdir auto/th/rpm-build-macros-1.665-1
authorElan Ruusamäe <glen@delfi.ee>
Thu, 20 Jun 2013 20:49:59 +0000 (23:49 +0300)
committerElan Ruusamäe <glen@delfi.ee>
Thu, 20 Jun 2013 20:50:44 +0000 (23:50 +0300)
ruby_gemdir is defined also in macros.d/ruby in case of rpm5 which we
override

rpm-build-macros.spec
rpm.macros

index 2c34b9132cd7387066ed5ee46ada4ee3bc604441..3f37d3fc06f1da26c94aa0aafa80367dc3ecfe91 100644 (file)
@@ -5,7 +5,7 @@
 %if "%{pld_release}" == "ac"
 %define        with_rpm4       1
 %endif
-%define                rpm_macros_rev  1.664
+%define                rpm_macros_rev  1.665
 %define                find_lang_rev   1.36
 Summary:       PLD Linux RPM build macros
 Summary(pl.UTF-8):     Makra do budowania pakietów RPM dla Linuksa PLD
index 3ccc0e2b1cff03c67567c61507acbfcf5984e7b7..e435d6d3e222fb33813a579d8d8685a74b2a2ace 100644 (file)
@@ -917,6 +917,10 @@ fi; \
 %ruby_vendordir                %{expand:%%global ruby_vendordir %(%{__ruby} -r rbconfig -e 'print RbConfig::CONFIG["vendordir"]' 2>/dev/null || echo ERROR)}%ruby_vendordir
 %ruby_version          %{expand:%%global ruby_version %(%{__ruby} -r rbconfig -e 'print RbConfig::CONFIG["ruby_version"]' 2>/dev/null || echo ERROR)}%ruby_version
 
+%ruby_gemdir           %{expand:%%global ruby_gemdir %(%{__ruby} -r rbconfig -e 'print RbConfig::CONFIG["rubylibdir"].sub(RbConfig::CONFIG["ruby_version"], "gems/#{RbConfig::CONFIG["ruby_version"]}")' 2>/dev/null || echo ERROR)}%{ruby_gemdir}
+%ruby_specdir          %{ruby_gemdir}/specifications
+
+# deprecated, similar functionality autogenerated with rpm5
 %ruby_ver_requires_eq  Requires:       ruby(ver) = %ruby_version
 %ruby_mod_ver_requires_eq      Requires:       ruby-modules(ver) = %ruby_version
 
This page took 0.290854 seconds and 4 git commands to generate.