From b59b10ce560d2577f28c25e9f8711353f959e870 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Elan=20Ruusam=C3=A4e?= Date: Mon, 15 Dec 2014 15:38:30 +0200 Subject: [PATCH] up to 0.10.1 no changes to code, only templates, which none are pld --- gem2rpm.spec | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/gem2rpm.spec b/gem2rpm.spec index e3904c8..04468ec 100644 --- a/gem2rpm.spec +++ b/gem2rpm.spec @@ -4,12 +4,12 @@ Summary: Generate rpm specfiles from gems Name: gem2rpm -Version: 0.9.2 -Release: 3 +Version: 0.10.1 +Release: 1 License: GPL v2+ Group: Development/Languages -Source0: https://github.com/lutter/gem2rpm/archive/v%{version}.tar.gz -# Source0-md5: 133c4cae2e26c24a5db0453e2cbe2a72 +Source0: https://github.com/lutter/gem2rpm/archive/v%{version}/%{name}-%{version}.tar.gz +# Source0-md5: a22be828b4aeff0387a735daae969c5c Source2: pld.spec.erb Patch0: gems.patch Patch1: pld.patch @@ -41,12 +41,14 @@ Documentation for %{name}. %prep %setup -q +%{__sed} -i -e '1 s,#!.*ruby,#!%{__ruby},' bin/* %patch0 -p1 %patch1 -p1 %patch2 -p1 cp -p %{SOURCE2} templates -%{__sed} -i -e '1 s,#!.*ruby,#!%{__ruby},' bin/* +# cleanup backups after patching +find '(' -name '*~' -o -name '*.orig' ')' -print0 | xargs -0 -r -l512 rm -f %build %if %{with tests} -- 2.43.0