SHA256
1
0
forked from pool/slade
slade/slade.spec

92 lines
2.8 KiB
RPMSpec
Raw Normal View History

#
# spec file for package slade
#
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: slade
Version: 3.1.1.4
Release: 0
Summary: An editor for DOOM maps and WAD/PK3 archives
License: GPL-3.0+
Group: Amusements/Games/3D/Shoot
Url: https://github.com/sirjuddington/SLADE
Source0: https://github.com/sirjuddington/%{name}/archive/SLADE-%{version}.tar.gz
Source1: slade.desktop
# PATCH-FIX-UPSTREAM Fix conversion from wxString to wxChar when using wxWidgets >= 3.0.2
Patch0: wxChar.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: cmake
BuildRequires: freeimage-devel
BuildRequires: ftgl-devel
BuildRequires: gcc-c++
BuildRequires: ImageMagick
BuildRequires: sfml2-devel
BuildRequires: update-desktop-files
BuildRequires: wxWidgets-3_0-devel
BuildRequires: zip
BuildRequires: pkgconfig(fluidsynth)
BuildRequires: pkgconfig(gl)
BuildRequires: pkgconfig(glew)
BuildRequires: pkgconfig(libcurl)
BuildRequires: pkgconfig(x11)
%description
SLADE3 is a modern editor for Doom-engine based games and source
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
%setup -qn SLADE-3.1.1.4
%patch0 -p1
%build
%cmake -DUSE_WEBKIT_STARTPAGE=ON
make %{?_smp_mflags}
%install
install -Dm755 build/slade %{buildroot}%{_bindir}/slade
install -Dm644 build/slade.pk3 %{buildroot}%{_datadir}/slade3/slade.pk3
convert "build/msvc/slade.ico" -alpha on -flatten %{name}.png
install -D -p -m 644 %{name}.png %{buildroot}%{_datadir}/pixmaps/%{name}.png
pushd misc
for txtfile in detect_functions.txt old-simage-formats.txt stuff.txt udmf11.txt \
udmf_zdoom.txt usdf.txt usdf_zdoom.txt
do
install -Dm644 $txtfile %{buildroot}%{_datadir}/slade3/misc/$txtfile
done
popd
install -Dm644 %{SOURCE1} %{buildroot}%{_datadir}/applications/%{name}.desktop
%post
%desktop_database_post
%postun
%desktop_database_postun
%files
%defattr(-,root,root)
%doc gpl-2.0.txt README.md
%{_bindir}/slade
%{_datadir}/slade3/
%{_datadir}/pixmaps/%{name}.png
%{_datadir}/applications/%{name}.desktop
%changelog