[ruby/ruby-2.0] Introduce %gem_install macro.
Vít Ondruch
vondruch at fedoraproject.org
Tue Feb 19 09:13:30 UTC 2013
commit 27f535fbb26216aacddcc291e8a89bf504fbd4f7
Author: Vít Ondruch <vondruch at redhat.com>
Date: Tue Feb 19 10:13:20 2013 +0100
Introduce %gem_install macro.
ruby.spec | 14 ++++++++++++++
1 files changed, 14 insertions(+), 0 deletions(-)
---
diff --git a/ruby.spec b/ruby.spec
index e85377a..cb13286 100644
--- a/ruby.spec
+++ b/ruby.spec
@@ -443,6 +443,19 @@ cat >> %{buildroot}%{_sysconfdir}/rpm/macros.rubygems << \EOF
%%gem_cache %%{gem_dir}/cache/%%{gem_name}-%%{version}.gem
%%gem_spec %%{gem_dir}/specifications/%%{gem_name}-%%{version}.gemspec
%%gem_docdir %%{gem_dir}/doc/%%{gem_name}-%%{version}
+
+# Install gem into appropriate directory.
+# -n<name> Allows to override gem for installation.
+%%gem_install(n:) \
+CONFIGURE_ARGS="--with-cflags='%%{optflags}' $CONFIGURE_ARGS" \\\
+gem install \\\
+ -V \\\
+ --local \\\
+ --install-dir .%{gem_dir} \\\
+ --bindir .%{_bindir} \\\
+ --force \\\
+ --document=ri,rdoc \\\
+ %%{-n*}%%{!?-n:%{gem_name}-%{version}.gem}
EOF
# Install custom operating_system.rb.
@@ -825,6 +838,7 @@ make check TESTS="-v $DISABLE_TESTS"
%changelog
* Wed Feb 13 2013 Vít Ondruch <vondruch at redhat.com> - 2.0.0.0-0.2.r39237
- Upgrade to Ruby 2.0.0 (r39237).
+- Introduce %%gem_install macro.
* Tue Feb 05 2013 Vít Ondruch <vondruch at redhat.com> - 2.0.0.0-0.1.rc2
- Upgrade to Ruby 2.0.0 (rc2).
More information about the scm-commits
mailing list