aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--NEWS2
-rw-r--r--build.macros.in45
2 files changed, 2 insertions, 45 deletions
diff --git a/NEWS b/NEWS
index c6158ec..056fa9f 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,5 @@
+- move rubygem build macros to the rubygems package
+
Version 2.16 - 7 November 2015, by Neal Gompa
- update %mkrel to use %dist when defined and
diff --git a/build.macros.in b/build.macros.in
index bdd5364..8515793 100644
--- a/build.macros.in
+++ b/build.macros.in
@@ -445,51 +445,6 @@ popd
%ocaml_sitelib %(if [ -x /usr/bin/ocamlc ]; then ocamlc -where;fi)/site-lib
#------------------------------------------------------------------------------
-# Ruby gem macros
-#
-
-%__ruby_module_name %{?oname}%{!?oname:%(echo %{name}|cut -d\- -f2-)}
-%gem_name %__ruby_module_name
-
-%gem_setup \
-%setup -q \
-tar xmf data.tar.gz \
-if [ ! -f %{__ruby_module_name}.gemspec ]; then \
- %{_bindir}/gem specification -l --ruby %{SOURCE0} > %{__ruby_module_name}.gemspec \
-fi \
-sed -i -e 's/`git ls-files`/`find -type f`/' \\\
- -e 's/`git ls-files -- \\\(.*\\\)`/`find \\\1 -type f`/' \\\
- -e 's/`git ls-files \\\(.*\\\)`/`find \\\1 -type f`/' \\\
- -e 's/ s.version = .*/ s.version = "%{version}"/' \\\
- %{__ruby_module_name}.gemspec
-
-%gem_build \
- if [ ! -f %{__ruby_module_name}.gemspec ]; then \
- %{_bindir}/gem specification -l --ruby %{SOURCE0} > %{__ruby_module_name}.gemspec \
- fi \
- %{_bindir}/gem build %{__ruby_module_name}.gemspec
-
-%gem_install(d) \
- %{_bindir}/gem install %{__ruby_module_name}-%{version}.gem --local \\\
- --env-shebang --rdoc --ri --force --ignore-dependencies \\\
- --install-dir %{buildroot}%{gem_dir} \\\
- --bindir %{buildroot}%{_bindir} \
- EXTPATH=$(ruby -e "puts Gem::Specification.load('%{__ruby_module_name}.gemspec').require_paths.join(' ')") \
- %{-d: \
- (cd %{buildroot}%{gem_instdir}; \\\
- for f in $(find $EXTPATH -name *.h); do \\\
- mkdir -p %{buildroot}%{gem_extdir_mri}/$(dirname $f); \\\
- mv $f %{buildroot}%{gem_extdir_mri}/$f; \\\
- done ) \
- } \
- (cd %{buildroot}%{gem_instdir}; \\\
- for f in $(find $EXTPATH -name '*.so'); do \\\
- mkdir -p %{buildroot}%{gem_extdir_mri}/$(dirname $f); \\\
- mv $f %{buildroot}%{gem_extdir_mri}/$f; done ) \
- rm -fr %{buildroot}%{gem_dir}/{cache,extensions,gems/%{__ruby_module_name}-%{version}/ext,gems/%{__ruby_module_name}-%{version}/%{__ruby_module_name}.gemspec} \
- find %{buildroot}%{gem_instdir} -maxdepth 1 -type f -delete
-
-#------------------------------------------------------------------------------
# Systemd and general service related macros
#