SHA256
1
0
forked from pool/slade

Accepting request 619219 from games:tools

OBS-URL: https://build.opensuse.org/request/show/619219
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/slade?expand=0&rev=7
This commit is contained in:
Dominique Leuenberger 2018-06-27 08:23:06 +00:00 committed by Git OBS Bridge
commit 120e9cdab8
3 changed files with 33 additions and 0 deletions

24
reproducible.patch Normal file
View File

@ -0,0 +1,24 @@
From 74a3129429a8f99dfcac78ac676d2ca845e05af6 Mon Sep 17 00:00:00 2001
From: "Bernhard M. Wiedemann" <bwiedemann@suse.de>
Date: Tue, 26 Jun 2018 12:36:57 +0200
Subject: [PATCH] Do not save extra file attributes in .zip
to make it easier to make a reproducible build
See https://reproducible-builds.org/ for why this is good.
---
dist/CMakeLists.txt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dist/CMakeLists.txt b/dist/CMakeLists.txt
index 842d3cb1..a7c617bd 100644
--- a/dist/CMakeLists.txt
+++ b/dist/CMakeLists.txt
@@ -4,7 +4,7 @@ find_program(ZIPTOOL_7Z_EXECUTABLE 7z "$ENV{ProgramFiles}/7-Zip")
if(ZIPTOOL_7Z_EXECUTABLE)
set(ZIP_COMMAND "${ZIPTOOL_7Z_EXECUTABLE}" u -tzip -r "${CMAKE_BINARY_DIR}/slade.pk3" .)
elseif(ZIPTOOL_ZIP_EXECUTABLE)
- set(ZIP_COMMAND "${ZIPTOOL_ZIP_EXECUTABLE}" -r "${CMAKE_BINARY_DIR}/slade.pk3" .)
+ set(ZIP_COMMAND "${ZIPTOOL_ZIP_EXECUTABLE}" -X -r "${CMAKE_BINARY_DIR}/slade.pk3" .)
else()
message(STATUS "no zip executable, slade.pk3 won't build")
endif()

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Tue Jun 26 10:46:19 UTC 2018 - bwiedemann@suse.com
- Add reproducible.patch to not store extra timestamps in zip
to make build reproducible
-------------------------------------------------------------------
Tue Jun 12 12:46:57 UTC 2018 - jengelh@inai.de

View File

@ -29,6 +29,8 @@ Source100: slade.appdata.xml
Patch1: basepk3.diff
Patch2: wxChar.patch
Patch10: disable_sse.patch
# PATCH-FIX-UPSTREAM https://github.com/sirjuddington/SLADE/pull/892
Patch11: reproducible.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: ImageMagick
BuildRequires: cmake
@ -60,6 +62,7 @@ from/to other generic formats such as PNG.
%ifnarch %{ix86} x86_64
%patch10 -p0
%endif
%patch11 -p1
%build
%cmake -DUSE_WEBKIT_STARTPAGE=ON