aboutsummaryrefslogtreecommitdiffstats
path: root/build.macros.in
diff options
context:
space:
mode:
authorPascal Terjan <pterjan@gmail.com>2013-09-20 12:23:20 +0000
committerPascal Terjan <pterjan@gmail.com>2013-09-20 12:23:20 +0000
commitfd3fb4e09a2bf1c961ccf85cee067b2a75e4ada8 (patch)
treeddd2f00c0f2701dc5bca4902658b31a12eb3dbef /build.macros.in
parentd88e168a614b84ce54fb56d5091faa4253ed4f6b (diff)
downloadrpm-setup-fd3fb4e09a2bf1c961ccf85cee067b2a75e4ada8.tar
rpm-setup-fd3fb4e09a2bf1c961ccf85cee067b2a75e4ada8.tar.gz
rpm-setup-fd3fb4e09a2bf1c961ccf85cee067b2a75e4ada8.tar.bz2
rpm-setup-fd3fb4e09a2bf1c961ccf85cee067b2a75e4ada8.tar.xz
rpm-setup-fd3fb4e09a2bf1c961ccf85cee067b2a75e4ada8.zip
Support gems with .so under ext and not installed in lib1.186
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 \
#------------------------------------------------------------------------------