Accepting request 705891 from home:bmwiedemann:branches:devel:languages:python
Add reproducible.patch to make build reproducible (boo#1047218) OBS-URL: https://build.opensuse.org/request/show/705891 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-marshmallow?expand=0&rev=11
This commit is contained in:
parent
98cfbbd81d
commit
93c2a012f5
@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue May 28 09:46:25 UTC 2019 - Bernhard Wiedemann <bwiedemann@suse.com>
|
||||
|
||||
- Add reproducible.patch to make build reproducible (boo#1047218)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri May 17 14:38:06 UTC 2019 - Marketa Calabkova <mcalabkova@suse.com>
|
||||
|
||||
|
@ -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
|
||||
|
26
reproducible.patch
Normal file
26
reproducible.patch
Normal file
@ -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" <bwiedemann@suse.de>
|
||||
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} <a href="https://stevenloria.com">Steven Loria</a>'.format(
|
||||
- dt.datetime.utcnow()
|
||||
+ dt.datetime.utcfromtimestamp(os.path.getmtime('../CHANGELOG.rst'))
|
||||
)
|
||||
|
||||
version = release = marshmallow.__version__
|
Loading…
x
Reference in New Issue
Block a user