skip noarch if building extensions
authorElan Ruusamäe <glen@delfi.ee>
Mon, 29 Apr 2013 21:25:20 +0000 (00:25 +0300)
committerElan Ruusamäe <glen@delfi.ee>
Mon, 29 Apr 2013 21:25:20 +0000 (00:25 +0300)
pld.spec.erb

index 4f4b720..425d534 100644 (file)
@@ -39,7 +39,9 @@ Requires:     ruby-<%= d.name %> <%= req %>
 <% end -%>
 %endif
 <% end -%>
+<% if spec.extensions.empty? -%>
 BuildArch:     noarch
+<% end -%>
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
This page took 0.081719 seconds and 4 git commands to generate.