Accepting request 494968 from graphics

Add reproducible.patch to make build fully reproducible (forwarded request 494961 from bmwiedemann)

OBS-URL: https://build.opensuse.org/request/show/494968
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/djvulibre?expand=0&rev=35
This commit is contained in:
Dominique Leuenberger 2017-05-20 08:09:53 +00:00 committed by Git OBS Bridge
commit 71782f9075
3 changed files with 34 additions and 0 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon May 15 13:59:36 UTC 2017 - bwiedemann@suse.com
- Add reproducible.patch to make build fully reproducible
-------------------------------------------------------------------
Fri Feb 27 21:35:01 UTC 2015 - mpluskal@suse.com

View File

@ -25,6 +25,8 @@ License: GPL-2.0+
Group: Productivity/Graphics/Other
Url: http://djvu.sourceforge.net
Source: http://downloads.sourceforge.net/djvu/%{name}-%{version}.tar.gz
# PATCH-FIX-UPSTREAM -- https://sourceforge.net/p/djvu/djvulibre-git/ci/ff8e5b68f856a7fe17c9aa33d0f2220f4ba6b40c/
Patch0: reproducible.patch
BuildRequires: fdupes
BuildRequires: gcc-c++
BuildRequires: libjpeg-devel
@ -108,6 +110,7 @@ This package contains documentation
%prep
%setup -q
%patch0 -p1
%build
%configure

26
reproducible.patch Normal file
View File

@ -0,0 +1,26 @@
Index: djvulibre-3.5.27/desktopfiles/Makefile.am
===================================================================
--- djvulibre-3.5.27.orig/desktopfiles/Makefile.am
+++ djvulibre-3.5.27/desktopfiles/Makefile.am
@@ -61,7 +61,7 @@ else
endif
svg_process =\
-cat $< | gzip >$@
+cat $< | gzip -n >$@
svg_verbose = $(svg_verbose_@AM_V@)
svg_verbose_ = $(svg_verbose_@AM_DEFAULT_V@)
Index: djvulibre-3.5.27/desktopfiles/Makefile.in
===================================================================
--- djvulibre-3.5.27.orig/desktopfiles/Makefile.in
+++ djvulibre-3.5.27/desktopfiles/Makefile.in
@@ -321,7 +321,7 @@ png_verbose = $(png_verbose_@AM_V@)
png_verbose_ = $(png_verbose_@AM_DEFAULT_V@)
png_verbose_0 = @echo " PNG " $@;
svg_process = \
-cat $< | gzip >$@
+cat $< | gzip -n >$@
svg_verbose = $(svg_verbose_@AM_V@)
svg_verbose_ = $(svg_verbose_@AM_DEFAULT_V@)