From 0340da3dc74dbca938b08f27181c228dc8399985 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Elan=20Ruusam=C3=A4e?= Date: Sun, 5 May 2013 21:52:57 +0300 Subject: [PATCH] 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} -- 2.43.0