Accepting request 536034 from home:bmwiedemann:branches:server:dns

Make builds reproducible by using a constant __DATE__ (boo#1047218)

now using -u for being independent of timezone
(mostly matters for builds outside of OBS with rpmbuild)

OBS-URL: https://build.opensuse.org/request/show/536034
OBS-URL: https://build.opensuse.org/package/show/server:dns/dnscrypt-proxy?expand=0&rev=18
This commit is contained in:
Marguerite Su 2017-11-24 10:30:30 +00:00 committed by Git OBS Bridge
parent e6861db777
commit b69a266ef2
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Oct 23 08:42:59 UTC 2017 - bwiedemann@suse.com
- Make builds reproducible by using a constant __DATE__ (boo#1047218)
------------------------------------------------------------------- -------------------------------------------------------------------
Wed Sep 6 08:51:47 UTC 2017 - jengelh@inai.de Wed Sep 6 08:51:47 UTC 2017 - jengelh@inai.de

View File

@ -64,7 +64,7 @@ Header files for development of DNSCrypt plugins.
%setup -q %setup -q
%patch0 -p1 %patch0 -p1
# Strip __DATE__ # Strip __DATE__
sed -i "s/__DATE__/\"%(date +%%F)\"/" src/proxy/options.c sed -i "s/__DATE__/\"%(date -u -r ChangeLog +%%F)\"/" src/proxy/options.c
# Don't install COPYING with make, we use our %%license marcro if possible # Don't install COPYING with make, we use our %%license marcro if possible
sed -i "/\tCOPYING / d" Makefile.am sed -i "/\tCOPYING / d" Makefile.am
sed -i "s/COPYING //" Makefile.in sed -i "s/COPYING //" Makefile.in