From 5ca8dc217633909e45f8e1e3d29667619d5808649c6649a109f50301494012b0 Mon Sep 17 00:00:00 2001 From: Stephan Kulow Date: Wed, 6 Apr 2016 06:57:15 +0000 Subject: [PATCH] - add 0017-touch-unpacked-sources.patch to please build-compare OBS-URL: https://build.opensuse.org/package/show/devel:languages:ruby/rubygem-gem2rpm?expand=0&rev=16 --- 0017-touch-unpacked-sources.patch | 18 ++++++++++++++++++ rubygem-gem2rpm.changes | 5 +++++ rubygem-gem2rpm.spec | 5 +++-- 3 files changed, 26 insertions(+), 2 deletions(-) create mode 100644 0017-touch-unpacked-sources.patch diff --git a/0017-touch-unpacked-sources.patch b/0017-touch-unpacked-sources.patch new file mode 100644 index 0000000..2c10f91 --- /dev/null +++ b/0017-touch-unpacked-sources.patch @@ -0,0 +1,18 @@ +commit f8c0600c659f26d1ec6c9d890a63dd642f741003 +Author: Stephan Kulow +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 -%> + diff --git a/rubygem-gem2rpm.changes b/rubygem-gem2rpm.changes index 19868dd..a87f734 100644 --- a/rubygem-gem2rpm.changes +++ b/rubygem-gem2rpm.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Apr 6 06:54:21 UTC 2016 - coolo@suse.com + +- add 0017-touch-unpacked-sources.patch to please build-compare + ------------------------------------------------------------------- Wed Nov 11 23:34:13 UTC 2015 - mrueckert@suse.de diff --git a/rubygem-gem2rpm.spec b/rubygem-gem2rpm.spec index 78217d2..5d54554 100644 --- a/rubygem-gem2rpm.spec +++ b/rubygem-gem2rpm.spec @@ -1,7 +1,7 @@ # # spec file for package rubygem-gem2rpm # -# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -63,6 +63,7 @@ Patch12: 0014-Refactor-into-multiple-lines.patch Patch13: 0015-Add-licence-to-the-list-of-license-files-as-well.patch Patch14: 0016-add-two-more-ways-to-express-changes.patch Patch15: 0009-No-longer-require-the-ruby-version-inside-the-subpac.patch +Patch16: 0017-touch-unpacked-sources.patch Summary: Generate rpm specfiles from gems License: GPL-2.0+ Group: Development/Languages/Ruby @@ -90,7 +91,7 @@ The spec file tries to follow the gem as closely as possible %patch13 -p1 %patch14 -p1 %patch15 -p1 - +%patch16 -p1 %build %gem_build