forked from pool/ddnet
- Update to version 17.1.1: * [Editor] Autosave copy of map periodically to auto folder (ed_autosave_interval, ed_autosave_max) * [Client] Improved framerate consistency with cl_refresh_rate * [Client] Add prediction of draggers * [Client] "bind x" shows what command the key x runs * [Client] Fix switch prediction on solo server * [Client] Use icons for refresh and connect buttons in server browser * [Client] Replace country server filter fullscreen popup with smaller popup * [Client] Remove snd_rate and cl_threadsoundloading from settings menu * [Client] Support dragging demo player controls to move them * [Client] Show error instead of replacing existing demo when renaming * [Client] Improve demo slice popup * [Client] Add "No server selected" message to server details * [Client] Show GPU info in asserts * [Client] Improve color picker popups * [Client] Improve scrollbar option UI and settings * [Client] When all DDNet filter entries selected, deselect with right click * [Client] Fix crash with binds * [Editor] Add play/stop button and duration label for sounds * [Editor] Make server settings editor height adjustable by dragging * [Editor] Fix filling switch layer not setting switch number 0 * [Server&Client] Add logappend setting to keep growing the same log file (on by default) * [Server] Allow rcon users access to reserved slots (username:password) * [Server] Add /unsolo and /undeep practice commands * [Server] Fix crash with super * [Server] Fix crash with dbg_dummies * [Server] Disallow multiple emotes in the same tick * [Server] Split emoticon sending into nearby and global players * [Server] Fix MySQL crashes - Changes in version 17.0.3: * [Client] Condensed team killfeed * [Client] Improved friends list UI * [Client] Improved line input and IME support * [Editor] Add proof mode for menu backgrounds * [Client] Fix cl_show_others_alpha not used in places where it can be * [Client] Show error message popup on assertion error in client and when client fails to launch * [Client] Multiple broadcast rendering fixes * [Client] Add the DDNet git hash and "is steam" to the crash file * [Client] Fix client crash on team kill message with invalid team * [Client] Fix client crash when spectating on server with missing game info * [Client] Fix several issues with the text rendering * [Client] Highlight 0XF game type * [Client] Quit client when existing config file cannot be loaded, add restart command to client * [Client] Fix client crash/hang when launching without data directory * [Client] Add missing attribute shield entities for front and switch layers * [Editor] Improve layout of new folder, map details and event popups * [Editor] Improve editor file browser button layout when screen width is low * [Editor] Fix transparency in grass_main * [Editor] Don't render switch number and delay for tiles where they are unused * [Editor] Make envelope editor resizeable by dragging * [Editor] Move some buttons into menus * [Server] Fix time score * [Server] Fix swapping with dragger beams and plasmas * [Server] Fix hook prediction * [Server] Allow using rescue (/r) on health pickup * [Server] Add client_score_kind field to serverinfo OBS-URL: https://build.opensuse.org/request/show/1100911 OBS-URL: https://build.opensuse.org/package/show/games/ddnet?expand=0&rev=25
140 lines
4.1 KiB
RPMSpec
140 lines
4.1 KiB
RPMSpec
#
|
|
# spec file for package ddnet
|
|
#
|
|
# Copyright (c) 2023 SUSE LLC
|
|
#
|
|
# 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 https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
Name: ddnet
|
|
Version: 17.1.1
|
|
Release: 0
|
|
Summary: DDraceNetwork, a cooperative racing mod of Teeworlds
|
|
License: Apache-2.0 AND CC-BY-SA-3.0 AND Zlib AND MIT AND SUSE-Public-Domain
|
|
Group: Amusements/Games/Action/Race
|
|
URL: https://ddnet.org/
|
|
Source0: https://github.com/ddnet/ddnet/archive/%{version}/%{name}-%{version}.tar.gz
|
|
Source1: vendor.tar.xz
|
|
Source2: cargo_config
|
|
BuildRequires: Mesa-libGLESv3-devel
|
|
BuildRequires: appstream-glib
|
|
BuildRequires: cargo
|
|
BuildRequires: cmake
|
|
BuildRequires: desktop-file-utils
|
|
BuildRequires: fdupes
|
|
BuildRequires: gcc-c++
|
|
BuildRequires: glslang-devel
|
|
BuildRequires: hicolor-icon-theme
|
|
BuildRequires: libminiupnpc-devel
|
|
BuildRequires: pkgconfig
|
|
BuildRequires: pnglite-devel
|
|
BuildRequires: python3
|
|
BuildRequires: rust
|
|
BuildRequires: rust-std
|
|
BuildRequires: pkgconfig(freetype2)
|
|
BuildRequires: pkgconfig(glew)
|
|
BuildRequires: pkgconfig(gtest)
|
|
BuildRequires: pkgconfig(libcurl)
|
|
BuildRequires: pkgconfig(libnotify)
|
|
BuildRequires: pkgconfig(libpng)
|
|
BuildRequires: pkgconfig(ogg)
|
|
BuildRequires: pkgconfig(openssl)
|
|
BuildRequires: pkgconfig(opus)
|
|
BuildRequires: pkgconfig(opusfile)
|
|
BuildRequires: pkgconfig(sdl2)
|
|
BuildRequires: pkgconfig(sqlite3)
|
|
BuildRequires: pkgconfig(vulkan)
|
|
BuildRequires: pkgconfig(wavpack)
|
|
BuildRequires: pkgconfig(zlib)
|
|
Requires: %{name}-data = %{version}-%{release}
|
|
|
|
%description
|
|
DDraceNetwork (DDNet) is an actively maintained version of DDRace,
|
|
a Teeworlds modification with a unique cooperative gameplay.
|
|
Help each other play through custom maps with up to 64 players,
|
|
compete against the best in international tournaments, design your
|
|
own maps, or run your own server.
|
|
|
|
%package data
|
|
Summary: Data files for %{name}
|
|
Requires: %{name} = %{version}-%{release}
|
|
BuildArch: noarch
|
|
|
|
%description data
|
|
Data files for DDraceNetwork (DDNet).
|
|
|
|
%package server
|
|
Summary: Standalone server for %{name}
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
%description server
|
|
Standalone server for DDraceNetwork (DDNet).
|
|
|
|
%prep
|
|
%setup -qa1
|
|
|
|
mkdir cargo-home
|
|
cat >cargo-home/config <<EOF
|
|
[source.crates-io]
|
|
registry = 'https://github.com/rust-lang/crates.io-index'
|
|
replace-with = 'vendored-sources'
|
|
[source."https://github.com/selaux/android-ndk-rs"]
|
|
git = "https://github.com/selaux/android-ndk-rs"
|
|
replace-with = "vendored-sources"
|
|
|
|
[source.vendored-sources]
|
|
directory = './vendor'
|
|
EOF
|
|
|
|
%build
|
|
export CARGO_HOME=`pwd`/cargo-home/
|
|
mkdir -p build && cd build
|
|
# NOTE that %%cmake macro breaks linking.
|
|
cmake .. \
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
-DCMAKE_INSTALL_PREFIX=%{_prefix} \
|
|
-DPREFER_BUNDLED_LIBS=OFF \
|
|
-DAUTOUPDATE=OFF \
|
|
-DANTIBOT=ON \
|
|
-DUPNP=ON \
|
|
-DSTEAM=OFF \
|
|
-DVIDEORECORDER=OFF
|
|
|
|
%install
|
|
export CARGO_HOME=`pwd`/cargo-home/
|
|
%cmake_install
|
|
install -Dp -m 0644 man/DDNet.6 %{buildroot}%{_mandir}/man6/DDNet.6
|
|
install -Dp -m 0644 man/DDNet-Server.6 %{buildroot}%{_mandir}/man6/DDNet-Server.6
|
|
|
|
%fdupes %{buildroot}%{_datadir}
|
|
|
|
%files
|
|
%license license.txt
|
|
%doc README.md
|
|
%{_mandir}/man6/DDNet.6%{?ext_man}
|
|
%{_bindir}/DDNet
|
|
%{_libdir}/%{name}/
|
|
%{_datadir}/applications/%{name}.desktop
|
|
%{_datadir}/icons/hicolor/*/apps/%{name}.png
|
|
%{_datadir}/metainfo/*.appdata.xml
|
|
|
|
%files data
|
|
%{_datadir}/%{name}/
|
|
|
|
%files server
|
|
%{_mandir}/man6/DDNet-Server.6%{?ext_man}
|
|
%{_bindir}/DDNet-Server
|
|
%{_datadir}/icons/hicolor/*/apps/%{name}-server.png
|
|
|
|
%changelog
|