forked from pool/python-PyQRCode
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
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Feb 2 13:12:20 UTC 2022 - Bernhard Wiedemann <bwiedemann@suse.com>
|
||||
|
||||
- Add reproducible.patch to not include build date (boo#1047218)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Dec 9 16:04:19 UTC 2021 - Matej Cepl <mcepl@suse.com>
|
||||
|
||||
|
@@ -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}
|
||||
|
34
reproducible.patch
Normal file
34
reproducible.patch
Normal file
@@ -0,0 +1,34 @@
|
||||
https://github.com/pyqrcode/pyqrcodeNG/pull/18
|
||||
|
||||
commit 09b19acd42cdf5884ac760ea817c509360bea6da
|
||||
Author: Bernhard M. Wiedemann <bwiedemann@suse.de>
|
||||
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
|
||||
- <p>© Copyright 2013-2021, Michael Nooner, 2018 - 2021 Lars Heuer.</p>
|
||||
+ <p>© Copyright 2013-2021, Michael Nooner, 2018 - 2037 Lars Heuer.</p>
|
||||
|
||||
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
|
Reference in New Issue
Block a user