aboutsummaryrefslogtreecommitdiffstats
path: root/build.macros.in
diff options
context:
space:
mode:
Diffstat (limited to 'build.macros.in')
-rw-r--r--build.macros.in10
1 files changed, 6 insertions, 4 deletions
diff --git a/build.macros.in b/build.macros.in
index 17eb286..ffba1b9 100644
--- a/build.macros.in
+++ b/build.macros.in
@@ -505,11 +505,13 @@ sed -i -e 's/`git ls-files`/`find -type f`/' \\\
--env-shebang --rdoc --ri --force --ignore-dependencies \\\
--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} \
- ([ -d %{buildroot}%{ruby_gemdir}/gems/%{__ruby_module_name}-%{version}/lib ] && cd %{buildroot}%{ruby_gemdir}/gems/%{__ruby_module_name}-%{version}/lib ; \\\
+ (cd %{buildroot}%{ruby_gemdir}/gems/%{__ruby_module_name}-%{version}; \\\
for f in $(find -name '*.so'); do \\\
- mkdir -p %{buildroot}%{ruby_sitearchdir}/$(dirname $f); \\\
- mv $f %{buildroot}%{ruby_sitearchdir}/$f; done ) \
+ dest=${f##./ext/}; \\\
+ dest=${dest##./lib/}; \\\
+ mkdir -p %{buildroot}%{ruby_sitearchdir}/$(dirname $dest); \\\
+ mv $f %{buildroot}%{ruby_sitearchdir}/$dest; done ) \
+ rm -fr %{buildroot}%{ruby_gemdir}/{cache,gems/%{__ruby_module_name}-%{version}/ext,gems/%{__ruby_module_name}-%{version}/%{__ruby_module_name}.gemspec} \
find %{buildroot}%{ruby_gemdir}/gems/%{__ruby_module_name}-%{version} -maxdepth 1 -type f -delete \
#------------------------------------------------------------------------------