]> git.pld-linux.org Git - packages/rpm.git/commitdiff
when providing ruby(abi), make sure it's versioned auto/th/rpm-5.4.10-49
authorElan Ruusamäe <glen@delfi.ee>
Fri, 26 Apr 2013 09:03:05 +0000 (12:03 +0300)
committerElan Ruusamäe <glen@delfi.ee>
Fri, 26 Apr 2013 09:03:05 +0000 (12:03 +0300)
rpm.spec
rubyprov-abi-versioned.patch [new file with mode: 0644]

index e8b549a4506fdbeeb9022440bbb22b773ae2263a..ae96ff8fa2e43710bf5bbe0392a3609dbc04bc71 100644 (file)
--- a/rpm.spec
+++ b/rpm.spec
@@ -52,7 +52,7 @@ Summary(ru.UTF-8):    Менеджер пакетов от RPM
 Summary(uk.UTF-8):     Менеджер пакетів від RPM
 Name:          rpm
 Version:       5.4.10
-Release:       48
+Release:       49
 License:       LGPL
 Group:         Base
 # http://rpm5.org/files/rpm/rpm-5.4/rpm-5.4.10-0.20120706.src.rpm
@@ -160,6 +160,7 @@ Patch65:    %{name}-parseSpec-skip-empty-tags.patch
 Patch66:       %{name}-payload-use-hashed-inode.patch
 Patch67:       rpm-repackage-dont-force-max-compression.patch
 Patch68:       rubyprov-archdirs.patch
+Patch69:       rubyprov-abi-versioned.patch
 
 # Patches imported from Mandriva
 
@@ -930,6 +931,7 @@ Dokumentacja API RPM-a oraz przewodniki w formacie HTML generowane ze
 %patch1041 -p1
 %patch1042 -p1
 %patch68 -p1
+%patch69 -p1
 
 install %{SOURCE2} macros/pld.in
 install %{SOURCE8} scripts/php.prov.in
diff --git a/rubyprov-abi-versioned.patch b/rubyprov-abi-versioned.patch
new file mode 100644 (file)
index 0000000..e446f74
--- /dev/null
@@ -0,0 +1,12 @@
+--- rpm-5.4.10/scripts/rubygems.rb~    2013-04-26 00:58:58.622064212 +0300
++++ rpm-5.4.10/scripts/rubygems.rb     2013-04-26 11:42:07.842839682 +0300
+@@ -39,8 +39,9 @@
+   # way fugly, but we make the assumption that if the package has
+   # this file, the package is the current ruby version, and should
+   # therefore provide ruby(abi) = version
+   if provides and path.match(RbConfig::CONFIG["archdir"] + "/rbconfig.rb")
+      abi_provide = true
++     ruby_versioned = true
+   elsif path.match(specpatt)
+     ruby_versioned = true
+     gems.push(path.chomp)
This page took 0.127162 seconds and 4 git commands to generate.