rubygem-gem2rpm/0017-touch-unpacked-sources.patch

19 lines
589 B
Diff

commit f8c0600c659f26d1ec6c9d890a63dd642f741003
Author: Stephan Kulow <coolo@suse.de>
Date: Wed Apr 6 08:00:27 2016 +0200
add the touch for build-compare to the template
diff --git a/templates/opensuse.spec.erb b/templates/opensuse.spec.erb
index 57bf9ff..22c4647 100644
--- a/templates/opensuse.spec.erb
+++ b/templates/opensuse.spec.erb
@@ -137,6 +137,7 @@ PreReq: update-alternatives
<% config[:patches].each_with_index do |patch, i| -%>
%patch<%= i %> <%= patch[1] if patch[1] %>
<% end -%>
+find -type f -print0 | xargs -0 touch -r %{S:0}
%gem_build
<% end -%>