From 8872d4342bde8f76f2178797b134c5bc705e723d358f34deec0fc214de1b807e Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Wed, 2 Feb 2022 16:55:48 +0000 Subject: [PATCH] Accepting request 950744 from home:bmwiedemann:branches:devel:languages:python Add reproducible.patch to not include build date (boo#1047218) OBS-URL: https://build.opensuse.org/request/show/950744 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-PyQRCode?expand=0&rev=15 --- python-PyQRCode.changes | 5 +++++ python-PyQRCode.spec | 2 ++ reproducible.patch | 34 ++++++++++++++++++++++++++++++++++ 3 files changed, 41 insertions(+) create mode 100644 reproducible.patch diff --git a/python-PyQRCode.changes b/python-PyQRCode.changes index 913594e..d2dbd71 100644 --- a/python-PyQRCode.changes +++ b/python-PyQRCode.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Feb 2 13:12:20 UTC 2022 - Bernhard Wiedemann + +- Add reproducible.patch to not include build date (boo#1047218) + ------------------------------------------------------------------- Thu Dec 9 16:04:19 UTC 2021 - Matej Cepl diff --git a/python-PyQRCode.spec b/python-PyQRCode.spec index d805a96..6aa9df6 100644 --- a/python-PyQRCode.spec +++ b/python-PyQRCode.spec @@ -28,6 +28,8 @@ URL: https://github.com/mnooner256/pyqrcode # This is unofficial fork with some additional fixes, the canonical # upstream repository is dead. Source: https://github.com/pyqrcode/pyqrcodeNG/archive/refs/tags/%{version}.tar.gz#/pyqrcodeNG-%{version}.tar.gz +# PATCH-FIX-UPSTREAM https://github.com/pyqrcode/pyqrcodeNG/pull/18 +Patch0: reproducible.patch BuildRequires: %{python_module Sphinx} BuildRequires: %{python_module pypng} BuildRequires: %{python_module pytest} diff --git a/reproducible.patch b/reproducible.patch new file mode 100644 index 0000000..b495677 --- /dev/null +++ b/reproducible.patch @@ -0,0 +1,34 @@ +https://github.com/pyqrcode/pyqrcodeNG/pull/18 + +commit 09b19acd42cdf5884ac760ea817c509360bea6da +Author: Bernhard M. Wiedemann +Date: Tue Dec 21 21:18:25 2021 +0100 + + Use a constant copyright date + + because a) copyright only expires 70 years after the death of the author + + and b) users might look at this string to see how current this software is + but this will be misleading when it is rebuilt later. + + and c) for reproducible builds we want to be able to rebuild packages later + and still get bit-identical output. In this case, it produced diffs in + /usr/share/doc/packages/python36-PyQRCode/html/_modules/pyqrcodeng.html + -

© Copyright 2013-2021, Michael Nooner, 2018 - 2021 Lars Heuer.

+ +

© Copyright 2013-2021, Michael Nooner, 2018 - 2037 Lars Heuer.

+ + This patch was done while working on reproducible builds for openSUSE. + +diff --git a/docs/conf.py b/docs/conf.py +index 623fcbc..c24b064 100644 +--- a/docs/conf.py ++++ b/docs/conf.py +@@ -49,7 +49,7 @@ master_doc = 'index' + + # General information about the project. + project = 'pyqrcodeng' +-copyright = '2013-2016, Michael Nooner, 2018 - {0} Lars Heuer'.format(datetime.datetime.now().year) ++copyright = '2013-2016, Michael Nooner, 2018-2021 Lars Heuer' + author = 'Michael Nooner, Lars Heuer' + + # The version info for the project you're documenting, acts as replacement for