aboutsummaryrefslogtreecommitdiffstats
path: root/build.macros.in
diff options
context:
space:
mode:
authorPascal Terjan <pterjan@gmail.com>2013-09-20 11:21:43 +0000
committerPascal Terjan <pterjan@gmail.com>2013-09-20 11:21:43 +0000
commitb608633a56f8d928d99fa5efc894faf8f6d3801c (patch)
tree35b942b1bebf41d62536703e44c7cd3da4bfafc4 /build.macros.in
parent4cddaab45e4687453be733d48e0a6d46efacce69 (diff)
downloadrpm-setup-b608633a56f8d928d99fa5efc894faf8f6d3801c.tar
rpm-setup-b608633a56f8d928d99fa5efc894faf8f6d3801c.tar.gz
rpm-setup-b608633a56f8d928d99fa5efc894faf8f6d3801c.tar.bz2
rpm-setup-b608633a56f8d928d99fa5efc894faf8f6d3801c.tar.xz
rpm-setup-b608633a56f8d928d99fa5efc894faf8f6d3801c.zip
Support empty gems1.184
Diffstat (limited to 'build.macros.in')
-rw-r--r--build.macros.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/build.macros.in b/build.macros.in
index f4bb17a..ac2762a 100644
--- a/build.macros.in
+++ b/build.macros.in
@@ -506,7 +506,7 @@ 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 ; \\\
+ ([ -d %{buildroot}%{ruby_gemdir}/gems/%{__ruby_module_name}-%{version}/lib && 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 ) \