From bf1dd385665c460549c24654b2bbea058862ca41 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Elan=20Ruusam=C3=A4e?= Date: Mon, 29 Apr 2013 23:25:55 +0300 Subject: [PATCH 1/1] use '>=' not '=>' in specs --- gem2rpm.spec | 2 ++ style.patch | 11 +++++++++++ 2 files changed, 13 insertions(+) create mode 100644 style.patch 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 -- 2.44.0