sclorg / spec2scl

MIT License
7 stars 7 forks source link

spec2scl does not wrap up "gem spec" command. #3

Closed torsava closed 7 years ago

torsava commented 11 years ago

Originally reported by: Miroslav Suchý (Bitbucket: msuchy, GitHub: msuchy)


spec2scl does not wrap up "gem spec" command. I had to do this manually:

#!bash
  --- a/ruby193-rubygem-jammit/rubygem-jammit.spec
  +++ b/ruby193-rubygem-jammit/rubygem-jammit.spec
  @@ -32,7 +32,9 @@ Data-URI / MHTML image embedding.
   gem unpack %{SOURCE0}
   %{?scl:"}
   %setup -q -D -T -n  %{gem_name}-%{version}
   +%{?scl:scl enable %{scl} "}
   gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec
  +%{?scl:"}

   %build
   mkdir -p ./%{gem_dir}

Version spec2scl-0.3.4-1.fc18.noarch


torsava commented 11 years ago

Original comment by Slavek Kabrda (Bitbucket: bkabrda, GitHub: bkabrda):


Wrap 'gem spec' in scl enable. Fixes #3