]> git.pld-linux.org Git - packages/gem2rpm.git/commitdiff
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 4f4b720012749a302d13f87c8642f73ad4babff4..425d5349a3cefabe0e9c472f663389c86d1b0fe9 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.065302 seconds and 4 git commands to generate.