[packages/gem2rpm] do not make bin dir if not needed

glen glen at pld-linux.org
Sat May 25 01:02:45 CEST 2013


commit 0340da3dc74dbca938b08f27181c228dc8399985
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Sun May 5 21:52:57 2013 +0300

    do not make bin dir if not needed

 pld.spec.erb | 4 ++++
 1 file changed, 4 insertions(+)
---
diff --git a/pld.spec.erb b/pld.spec.erb
index 26822cf..892b41c 100644
--- a/pld.spec.erb
+++ b/pld.spec.erb
@@ -55,7 +55,11 @@ BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %install
 rm -rf $RPM_BUILD_ROOT
+<% if spec.executables.empty? -%>
+install -d $RPM_BUILD_ROOT%{ruby_vendorlibdir}
+<% else -%>
 install -d $RPM_BUILD_ROOT{%{ruby_vendorlibdir},%{_bindir}}
+<% end -%>
 cp -a lib/* $RPM_BUILD_ROOT%{ruby_vendorlibdir}
 <% if ! spec.executables.empty? -%>
 cp -a bin/* $RPM_BUILD_ROOT%{_bindir}
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/gem2rpm.git/commitdiff/fb76f5e0ae634b49954ba24c638177238250516a



More information about the pld-cvs-commit mailing list