diff --git a/dhcp.changes b/dhcp.changes index 65db6ae..b922ee8 100644 --- a/dhcp.changes +++ b/dhcp.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Jul 13 12:27:59 UTC 2017 - bwiedemann@suse.com + +- use .gz year instead of current one to make build reproducible + ------------------------------------------------------------------- Thu Jul 6 16:17:18 CEST 2017 - ndas@suse.de diff --git a/dhcp.spec b/dhcp.spec index 95a89c4..aa5d269 100644 --- a/dhcp.spec +++ b/dhcp.spec @@ -270,6 +270,9 @@ bind_dir=$(ls -1d bind-*) for i in /usr/share/automake-*/config.{sub,guess} ; do install -v -m755 $i $bind_dir/ done +# 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])' < bind.tar.gz) +sed -i "s/stdout, copyright, year/stdout, copyright, \"-$year\"/" $bind_dir/lib/dns/gen.c popd ##