diff --git a/putty.changes b/putty.changes index b8b5817..750094d 100644 --- a/putty.changes +++ b/putty.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Tue May 2 13:07:52 UTC 2017 - bwiedemann@suse.com + +- Add reproducible.patch to use convert -strip to not have timestamps + in png files to make build fully reproducible + ------------------------------------------------------------------- Tue May 2 12:11:41 UTC 2017 - idonmez@suse.com diff --git a/putty.spec b/putty.spec index 4bec74a..a62f3da 100644 --- a/putty.spec +++ b/putty.spec @@ -31,6 +31,7 @@ Source2: http://the.earth.li/~sgtatham/putty/latest/%name-%version.tar.gz Source4: %name.keyring Patch1: putty-03-config.diff Patch2: gtk-buildfix.diff +Patch3: reproducible.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: ImageMagick BuildRequires: gtk3-devel @@ -45,7 +46,7 @@ serial console client. %prep %setup -q -%patch -P 1 -P 2 -p1 +%patch -P 1 -P 2 -P 3 -p1 %build %configure diff --git a/reproducible.patch b/reproducible.patch new file mode 100644 index 0000000..9d1c52f --- /dev/null +++ b/reproducible.patch @@ -0,0 +1,18 @@ +From: Bernhard Wiedemann +Date: Tue, 8 Mar 2016 19:39:47 +# PATCH-FIX-UPSTREAM + +Drop build timestamps from png. +Index: putty-0.68/icons/Makefile +=================================================================== +--- putty-0.68.orig/icons/Makefile ++++ putty-0.68/icons/Makefile +@@ -38,7 +38,7 @@ $(PAMS): %.pam: mkicon.py + ./mkicon.py $(MODE) $(join $(subst -, ,$(basename $@)),_icon) $@ + + $(PNGS) $(MONOPNGS) $(TRUEPNGS): %.png: %.pam +- convert $< $@ ++ convert -strip $< $@ + + $(MONOPAMS): %.pam: mkicon.py + ./mkicon.py -2 $(MODE) $(join $(subst -, ,$(subst -mono,,$(basename $@))),_icon) $@