SHA256
1
0
forked from pool/vkquake

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
This commit is contained in:
Matthias Mailänder 2017-06-16 17:44:29 +00:00 committed by Git OBS Bridge
commit ba754e76f7
7 changed files with 169 additions and 0 deletions

23
.gitattributes vendored Normal file
View 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
View File

@ -0,0 +1 @@
.osc

32
appdata.xml Normal file
View File

@ -0,0 +1,32 @@
<?xml version="1.0" encoding="UTF-8"?>
<component type="desktop">
<id>vkquake.desktop</id>
<metadata_license>CC0</metadata_license>
<project_license>GPL-2.0+</project_license>
<name>vkQuake</name>
<summary>A port of the Quakespasm Quake engine to Vulkan</summary>
<description>
<p>
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 .
</p>
</description>
<screenshots>
<screenshot type="default">
<caption>Gameplay</caption>
<image>https://ibb.co/e6ceYF</image>
</screenshot>
</screenshots>
<url type="homepage">https://github.com/Novum/vkQuake</url>
<provides>
<binary>vkquake</binary>
</provides>
</component>

3
vkQuake-0.96.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:12e124bfd5836590720bfc659c1607aeee6626d07de9c692f938c0a3f271ffd3
size 3126156

9
vkquake.changes Normal file
View File

@ -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

10
vkquake.desktop Normal file
View File

@ -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;

91
vkquake.spec Normal file
View File

@ -0,0 +1,91 @@
#
# spec file for package vkquake
#
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2017 Luke Jones <luke.nukem.jones@gmail.com>
#
# 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