Accepting request 369033 from home:bmwiedemann:branches:devel:languages:python
use the year from source gzip header instead of current one to make reproducible rpms OBS-URL: https://build.opensuse.org/request/show/369033 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-psycopg2?expand=0&rev=41
This commit is contained in:
parent
a66f16c56a
commit
0fc9602a2a
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Mar 9 10:29:20 UTC 2016 - bwiedemann@suse.com
|
||||||
|
|
||||||
|
- use the year from source gzip header instead of current one
|
||||||
|
to make reproducible rpms
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Feb 24 14:52:53 UTC 2015 - tbechtold@suse.com
|
Tue Feb 24 14:52:53 UTC 2015 - tbechtold@suse.com
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-psycopg2
|
# spec file for package python-psycopg2
|
||||||
#
|
#
|
||||||
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
|
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -55,6 +55,9 @@ Documentation and example files for the psycopg python PostgreSQL database adapt
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n psycopg2-%{version}
|
%setup -q -n psycopg2-%{version}
|
||||||
|
# use the year from source gzip header instead of current one to make reproducible rpms
|
||||||
|
year=$(perl -e 'sysread(STDIN, $h, 8); print (1900+(gmtime(unpack("l",substr($h,4))))[5])' < %{S:0})
|
||||||
|
sed -i "s/^year =.*/year=$year/" doc/src/conf.py
|
||||||
|
|
||||||
%build
|
%build
|
||||||
CFLAGS="%{optflags} -fno-strict-aliasing" python setup.py build
|
CFLAGS="%{optflags} -fno-strict-aliasing" python setup.py build
|
||||||
|
Loading…
x
Reference in New Issue
Block a user