2016-07-17 11:51:12 +02:00
|
|
|
#
|
|
|
|
# spec file for package slade
|
|
|
|
#
|
2020-04-18 20:36:37 +02:00
|
|
|
# Copyright (c) 2020 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
|
2020-05-26 11:40:07 +02:00
|
|
|
Version: 3.1.12
|
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
|
2016-12-29 00:18:58 +01:00
|
|
|
Source: https://github.com/sirjuddington/%name/archive/%version.tar.gz
|
2016-12-28 20:58:31 +01:00
|
|
|
Source2: slade.desktop
|
2017-02-10 02:56:43 +01:00
|
|
|
Source100: slade.appdata.xml
|
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
|
2018-04-19 09:14:00 +02:00
|
|
|
Patch10: disable_sse.patch
|
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-04-29 14:58:29 +02:00
|
|
|
BuildRequires: pkgconfig
|
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)
|
|
|
|
|
|
|
|
%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-06-22 22:16:48 +02:00
|
|
|
%patch -P 1 -P 2 -P 3 -p1
|
2020-04-18 20:36:37 +02:00
|
|
|
%ifnarch %ix86 x86_64
|
2018-04-19 09:14:00 +02:00
|
|
|
%patch10 -p0
|
|
|
|
%endif
|
2016-07-17 11:51:12 +02:00
|
|
|
|
|
|
|
%build
|
2020-04-18 20:36:37 +02:00
|
|
|
%define _lto_cflags %nil
|
2020-06-22 22:16:48 +02:00
|
|
|
%cmake -DNO_WEBVIEW=ON -DWX_GTK3=OFF \
|
|
|
|
-DCMAKE_C_FLAGS_RELWITHDEBINFO:STRING="%optflags" \
|
|
|
|
-DCMAKE_CXX_FLAGS_RELWITHDEBINFO:STRING="%optflags"
|
2016-07-17 11:51:12 +02:00
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
%install
|
2017-05-08 09:54:42 +02:00
|
|
|
strip-nondeterminism build/slade.pk3
|
2020-05-26 11:40:07 +02:00
|
|
|
b="%buildroot"
|
2016-12-28 20:58:31 +01:00
|
|
|
install -Dm755 build/slade "$b/%_bindir/slade"
|
|
|
|
install -Dm644 build/slade.pk3 "$b/%_datadir/slade3/slade.pk3"
|
2016-12-19 22:41:58 +01:00
|
|
|
|
2017-05-08 09:54:42 +02:00
|
|
|
convert -strip "build/msvc/slade.ico[0]" -alpha on "%name.png"
|
2016-12-28 20:58:31 +01:00
|
|
|
install -Dpm0644 "%name.png" "$b/%_datadir/pixmaps/%name.png"
|
2017-02-10 02:56:43 +01:00
|
|
|
install -Dpm0644 %{SOURCE100} "$b/%_datadir/appdata/%name.appdata.xml"
|
2016-12-19 22:41:58 +01:00
|
|
|
|
|
|
|
pushd misc
|
2020-06-22 22:16:48 +02:00
|
|
|
for txtfile in detect_functions.txt old-simage-formats.txt stuff.txt \
|
|
|
|
udmf11.txt udmf_zdoom.txt usdf.txt usdf_zdoom.txt
|
2016-12-19 22:41:58 +01:00
|
|
|
do
|
2020-06-22 22:16:48 +02:00
|
|
|
install -Dm644 "$txtfile" "$b/%_datadir/slade3/misc/$txtfile"
|
2016-12-19 22:41:58 +01:00
|
|
|
done
|
2016-07-17 11:51:12 +02:00
|
|
|
popd
|
|
|
|
|
2016-12-28 20:58:31 +01:00
|
|
|
install -Dm644 "%_sourcedir/slade.desktop" "$b/%_datadir/applications/%name.desktop"
|
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/
|
|
|
|
%_datadir/pixmaps/%name.png
|
|
|
|
%_datadir/applications/%name.desktop
|
2017-02-10 02:56:43 +01:00
|
|
|
%_datadir/appdata/%name.appdata.xml
|
2016-07-17 11:51:12 +02:00
|
|
|
|
|
|
|
%changelog
|