diff --git a/python-marshmallow.changes b/python-marshmallow.changes index d56086b..eafe2ca 100644 --- a/python-marshmallow.changes +++ b/python-marshmallow.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue May 28 09:46:25 UTC 2019 - Bernhard Wiedemann + +- Add reproducible.patch to make build reproducible (boo#1047218) + ------------------------------------------------------------------- Fri May 17 14:38:06 UTC 2019 - Marketa Calabkova diff --git a/python-marshmallow.spec b/python-marshmallow.spec index 6df8544..2848471 100644 --- a/python-marshmallow.spec +++ b/python-marshmallow.spec @@ -28,6 +28,7 @@ Url: http://marshmallow.readthedocs.io/ Source: https://files.pythonhosted.org/packages/source/m/marshmallow/marshmallow-%{version}.tar.gz # https://github.com/humitos/sphinx-version-warning/issues/22 Patch0: python-marshmallow-no-version-warning.patch +Patch1: reproducible.patch BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros @@ -62,6 +63,7 @@ HTML Documentation and examples for %name. %prep %setup -q -n marshmallow-%{version} %patch0 -p1 +%patch1 -p1 %build %python_build diff --git a/reproducible.patch b/reproducible.patch new file mode 100644 index 0000000..8dc219e --- /dev/null +++ b/reproducible.patch @@ -0,0 +1,26 @@ +https://github.com/marshmallow-code/marshmallow/pull/679.patch + +From 8064d7e155a78cde6e7a2387ec365dcf0798641d Mon Sep 17 00:00:00 2001 +From: "Bernhard M. Wiedemann" +Date: Sun, 24 Sep 2017 21:54:43 +0200 +Subject: [PATCH] Use Changelog date instead of build date + +in order to make builds reproducible. +See https://reproducible-builds.org/ for why this is good. +--- + docs/conf.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +Index: marshmallow-2.19.2/docs/conf.py +=================================================================== +--- marshmallow-2.19.2.orig/docs/conf.py ++++ marshmallow-2.19.2/docs/conf.py +@@ -57,7 +57,7 @@ master_doc = 'index' + # General information about the project. + project = u'marshmallow' + copyright = ' {0:%Y} Steven Loria'.format( +- dt.datetime.utcnow() ++ dt.datetime.utcfromtimestamp(os.path.getmtime('../CHANGELOG.rst')) + ) + + version = release = marshmallow.__version__