[packages/gem2rpm] use '>=' not '=>' in specs

glen glen at pld-linux.org
Mon Apr 29 22:49:04 CEST 2013


commit bf1dd385665c460549c24654b2bbea058862ca41
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Mon Apr 29 23:25:55 2013 +0300

    use '>=' not '=>' in specs

 gem2rpm.spec |  2 ++
 style.patch  | 11 +++++++++++
 2 files changed, 13 insertions(+)
---
diff --git a/gem2rpm.spec b/gem2rpm.spec
index 060c1fd..03581e0 100644
--- a/gem2rpm.spec
+++ b/gem2rpm.spec
@@ -13,6 +13,7 @@ Source1:	%{name}-%{version}-tests.tgz
 Source2:	pld.spec.erb
 Patch0:		gems.patch
 Patch1:		pld.patch
+Patch2:		style.patch
 URL:		https://github.com/lutter/gem2rpm/
 BuildRequires:	rpm-rubyprov
 BuildRequires:	rpmbuild(macros) >= 1.656
@@ -37,6 +38,7 @@ Documentation for %{name}.
 %setup -q
 %patch0 -p1
 %patch1 -p1
+%patch2 -p1
 cp -p %{SOURCE2} templates
 
 %{__sed} -i -e '1 s,#!.*ruby,#!%{__ruby},' bin/*
diff --git a/style.patch b/style.patch
new file mode 100644
index 0000000..af76178
--- /dev/null
+++ b/style.patch
@@ -0,0 +1,11 @@
+--- gem2rpm-0.8.1/lib/gem2rpm/helpers.rb~	2013-04-29 22:57:16.000000000 +0300
++++ gem2rpm-0.8.1/lib/gem2rpm/helpers.rb	2013-04-29 23:13:01.409116757 +0300
+@@ -12,7 +12,7 @@
+       requirements.inject([]) do |output, r|
+         if r.first == '~>'
+ 	  next_version = Gem::Version.create(r.last).bump
+-	  output << ['=>', r.last]
++	  output << ['>=', r.last]
+ 	  output << ['<', next_version]
+ 	else
+ 	  output << r
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/gem2rpm.git/commitdiff/a0c08b44b2ec8e7e11d833039e000a23e8add355



More information about the pld-cvs-commit mailing list