aboutsummaryrefslogtreecommitdiffstats
path: root/build.macros.in
diff options
context:
space:
mode:
authorPascal Terjan <pterjan@gmail.com>2013-09-10 13:57:50 +0000
committerPascal Terjan <pterjan@gmail.com>2013-09-10 13:57:50 +0000
commit756eaa29d2086e36aefb8549a21baba792945869 (patch)
treeb4e534eb49d2ab32abbaacd7ce944d21c093bf74 /build.macros.in
parentdaca30569be507005ad22264dd11e542a2d22de7 (diff)
downloadrpm-setup-756eaa29d2086e36aefb8549a21baba792945869.tar
rpm-setup-756eaa29d2086e36aefb8549a21baba792945869.tar.gz
rpm-setup-756eaa29d2086e36aefb8549a21baba792945869.tar.bz2
rpm-setup-756eaa29d2086e36aefb8549a21baba792945869.tar.xz
rpm-setup-756eaa29d2086e36aefb8549a21baba792945869.zip
Support gems with the .so in a subdirectory1.181
Diffstat (limited to 'build.macros.in')
-rw-r--r--build.macros.in8
1 files changed, 4 insertions, 4 deletions
diff --git a/build.macros.in b/build.macros.in
index cec3683..c12586a 100644
--- a/build.macros.in
+++ b/build.macros.in
@@ -505,11 +505,11 @@ sed -i -e 's/`git ls-files`/`find -type f`/' \\\
--install-dir %{buildroot}%{ruby_gemdir} \\\
--bindir %{buildroot}%{_bindir} \
rm -fr %{buildroot}%{ruby_gemdir}/{cache,gems/%{__ruby_module_name}-%{version}/ext,gems/%{__ruby_module_name}-%{version}/%{__ruby_module_name}.gemspec} \
+ (cd %{buildroot}%{ruby_gemdir}/gems/%{__ruby_module_name}-%{version}/lib ; \\\
+ for f in $(find -name *.so); do \\\
+ mkdir -p %{buildroot}%{ruby_sitearchdir}/$(dirname $f); \\\
+ mv $f %{buildroot}%{ruby_sitearchdir}/$f; done ) \
find %{buildroot}%{ruby_gemdir}/gems/%{__ruby_module_name}-%{version} -maxdepth 1 -type f -delete \
- if [ -f %{buildroot}%{ruby_gemdir}/gems/%{__ruby_module_name}-%{version}/lib/*.so ]; then \
- mkdir -p %{buildroot}%{ruby_sitearchdir} \
- mv %{buildroot}%{ruby_gemdir}/gems/%{__ruby_module_name}-%{version}/lib/*.so %{buildroot}%{ruby_sitearchdir}/ \
- fi
#------------------------------------------------------------------------------
# Systemd and general service related macros