2017-06-16 17:44:29 +00:00
|
|
|
#
|
|
|
|
# spec file for package vkquake
|
|
|
|
#
|
2020-03-30 15:24:06 +00:00
|
|
|
# Copyright (c) 2020 SUSE LLC
|
2017-06-16 17:44:29 +00:00
|
|
|
# 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.
|
|
|
|
|
2018-10-14 06:44:05 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2017-06-16 17:44:29 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: vkquake
|
2020-12-24 12:09:29 +00:00
|
|
|
Version: 1.05.1
|
2017-06-16 17:44:29 +00:00
|
|
|
Release: 0
|
2017-06-16 17:44:50 +00:00
|
|
|
Summary: Quake 1 port using Vulkan instead of OpenGL for rendering
|
2020-03-30 15:24:06 +00:00
|
|
|
License: GPL-2.0-or-later
|
2017-06-16 17:44:29 +00:00
|
|
|
Group: Amusements/Games/3D/Shoot
|
2020-03-30 15:24:06 +00:00
|
|
|
URL: https://github.com/Novum/vkQuake
|
2017-06-16 17:44:29 +00:00
|
|
|
Source: https://github.com/Novum/vkQuake/archive/%{version}/vkQuake-%{version}.tar.gz
|
|
|
|
Source99: %{name}.changes
|
|
|
|
Source100: appdata.xml
|
|
|
|
Source101: %{name}.desktop
|
2020-03-30 15:24:06 +00:00
|
|
|
BuildRequires: pkgconfig
|
2017-06-27 22:52:12 +00:00
|
|
|
BuildRequires: vulkan-devel
|
2017-06-16 17:44:29 +00:00
|
|
|
BuildRequires: pkgconfig(flac)
|
2017-06-27 22:52:12 +00:00
|
|
|
BuildRequires: pkgconfig(libmikmod)
|
2017-06-16 17:44:29 +00:00
|
|
|
BuildRequires: pkgconfig(opus)
|
|
|
|
BuildRequires: pkgconfig(opusfile)
|
2017-06-27 22:52:12 +00:00
|
|
|
BuildRequires: pkgconfig(sdl2)
|
|
|
|
BuildRequires: pkgconfig(vorbis)
|
2017-06-16 17:44:29 +00:00
|
|
|
|
|
|
|
%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
|
2020-09-14 10:58:07 +00:00
|
|
|
%autosetup -p1 -n vkQuake-%{version}
|
2020-03-30 15:24:06 +00:00
|
|
|
|
|
|
|
%if 0%{?sle_version} < 150200
|
|
|
|
sed -i 's#vulkan_core.h#vulkan.h#' Quake/quakedef.h
|
|
|
|
%endif
|
|
|
|
|
|
|
|
# Drop pre-compiled Windows stuff
|
|
|
|
rm Windows -fr
|
|
|
|
|
2017-06-16 17:44:29 +00:00
|
|
|
# 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
|
2020-03-30 15:24:06 +00:00
|
|
|
%make_build -C Quake \
|
2017-06-16 17:44:29 +00:00
|
|
|
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
|
2020-03-30 15:24:06 +00:00
|
|
|
%make_build -C Misc/vq_pak
|
2017-06-16 17:44:29 +00:00
|
|
|
|
|
|
|
%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
|
2020-03-30 15:24:06 +00:00
|
|
|
install -D -p -m 644 %{SOURCE100} %{buildroot}%{_datadir}/appdata/%{name}.appdata.xml
|
|
|
|
install -D -p -m 644 %{SOURCE101} %{buildroot}%{_datadir}/applications/%{name}.desktop
|
2017-06-16 17:44:29 +00:00
|
|
|
|
|
|
|
%files
|
2020-03-30 15:24:06 +00:00
|
|
|
%license LICENSE.txt
|
|
|
|
%doc readme.md Misc/fitzquake080.txt Misc/fitzquake080sdl.txt Misc/fitzquake085.txt
|
2017-06-16 17:44:29 +00:00
|
|
|
%dir %{_datadir}/games/%{name}/
|
2020-03-30 15:24:06 +00:00
|
|
|
%{_bindir}/%{name}
|
|
|
|
%{_datadir}/appdata/%{name}.appdata.xml
|
|
|
|
%{_datadir}/applications/%{name}.desktop
|
2017-06-16 17:44:29 +00:00
|
|
|
%{_datadir}/games/%{name}/%{name}.pak
|
|
|
|
%{_datadir}/pixmaps/%{name}.png
|
|
|
|
|
|
|
|
%changelog
|