From ba754e76f7a63400164fe7630e24a18f36f396d7e25fc0441d708c3dc361d493 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Mail=C3=A4nder?= Date: Fri, 16 Jun 2017 17:44:29 +0000 Subject: [PATCH] Accepting request 503754 from home:luke_nukem Last update to package (hopefully). OBS-URL: https://build.opensuse.org/request/show/503754 OBS-URL: https://build.opensuse.org/package/show/games/vkquake?expand=0&rev=1 --- .gitattributes | 23 ++++++++++++ .gitignore | 1 + appdata.xml | 32 ++++++++++++++++ vkQuake-0.96.tar.gz | 3 ++ vkquake.changes | 9 +++++ vkquake.desktop | 10 +++++ vkquake.spec | 91 +++++++++++++++++++++++++++++++++++++++++++++ 7 files changed, 169 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 appdata.xml create mode 100644 vkQuake-0.96.tar.gz create mode 100644 vkquake.changes create mode 100644 vkquake.desktop create mode 100644 vkquake.spec 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/appdata.xml b/appdata.xml new file mode 100644 index 0000000..b43b59c --- /dev/null +++ b/appdata.xml @@ -0,0 +1,32 @@ + + + vkquake.desktop + CC0 + GPL-2.0+ + vkQuake + A port of the Quakespasm Quake engine to Vulkan + + +

+ vkQuake is a Quake 1 port using Vulkan instead of OpenGL for rendering. It is based on the popular QuakeSpasm port and runs all mods compatible with it like Arcane Dimensions or In The Shadows. + + Compared to QuakeSpasm vkQuake also features a software Quake like underwater effect, has better color precision, generates mipmap for water surfaces at runtime and has native support for anti-aliasing and AF. + + Game data must be placed in ~/.vkquake/id1 . +

+
+ + + + Gameplay + https://ibb.co/e6ceYF + + + + https://github.com/Novum/vkQuake + + + vkquake + + +
diff --git a/vkQuake-0.96.tar.gz b/vkQuake-0.96.tar.gz new file mode 100644 index 0000000..b246d30 --- /dev/null +++ b/vkQuake-0.96.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:12e124bfd5836590720bfc659c1607aeee6626d07de9c692f938c0a3f271ffd3 +size 3126156 diff --git a/vkquake.changes b/vkquake.changes new file mode 100644 index 0000000..cda7a7c --- /dev/null +++ b/vkquake.changes @@ -0,0 +1,9 @@ +------------------------------------------------------------------- +Thu Jun 15 00:21:19 UTC 2017 - boris@steki.net + +- update Source url to work as intended + +------------------------------------------------------------------- +Tue Jun 13 02:02:17 UTC 2017 - luke.nukem.jones@gmail.com + +- Initial packaging diff --git a/vkquake.desktop b/vkquake.desktop new file mode 100644 index 0000000..6e7bf19 --- /dev/null +++ b/vkquake.desktop @@ -0,0 +1,10 @@ +[Desktop Entry] +Name=vkQuake +GenericName=Quake +Comment="Port of Quake I to the Vulkan API" +Exec=vkquake +TryExec=vkquake +Icon=vkquake +Terminal=false +Type=Application +Categories=Game;ActionGame;Shooter; diff --git a/vkquake.spec b/vkquake.spec new file mode 100644 index 0000000..9dbc3bf --- /dev/null +++ b/vkquake.spec @@ -0,0 +1,91 @@ +# +# spec file for package vkquake +# +# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2017 Luke Jones +# +# 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: vkquake +Version: 0.96 +Release: 0 +Summary: VkQuake is a Quake 1 port using Vulkan instead of OpenGL for rendering +# FIXME: Select a correct license from https://github.com/openSUSE/spec-cleaner#spdx-licenses +License: GPL-2.0 +# FIXME: use correct group, see "https://en.opensuse.org/openSUSE:Package_group_guidelines" +Group: Amusements/Games/3D/Shoot +Url: https://github.com/Novum/vkQuake +Source: https://github.com/Novum/vkQuake/archive/%{version}/vkQuake-%{version}.tar.gz +Source99: %{name}.changes +Source100: appdata.xml +Source101: %{name}.desktop +BuildRequires: pkgconfig(sdl2) +BuildRequires: pkgconfig(vorbis) +BuildRequires: pkgconfig(flac) +BuildRequires: pkgconfig(opus) +BuildRequires: pkgconfig(opusfile) +BuildRequires: pkgconfig(libmikmod) +BuildRequires: vulkan-devel +BuildRoot: %{_tmppath}/%{name}-%{version}-build + +%description +vkQuake is a Quake 1 port using Vulkan instead of OpenGL for rendering. It is based on the popular QuakeSpasm port and runs all mods compatible with it like Arcane Dimensions or In The Shadows. +Game data must be placed in ~/.vkquake/id1 . + +%prep +%setup -q -n vkQuake-%{version} +# Fix usage of __DATE__ and __TIME__ macros to prevent build in excess +modified="$(sed -n '/^----/n;s/ - .*$//;p;q' "%{SOURCE99}")" +DATE="\"$(date -d "${modified}" "+%%b %%e %%Y")\"" +TIME="\"$(date -d "${modified}" "+%%R")\"" +sed -i "s/__DATE__/${DATE}/g;s/__TIME__/${TIME}/g" Quake/host.c + +%build +make %{?_smp_mflags} -C Quake \ + STRIP=": do not strip:" \ + DO_USERDIRS=1 \ + USE_SDL2=1 \ + USE_CODEC_FLAC=1 \ + USE_CODEC_OPUS=1 \ + USE_CODEC_MIKMOD=1 \ + USE_CODEC_UMX=1 \ + USE_CODEC_MP3=0 +make -C Misc/vq_pak + +%install +install -Dm755 Quake/vkquake %{buildroot}%{_bindir}/%{name} +install -Dm644 Misc/vq_pak/vkquake.pak %{buildroot}%{_datadir}/games/%{name}/%{name}.pak +install -D -p -m 644 Misc/vkQuake_512.png %{buildroot}%{_datadir}/pixmaps/%{name}.png +install -D -p -m 644 %{SOURCE100} %{buildroot}%{_datadir}/appdata/%{name}.appdata.xml +install -D -p -m 644 %{SOURCE101} %{buildroot}%{_datadir}/applications/%{name}.desktop + +%post +%postun + +%files +%defattr(-,root,root) +%doc readme.md LICENSE.txt Misc/fitzquake080.txt Misc/fitzquake080sdl.txt Misc/fitzquake085.txt +%{_bindir}/%{name} +%dir %{_datadir}/games/%{name}/ +%{_datadir}/games/%{name}/%{name}.pak +%{_datadir}/pixmaps/%{name}.png +%{_datadir}/applications/%{name}.desktop +%if ( 0%{?suse_version} == 1315 && 0%{?sle_version} == 120100 ) || ! 0%{?is_opensuse} +# Leap 42.1 or SLE +%dir %{_datadir}/appdata +%endif +%{_datadir}/appdata/%{name}.appdata.xml + +%changelog +