commit de9773f5a13cba5929bcdf9b035d438718eecf9d79880fe653205ca2a9d5891f Author: Matthias Mailänder Date: Sun Jul 17 09:51:12 2016 +0000 Accepting request 411423 from home:jengelh:dev OBS-URL: https://build.opensuse.org/request/show/411423 OBS-URL: https://build.opensuse.org/package/show/games:tools/slade?expand=0&rev=1 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/3.1.0.5.tar.gz b/3.1.0.5.tar.gz new file mode 100644 index 0000000..4f1abeb --- /dev/null +++ b/3.1.0.5.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:fc802bac433894f35528bae54e337e4dfe5c40c631d02d4472601821f8e8f76e +size 4313839 diff --git a/basepk3.diff b/basepk3.diff new file mode 100644 index 0000000..533c192 --- /dev/null +++ b/basepk3.diff @@ -0,0 +1,28 @@ +From: Jan Engelhardt + +Search for the resource file in /usr/share/slade, and prefer ~/.slade +over anything else. +--- + src/ArchiveManager.cpp | 6 ++++-- + 1 file changed, 4 insertions(+), 2 deletions(-) + +Index: SLADE-3.1.0.5/src/ArchiveManager.cpp +=================================================================== +--- SLADE-3.1.0.5.orig/src/ArchiveManager.cpp ++++ SLADE-3.1.0.5/src/ArchiveManager.cpp +@@ -138,11 +138,13 @@ bool ArchiveManager::init() + } + + // Find slade3.pk3 directory +- string dir_slade_pk3 = appPath("slade.pk3", DIR_DATA); ++ string dir_slade_pk3 = appPath("slade.pk3", DIR_USER); ++ if (!wxFileExists(dir_slade_pk3)) ++ dir_slade_pk3 = appPath("slade.pk3", DIR_DATA); + if (!wxFileExists(dir_slade_pk3)) + dir_slade_pk3 = appPath("slade.pk3", DIR_APP); + if (!wxFileExists(dir_slade_pk3)) +- dir_slade_pk3 = appPath("slade.pk3", DIR_USER); ++ dir_slade_pk3 = "/usr/share/slade/slade.pk3"; + if (!wxFileExists(dir_slade_pk3)) + dir_slade_pk3 = "slade.pk3"; + diff --git a/slade.changes b/slade.changes new file mode 100644 index 0000000..5920fac --- /dev/null +++ b/slade.changes @@ -0,0 +1,9 @@ +------------------------------------------------------------------- +Sun Jul 17 01:15:06 UTC 2016 - jengelh@inai.de + +- Add basepk3.diff + +------------------------------------------------------------------- +Tue Oct 20 14:31:10 UTC 2015 - jengelh@inai.de + +- Initial package (version 3.1.0.5) for build.opensuse.org diff --git a/slade.spec b/slade.spec new file mode 100644 index 0000000..12062c6 --- /dev/null +++ b/slade.spec @@ -0,0 +1,69 @@ +# +# 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.0.5 +Release: 0 +Summary: An editor for DOOM maps and WAD/PK3 archives +License: GPL-2.0+ +Group: Amusements/Games/3D/Shoot +Url: http://slade.mancubus.net/ + +Source: https://github.com/sirjuddington/SLADE/archive/%version.tar.gz +Patch1: basepk3.diff +BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildRequires: cmake +BuildRequires: freeimage-devel +BuildRequires: ftgl-devel +BuildRequires: gcc-c++ +BuildRequires: sfml2-devel +BuildRequires: wxWidgets-3_0-devel +BuildRequires: zip +BuildRequires: pkgconfig(fluidsynth) +BuildRequires: pkgconfig(gl) +BuildRequires: pkgconfig(glew) +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-%version +%patch -P 1 -p1 + +%build +%cmake +make %{?_smp_mflags} + +%install +mkdir -p "%buildroot/%_bindir" "%buildroot/%_datadir/%name" +pushd build/ +install -pm0755 slade "%buildroot/%_bindir/" +install -pm0644 slade.pk3 "%buildroot/%_datadir/%name/" +popd + +%files +%defattr(-,root,root) +%_bindir/slade +%_datadir/%name/ +%doc u*.txt gpl*txt + +%changelog