From c6cb71da88b4af40d090d52eb181325aa91f379c Mon Sep 17 00:00:00 2001 From: Ken Dreyer Date: Thu, 26 Dec 2013 19:42:08 -0700 Subject: move build process into %build The Ruby guidelines indicate that the gem should be unpacked in %prep and built in %build. Run "gem unpack" and "gem spec" in %prep, and "gem build" in %build. --- rubygem-yajl-ruby.spec | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'rubygem-yajl-ruby.spec') diff --git a/rubygem-yajl-ruby.spec b/rubygem-yajl-ruby.spec index 8b763a4..d817b20 100644 --- a/rubygem-yajl-ruby.spec +++ b/rubygem-yajl-ruby.spec @@ -43,16 +43,23 @@ BuildArch: noarch This package contains documentation for %{name} %prep -%setup -q -c -T +gem unpack %{SOURCE0} + +%setup -q -D -T -n %{gem_name}-%{version} + +gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec + +%build +gem build %{gem_name}.gemspec + mkdir -p .%{gem_dir} export CONFIGURE_ARGS="--with-cflags='%{optflags}'" gem install --local \ --install-dir $(pwd)%{gem_dir} \ -V \ --force --rdoc \ - %{SOURCE0} + %{gem_name}-%{version}.gem -%build %install mkdir -p %{buildroot}%{gem_dir} -- cgit