forked from pool/slade
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
This commit is contained in:
commit
de9773f5a1
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -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
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
.osc
|
BIN
3.1.0.5.tar.gz
(Stored with Git LFS)
Normal file
BIN
3.1.0.5.tar.gz
(Stored with Git LFS)
Normal file
Binary file not shown.
28
basepk3.diff
Normal file
28
basepk3.diff
Normal file
@ -0,0 +1,28 @@
|
||||
From: Jan Engelhardt <jengelh@inai.de>
|
||||
|
||||
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";
|
||||
|
9
slade.changes
Normal file
9
slade.changes
Normal file
@ -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
|
69
slade.spec
Normal file
69
slade.spec
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user