do not make bin dir if not needed
authorElan Ruusamäe <glen@delfi.ee>
Sun, 5 May 2013 18:52:57 +0000 (21:52 +0300)
committerElan Ruusamäe <glen@delfi.ee>
Sun, 5 May 2013 18:52:57 +0000 (21:52 +0300)
pld.spec.erb

index 26822cf..892b41c 100644 (file)
@@ -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}
This page took 0.242434 seconds and 4 git commands to generate.