load rubygems
authorElan Ruusamäe <glen@delfi.ee>
Sun, 14 Apr 2013 13:01:26 +0000 (16:01 +0300)
committerElan Ruusamäe <glen@delfi.ee>
Sun, 14 Apr 2013 13:01:26 +0000 (16:01 +0300)
gem2rpm.spec
gems.patch [new file with mode: 0644]

index aebd6ec..dc374cc 100644 (file)
@@ -1,7 +1,7 @@
 Summary:       Generate rpm specfiles from gems
 Name:          gem2rpm
 Version:       0.8.1
-Release:       0.2
+Release:       0.3
 License:       GPL v2+
 Group:         Development/Languages
 Source0:       http://rubygems.org/gems/%{name}-%{version}.gem
@@ -10,6 +10,7 @@ Source0:      http://rubygems.org/gems/%{name}-%{version}.gem
 # tar czvf gem2rpm-0.8.1-tests.tgz test/
 Source1:       %{name}-%{version}-tests.tgz
 # Source1-md5: d7d8bc231dc405bbce00f570c89f530e
+Patch0:                gems.patch
 URL:           https://github.com/lutter/gem2rpm/
 BuildRequires: rpm-rubyprov
 BuildRequires: rpmbuild(macros) >= 1.656
@@ -32,6 +33,7 @@ Documentation for %{name}.
 
 %prep
 %setup -q
+%patch0 -p1
 
 %build
 %if %{with tests}
diff --git a/gems.patch b/gems.patch
new file mode 100644 (file)
index 0000000..206fced
--- /dev/null
@@ -0,0 +1,9 @@
+--- gem2rpm-0.8.1/lib/gem2rpm.rb~      2013-04-14 16:00:00.000000000 +0300
++++ gem2rpm-0.8.1/lib/gem2rpm.rb       2013-04-14 16:00:28.916832649 +0300
+@@ -1,5 +1,6 @@
+ require 'erb'
+ require 'socket'
++require 'rubygems'
+ require 'rubygems/format'
+ require 'gem2rpm/distro'
+ require 'gem2rpm/specification'
This page took 0.080301 seconds and 4 git commands to generate.