diff options
author | Pascal Terjan <pterjan@gmail.com> | 2013-09-10 13:57:50 +0000 |
---|---|---|
committer | Pascal Terjan <pterjan@gmail.com> | 2013-09-10 13:57:50 +0000 |
commit | 756eaa29d2086e36aefb8549a21baba792945869 (patch) | |
tree | b4e534eb49d2ab32abbaacd7ce944d21c093bf74 /build.macros.in | |
parent | daca30569be507005ad22264dd11e542a2d22de7 (diff) | |
download | rpm-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.in | 8 |
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 |