Hello community, here is the log from the commit of package rubygem-ronn for openSUSE:Factory checked in at 2020-01-20 22:47:31 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/rubygem-ronn (Old) and /work/SRC/openSUSE:Factory/.rubygem-ronn.new.26092 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "rubygem-ronn" Mon Jan 20 22:47:31 2020 rev:2 rq:764216 version:0.7.3 Changes: -------- --- /work/SRC/openSUSE:Factory/rubygem-ronn/rubygem-ronn.changes 2018-02-07 18:40:11.875598411 +0100 +++ /work/SRC/openSUSE:Factory/.rubygem-ronn.new.26092/rubygem-ronn.changes 2020-01-20 22:47:35.635162308 +0100 @@ -1,0 +2,5 @@ +Mon Dec 9 10:26:45 UTC 2019 - Bernhard Wiedemann <[email protected]> + +- Add ronn-date.patch to have reprodubible build time (boo#1047218) + +------------------------------------------------------------------- New: ---- ronn-date.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ rubygem-ronn.spec ++++++ --- /var/tmp/diff_new_pack.Gfok8t/_old 2020-01-20 22:47:37.027162843 +0100 +++ /var/tmp/diff_new_pack.Gfok8t/_new 2020-01-20 22:47:37.027162843 +0100 @@ -1,7 +1,7 @@ # # spec file for package rubygem-ronn # -# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2019 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 @@ -37,6 +37,9 @@ Url: http://rtomayko.github.com/ronn Source: https://rubygems.org/gems/%{mod_full_name}.gem Source1: gem2rpm.yml +# MANUAL +Patch0: ronn-date.patch +# /MANUAL Summary: Builds manuals License: MIT Group: Development/Languages/Ruby @@ -47,6 +50,10 @@ for terminal display, and also to HTML for the web. %prep +%gem_unpack +%patch0 -p1 +find -type f -print0 | xargs -0 touch -r %{S:0} +%gem_build %build ++++++ gem2rpm.yml ++++++ --- /var/tmp/diff_new_pack.Gfok8t/_old 2020-01-20 22:47:37.055162854 +0100 +++ /var/tmp/diff_new_pack.Gfok8t/_new 2020-01-20 22:47:37.055162854 +0100 @@ -3,3 +3,5 @@ Ronn builds manuals. It converts simple, human readable textfiles to roff for terminal display, and also to HTML for the web. :license: MIT +:patches: + ronn-date.patch: -p1 ++++++ ronn-date.patch ++++++ https://github.com/kamontat/ronn/pull/3 originally based on https://github.com/rtomayko/ronn/pull/98 commit 206846900163c8a538437444dfdd67a7a81e3801 Author: Bernhard M. Wiedemann <[email protected]> Date: Mon Dec 9 14:36:21 2019 +0100 Allow to override build date with SOURCE_DATE_EPOCH in order to make builds reproducible. See https://reproducible-builds.org/ for why this is good and https://reproducible-builds.org/specs/source-date-epoch/ for the definition of this variable. It prioritizes the variable over mtime because openSUSE's `tallow` package touched a .md file with a patch. diff --git a/lib/ronn/document.rb b/lib/ronn/document.rb index d42e2f9..6590c92 100644 --- a/lib/ronn/document.rb +++ b/lib/ronn/document.rb @@ -171,6 +171,7 @@ module Ronn # the current time. def date return @date if @date + return Time.at(ENV['SOURCE_DATE_EPOCH'].to_i).gmtime if not ENV['SOURCE_DATE_EPOCH'].nil? return File.mtime(path) if File.exist?(path) Time.now end
