Accepting request 795413 from games:tools

- Update to release 3.1.11

OBS-URL: https://build.opensuse.org/request/show/795413
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/slade?expand=0&rev=8
This commit is contained in:
Dominique Leuenberger 2020-04-22 18:50:40 +00:00 committed by Git OBS Bridge
commit ef623c87ef
8 changed files with 83 additions and 78 deletions

BIN
3.1.1.5.tar.gz (Stored with Git LFS)

Binary file not shown.

BIN
3.1.11.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -8,22 +8,22 @@ which is not used in Linux distros.)
src/Archive/ArchiveManager.cpp | 4 +--- src/Archive/ArchiveManager.cpp | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-) 1 file changed, 1 insertion(+), 3 deletions(-)
Index: SLADE-3.1.1.4/src/Archive/ArchiveManager.cpp Index: SLADE-3.1.11/src/Archive/ArchiveManager.cpp
=================================================================== ===================================================================
--- SLADE-3.1.1.4.orig/src/Archive/ArchiveManager.cpp --- SLADE-3.1.11.orig/src/Archive/ArchiveManager.cpp
+++ SLADE-3.1.1.4/src/Archive/ArchiveManager.cpp +++ SLADE-3.1.11/src/Archive/ArchiveManager.cpp
@@ -138,14 +138,12 @@ bool ArchiveManager::init() @@ -153,14 +153,12 @@ bool ArchiveManager::init()
} }
// Find slade3.pk3 directory // Find slade3.pk3 directory
- string dir_slade_pk3 = appPath("slade.pk3", DIR_RES); - string dir_slade_pk3 = App::path("slade.pk3", App::Dir::Resources);
+ string dir_slade_pk3 = appPath("slade.pk3", DIR_USER); + string dir_slade_pk3 = App::path("slade.pk3", App::Dir::User);
if (!wxFileExists(dir_slade_pk3)) if (!wxFileExists(dir_slade_pk3))
dir_slade_pk3 = appPath("slade.pk3", DIR_DATA); dir_slade_pk3 = App::path("slade.pk3", App::Dir::Data);
if (!wxFileExists(dir_slade_pk3)) if (!wxFileExists(dir_slade_pk3))
dir_slade_pk3 = appPath("slade.pk3", DIR_APP); dir_slade_pk3 = App::path("slade.pk3", App::Dir::Executable);
if (!wxFileExists(dir_slade_pk3)) if (!wxFileExists(dir_slade_pk3))
- dir_slade_pk3 = appPath("slade.pk3", DIR_USER); - dir_slade_pk3 = App::path("slade.pk3", App::Dir::User);
- if (!wxFileExists(dir_slade_pk3)) - if (!wxFileExists(dir_slade_pk3))
dir_slade_pk3 = "slade.pk3"; dir_slade_pk3 = "slade.pk3";

View File

@ -1,24 +0,0 @@
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,18 @@
-------------------------------------------------------------------
Sat Apr 18 17:06:32 UTC 2020 - Jan Engelhardt <jengelh@inai.de>
- Update to release 3.1.11
* Added a Lua scripting engine
* Updated the start page with a new look and layout
* Improved console panel
* Improved support for high DPI displays
* Added support for vanilla-compatible tall gfx patches
* Added support for SiN archives
* Translations now work on truecolour images
* ZScript parsing
- Remove reproducible.patch (merged), wxChar.patch (no longer
applicable), added wx.diff
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Jun 26 10:46:19 UTC 2018 - bwiedemann@suse.com Tue Jun 26 10:46:19 UTC 2018 - bwiedemann@suse.com

View File

@ -1,7 +1,7 @@
# #
# spec file for package slade # spec file for package slade
# #
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. # Copyright (c) 2020 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -12,30 +12,27 @@
# license that conforms to the Open Source Definition (Version 1.9) # license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative. # published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/ # Please submit bugfixes or comments via https://bugs.opensuse.org/
# #
Name: slade Name: slade
Version: 3.1.1.5 Version: 3.1.11
Release: 0 Release: 0
Summary: An editor for DOOM maps and WAD/PK3 archives Summary: An editor for DOOM maps and WAD/PK3 archives
License: GPL-2.0-or-later License: GPL-2.0-or-later
Group: Amusements/Games/3D/Shoot Group: Amusements/Games/3D/Shoot
Url: https://github.com/sirjuddington/SLADE URL: https://github.com/sirjuddington/SLADE
Source: https://github.com/sirjuddington/%name/archive/%version.tar.gz Source: https://github.com/sirjuddington/%name/archive/%version.tar.gz
Source2: slade.desktop Source2: slade.desktop
Source100: slade.appdata.xml Source100: slade.appdata.xml
Patch1: basepk3.diff Patch1: basepk3.diff
Patch2: wxChar.patch Patch2: wx.diff
Patch10: disable_sse.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: ImageMagick
BuildRequires: cmake BuildRequires: cmake >= 3.1
BuildRequires: freeimage-devel BuildRequires: freeimage-devel
BuildRequires: gcc-c++ BuildRequires: gcc-c++ >= 6
BuildRequires: update-desktop-files BuildRequires: update-desktop-files
BuildRequires: wxWidgets-3_0-devel BuildRequires: wxWidgets-3_0-devel
BuildRequires: zip BuildRequires: zip
@ -51,7 +48,7 @@ BuildRequires: strip-nondeterminism
%endif %endif
%description %description
SLADE3 is a modern editor for Doom-engine based games and source SLADE3 is an editor for Doom-engine based games and source
ports. It has the ability to view, modify, and write many different ports. It has the ability to view, modify, and write many different
game-specific formats, and even convert between some of them, or game-specific formats, and even convert between some of them, or
from/to other generic formats such as PNG. from/to other generic formats such as PNG.
@ -59,13 +56,13 @@ from/to other generic formats such as PNG.
%prep %prep
%setup -qn SLADE-%version %setup -qn SLADE-%version
%patch -P 1 -P 2 -p1 %patch -P 1 -P 2 -p1
%ifnarch %{ix86} x86_64 %ifnarch %ix86 x86_64
%patch10 -p0 %patch10 -p0
%endif %endif
%patch11 -p1
%build %build
%cmake -DUSE_WEBKIT_STARTPAGE=ON %define _lto_cflags %nil
%cmake -DNO_WEBVIEW=ON -DWX_GTK3=OFF
make %{?_smp_mflags} make %{?_smp_mflags}
%install %install
@ -99,8 +96,8 @@ install -Dm644 "%_sourcedir/slade.desktop" "$b/%_datadir/applications/%name.desk
%endif %endif
%files %files
%defattr(-,root,root) %license gpl-2.0.txt
%doc gpl-2.0.txt README.md %doc README.md
%_bindir/slade %_bindir/slade
%_datadir/slade3/ %_datadir/slade3/
%_datadir/pixmaps/%name.png %_datadir/pixmaps/%name.png

43
wx.diff Normal file
View File

@ -0,0 +1,43 @@
From: Jan Engelhardt <jengelh@inai.de>
Date: 2020-04-18 20:10:34.215071041 +0200
external.so references wx functions (including those present in base), but does
not link them => add wx libs to the link.
[ 12s] /usr/include/wx-3.0/wx/filename.h:139: undefined reference to `wxFileName::Assign(wxString const&, wxPathFormat)'
[ 12s] /usr/lib64/gcc/x86_64-suse-linux/9/../../../../x86_64-suse-linux/bin/ld: CMakeFiles/external.dir/email/wxEmailMessage.o: in function `wxEmailMessage::DoAddAttachment(wxString const&, wxString&) const':
Furthermore, external.so references MemChunk:: functions, but does not link
them => change to STATIC because I am too lazy.
---
src/CMakeLists.txt | 2 +-
src/External/CMakeLists.txt | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
Index: SLADE-3.1.11/src/CMakeLists.txt
===================================================================
--- SLADE-3.1.11.orig/src/CMakeLists.txt
+++ SLADE-3.1.11/src/CMakeLists.txt
@@ -52,7 +52,7 @@ if (WX_GTK3)
set(wxWidgets_CONFIG_OPTIONS --toolkit=gtk3)
endif (WX_GTK3)
-SET(WX_LIBS std aui gl stc richtext propgrid media)
+SET(WX_LIBS base std aui gl stc richtext propgrid media)
if (NO_WEBVIEW)
SET(WX_LIBS ${WX_LIBS} html)
else (NO_WEBVIEW)
Index: SLADE-3.1.11/src/External/CMakeLists.txt
===================================================================
--- SLADE-3.1.11.orig/src/External/CMakeLists.txt
+++ SLADE-3.1.11/src/External/CMakeLists.txt
@@ -30,6 +30,6 @@ file(GLOB_RECURSE EXTERNAL_SOURCES
${SLADE_HEADERS}
)
-add_library(external ${EXTERNAL_SOURCES})
-target_link_libraries(external ${ZLIB_LIBRARY})
+add_library(external STATIC ${EXTERNAL_SOURCES})
+target_link_libraries(external ${ZLIB_LIBRARY} ${wxWidgets_LIBRARIES})
set(EXTERNAL_LIBRARIES external PARENT_SCOPE)

View File

@ -1,26 +0,0 @@
From: Luke Jones <luke.nukem.jones@gmail.com>
Date: Mon, 19 Dec 2016 21:33:56 +0000
Fix conversion from wxString to wxChar when using wxWidgets >= 3.0.2
---
src/UI/Lists/ArchiveEntryList.cpp | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
Index: SLADE-3.1.1.4/src/UI/Lists/ArchiveEntryList.cpp
===================================================================
--- SLADE-3.1.1.4.orig/src/UI/Lists/ArchiveEntryList.cpp
+++ SLADE-3.1.1.4/src/UI/Lists/ArchiveEntryList.cpp
@@ -584,8 +584,10 @@ bool ArchiveEntryList::entrySort(long le
result = 0;
// Name sort
- else if (ael_current->col_name >= 0 && ael_current->col_name == lv_current->sortColumn())
- result = le->getName().CompareTo(re->getName(), string::ignoreCase);
+ else if (ael_current->col_name >= 0 && ael_current->col_name == lv_current->sortColumn()) {
+ const wxChar *reName = re->getName().c_str();
+ result = le->getName().CompareTo(reName, string::ignoreCase);
+ }
// Other (default) sort
else