2016-07-17 11:51:12 +02:00
|
|
|
#
|
|
|
|
# spec file for package slade
|
|
|
|
#
|
2021-04-29 13:59:55 +02:00
|
|
|
# Copyright (c) 2021 SUSE LLC
|
2016-07-17 11:51:12 +02:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2020-04-18 20:36:37 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2016-07-17 11:51:12 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: slade
|
2021-06-01 13:28:55 +02:00
|
|
|
Version: 3.1.13
|
2016-07-17 11:51:12 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: An editor for DOOM maps and WAD/PK3 archives
|
2018-04-19 09:14:00 +02:00
|
|
|
License: GPL-2.0-or-later
|
2016-07-17 11:51:12 +02:00
|
|
|
Group: Amusements/Games/3D/Shoot
|
2020-04-18 20:36:37 +02:00
|
|
|
URL: https://github.com/sirjuddington/SLADE
|
2021-06-01 13:28:55 +02:00
|
|
|
Source: https://github.com/sirjuddington/SLADE/archive/refs/tags/%version.tar.gz
|
2016-12-28 20:58:31 +01:00
|
|
|
Patch1: basepk3.diff
|
2020-04-18 20:36:37 +02:00
|
|
|
Patch2: wx.diff
|
2020-06-22 22:16:48 +02:00
|
|
|
Patch3: clzma.diff
|
2020-07-02 18:31:32 +02:00
|
|
|
Patch4: 0001-build-allow-deactivating-the-crash-handler-at-build-.patch
|
2018-04-19 09:14:00 +02:00
|
|
|
Patch10: disable_sse.patch
|
2020-10-11 11:19:07 +02:00
|
|
|
Patch11: 0001-build-add-cmake-option-to-skip-Lua-components-1175.patch
|
2020-06-23 00:05:07 +02:00
|
|
|
# slade 3.2 will need gcc-c++>=8 and pkgconfig(fmt)>=6
|
2016-12-28 20:58:31 +01:00
|
|
|
BuildRequires: ImageMagick
|
2020-04-18 20:36:37 +02:00
|
|
|
BuildRequires: cmake >= 3.1
|
2016-07-17 11:51:12 +02:00
|
|
|
BuildRequires: freeimage-devel
|
2020-04-18 20:36:37 +02:00
|
|
|
BuildRequires: gcc-c++ >= 6
|
2020-10-11 11:19:07 +02:00
|
|
|
BuildRequires: pkg-config
|
2020-05-26 11:40:07 +02:00
|
|
|
BuildRequires: strip-nondeterminism
|
2016-12-19 22:41:58 +01:00
|
|
|
BuildRequires: update-desktop-files
|
2016-07-17 11:51:12 +02:00
|
|
|
BuildRequires: wxWidgets-3_0-devel
|
2018-06-12 14:50:02 +02:00
|
|
|
BuildRequires: zip
|
2020-06-22 22:16:48 +02:00
|
|
|
BuildRequires: pkgconfig(clzma)
|
2016-07-17 11:51:12 +02:00
|
|
|
BuildRequires: pkgconfig(fluidsynth)
|
2017-02-10 02:56:43 +01:00
|
|
|
BuildRequires: pkgconfig(ftgl)
|
2016-07-17 11:51:12 +02:00
|
|
|
BuildRequires: pkgconfig(gl)
|
|
|
|
BuildRequires: pkgconfig(glew)
|
2016-12-19 22:41:58 +01:00
|
|
|
BuildRequires: pkgconfig(libcurl)
|
2017-02-10 02:56:43 +01:00
|
|
|
BuildRequires: pkgconfig(sfml-all)
|
2016-07-17 11:51:12 +02:00
|
|
|
BuildRequires: pkgconfig(x11)
|
2020-06-23 00:05:07 +02:00
|
|
|
Provides: bundled(dumb) = 0.9.3
|
2016-07-17 11:51:12 +02:00
|
|
|
|
|
|
|
%description
|
2020-06-22 22:16:48 +02:00
|
|
|
SLADE is an editor for Doom-engine based games and source
|
2016-07-17 11:51:12 +02:00
|
|
|
ports. It has the ability to view, modify, and write many different
|
|
|
|
game-specific formats, and even convert between some of them, or
|
|
|
|
from/to other generic formats such as PNG.
|
|
|
|
|
|
|
|
%prep
|
2020-04-29 14:58:29 +02:00
|
|
|
%setup -q -n SLADE-%version
|
2020-07-02 18:31:32 +02:00
|
|
|
%patch -P 1 -P 2 -P 3 -P 4 -p1
|
2020-04-18 20:36:37 +02:00
|
|
|
%ifnarch %ix86 x86_64
|
2024-02-27 09:43:16 +01:00
|
|
|
%patch -P 10 -p1
|
2018-04-19 09:14:00 +02:00
|
|
|
%endif
|
2020-10-11 11:19:07 +02:00
|
|
|
%if 0%{?suse_version} >= 1550
|
|
|
|
%patch -P 11 -p1
|
|
|
|
%endif
|
2016-07-17 11:51:12 +02:00
|
|
|
|
|
|
|
%build
|
2020-04-18 20:36:37 +02:00
|
|
|
%define _lto_cflags %nil
|
2020-07-02 18:31:32 +02:00
|
|
|
%cmake -DNO_WEBVIEW=ON -DWX_GTK3=OFF -DNO_CRASHHANDLER=ON \
|
2020-06-22 22:16:48 +02:00
|
|
|
-DCMAKE_C_FLAGS_RELWITHDEBINFO:STRING="%optflags" \
|
2020-10-11 11:19:07 +02:00
|
|
|
-DCMAKE_CXX_FLAGS_RELWITHDEBINFO:STRING="%optflags" \
|
|
|
|
-DNO_LUA:BOOL=TRUE
|
|
|
|
%cmake_build
|
2016-07-17 11:51:12 +02:00
|
|
|
|
|
|
|
%install
|
2017-05-08 09:54:42 +02:00
|
|
|
strip-nondeterminism build/slade.pk3
|
2021-04-29 13:59:55 +02:00
|
|
|
%cmake_install
|
2016-12-19 22:41:58 +01:00
|
|
|
|
2016-07-17 11:51:12 +02:00
|
|
|
%files
|
2020-04-18 20:36:37 +02:00
|
|
|
%license gpl-2.0.txt
|
|
|
|
%doc README.md
|
2016-12-28 20:58:31 +01:00
|
|
|
%_bindir/slade
|
|
|
|
%_datadir/slade3/
|
2021-04-29 13:59:55 +02:00
|
|
|
%_datadir/icons/net.mancubus.SLADE.png
|
|
|
|
%_datadir/applications/net.mancubus.SLADE.desktop
|
|
|
|
%_datadir/metainfo/net.mancubus.SLADE.metainfo.xml
|
2016-07-17 11:51:12 +02:00
|
|
|
|
|
|
|
%changelog
|