forked from pool/ddnet
e8f36f7d04
- Update to version 17.4.2: * [Client] Graphics: Zoom out without lags * [Client] Add streamer mode to avoid leaks * [Client] Indicate AFK status in friends list and info tab * [Client] Overhaul demo browser UI * [Client] Ghost improvements (256 simultaneous ghosts!) * [Tools] Add demo_extract_chat tool * [Client] Don't disable practice mode on death * [Client] Prediction for laser doors * [Client] cl_show_direction 3 to show local keypresses only * [Client] Improve IME window position on multi-line text * [Client] Delay server race demo ending by 1 second * [Client] Add mode selection to color picker popups * [Client] Implement cl_sub_tick_aiming (not enabled on official servers) * [Client] Increase freeview radius to kill tile border * [Client] Detect server no longer running when started from client * [Client] Resize screen when changing resolution in console * [Client] Improve winter theme * [Client] Update server browser when adding friend ingame * [Client] Fix 1-tick delay of values in HUD * [Client] Fix doubleclick handling with old renderer * [Client] Correctly update auth keys when using auth_remove * [Client] Ensure strings in demo header are zero-terminated and valid UTF-8 * [Client] Fix large FPS drop rendering server details of favorite server * [Client+Server] Old file handling on Windows again * [Client] Show player's latency if menu is open * [Client] Improve performance of menus checker background, improve server browser performance * [Client] Don't use mouse position for angle if paused * [Client] Support easter, halloween, xmas theme maps (no maps yet) * [Client] Remove parallax zoom from map files * [Client] Save unknown commands from settings_ddnet.cfg * [Editor] Stop/pause sound previews when leaving editor * [Editor] Add export image/sound buttons * [Editor] Add project-onto operation for envelopes * [Editor] Add numpad shortcuts for zooming in envelope editor * [Editor] Support writing maps with more items/data * [Server] Add votes command * [Server] Swap without a name when team only has 2 players * [Server] Move X amounts of tiles with left, right, up, down * [Server] Add /lasttp to teleport to last position you did /tp to * [Server] Fix dead reckoning * [Server] tele unfreeze and reset speed * [Server] Quoted names in chat for team joins * [Server] Save/load ninja * [Server] Add sv_regional_rankings 0 * [Server] Add freeze/unfreeze testing commands - Changes in version 17.4.1: * [Client] Graphics: Zoom out without lags * [Client] Add streamer mode to avoid leaks * [Client] Indicate AFK status in friends list and info tab * [Client] Overhaul demo browser UI * [Client] Ghost improvements (256 simultaneous ghosts!) * [Tools] Add demo_extract_chat tool * [Client] Don't disable practice mode on death * [Client] Prediction for laser doors * [Client] cl_show_direction 3 to show local keypresses only * [Client] Improve IME window position on multi-line text * [Client] Delay server race demo ending by 1 second * [Client] Add mode selection to color picker popups * [Client] Implement cl_sub_tick_aiming (not enabled on official servers) * [Client] Detect server no longer running when started from client * [Client] Resize screen when changing resolution in console * [Client] Improve winter theme * [Client] Update server browser when adding friend ingame * [Client] Fix 1-tick delay of values in HUD * [Client] Fix doubleclick handling with old renderer * [Client] Correctly update auth keys when using auth_remove * [Client] Ensure strings in demo header are zero-terminated and valid UTF-8 * [Client] Fix large FPS drop rendering server details of favorite server * [Client+Server] Old file handling on Windows again * [Client] Show player's latency if menu is open * [Client] Improve performance of menus checker background, improve server browser performance * [Client] Don't use mouse position for angle if paused * [Client] Support easter, halloween, xmas theme maps (no maps yet) * [Client] Remove parallax zoom from map files * [Client] Save unknown commands from settings_ddnet.cfg * [Editor] Stop/pause sound previews when leaving editor * [Editor] Add export image/sound buttons * [Editor] Add project-onto operation for envelopes * [Editor] Add numpad shortcuts for zooming in envelope editor * [Editor] Support writing maps with more items/data * [Server] Add votes command * [Server] Swap without a name when team only has 2 players * [Server] Move X amounts of tiles with left, right, up, down * [Server] Add /lasttp to teleport to last position you did /tp to * [Server] Fix dead reckoning * [Server] tele unfreeze and reset speed * [Server] Quoted names in chat for team joins * [Server] Save/load ninja * [Server] Add sv_regional_rankings 0 * [Server] Add freeze/unfreeze testing commands - Changes in version 17.4: * [Client] Graphics: Zoom out without lags * [Client] Add streamer mode to avoid leaks * [Client] Indicate AFK status in friends list and info tab * [Client] Overhaul demo browser UI * [Client] Ghost improvements (256 simultaneous ghosts!) * [Tools] Add demo_extract_chat tool * [Client] Don't disable practice mode on death * [Client] Prediction for laser doors * [Client] cl_show_direction 3 to show local keypresses only * [Client] Improve IME window position on multi-line text * [Client] Delay server race demo ending by 1 second * [Client] Add mode selection to color picker popups * [Client] Implement cl_sub_tick_aiming (not enabled on official servers) * [Client] Increase freeview radius to kill tile border * [Client] Detect server no longer running when started from client * [Client] Resize screen when changing resolution in console * [Client] Improve winter theme * [Client] Update server browser when adding friend ingame * [Client] Fix 1-tick delay of values in HUD * [Client] Fix doubleclick handling with old renderer * [Client] Correctly update auth keys when using auth_remove * [Client] Ensure strings in demo header are zero-terminated and valid UTF-8 * [Client] Fix large FPS drop rendering server details of favorite server * [Client+Server] Old file handling on Windows again * [Client] Show player's latency if menu is open * [Client] Improve performance of menus checker background, improve server browser performance * [Client] Don't use mouse position for angle if paused * [Client] Support easter, halloween, xmas theme maps (no maps yet) * [Client] Remove parallax zoom from map files * [Client] Save unknown commands from settings_ddnet.cfg * [Editor] Stop/pause sound previews when leaving editor * [Editor] Add export image/sound buttons * [Editor] Add project-onto operation for envelopes * [Editor] Add numpad shortcuts for zooming in envelope editor * [Editor] Support writing maps with more items/data * [Server] Add votes command * [Server] Swap without a name when team only has 2 players * [Server] Move X amounts of tiles with left, right, up, down * [Server] Add /lasttp to teleport to last position you did /tp to * [Server] Fix dead reckoning * [Server] tele unfreeze and reset speed * [Server] Quoted names in chat for team joins * [Server] Save/load ninja * [Server] Add sv_regional_rankings 0 * [Server] Add freeze/unfreeze testing commands - Changes in version 17.3: * [Client] Automatic multi-view for players in team * [Client] Indicator on pause/unpause in demo player * [Client] Demo search bar * [Client] Directly render cut to video * [Client] Golden angle to generate unique team colors * [Client] Overhauled demo player skipping UI * [Client] Overhauled server browser filter/details/friends * [Client] Color vote if you votes yes/no * [Editor] Generate pixelart from images * [Client] Improved default skin * [Client] Updated countryflags (GP, MN, MQ, MW, PY, RE) * [Client] Improve dbg_tuning and other debug HUD * [Client] Button to reload entities background * [Client] Improve Windows pipe (FIFO) support * [Client] Fix rendering long lines in console * [Client] Disable prediction when game is paused * [Client] Fix long console commands help * [Client] Don't send empty chat messages * [Client] Fix crash with too many votes * [Client] Fix crash using goto_tele * [Client] macOS server launcher fix * [Client] No box selection when panning * [Client] Detect server being stopped on Linux again * [Client] Release mouse for X11 when LLDB breakpoint is hit * [Client] Fix camera zooming when exiting multiview * [Client] Fix lineinput selection cursor desync * [Client] Fix chat history with cl_showchat 1 * [Client] Fix countryflag scrolling * [Client] Fix chat clipping with OpenGL backend * [Client] Improve skin cleaning * [Editor] ctrl+f to load map prompt * [Editor] Move automap rule files to subfolder * [Editor] Progress spinner when saving * [Editor] Scaling for envelopes * [Editor] Keep brush when loading another map * [Editor] Fix right-clicking envelope points * [Editor] Warn about unsaved changes when dragging map file into game * [Editor] Fix envelope saving * [Server] Testing commands: unninja, solo, deep * [Server] Fix 0.7 clients being able to join after slot change * [Server] NO_SKIN_CHANGE_FOR_FROZEN game info flag * [Server] Fix everyone's swap getting reset * [Server] Fix /load from backup database * [Server] Fix scoreboard time reset when using /timecp * [Server] Fix SQLite connection failure assertion * [Server] Don't reigster to ipv6 when sv_ipv4only is enabled * [Server] Record antibot events in teehistorian * [Server] Record join events in teehistorian * [Server] Shut down DB connection pool on errors - Use gcc11 for openSUSE Leap OBS-URL: https://build.opensuse.org/request/show/1136626 OBS-URL: https://build.opensuse.org/package/show/games/ddnet?expand=0&rev=31
153 lines
4.5 KiB
RPMSpec
153 lines
4.5 KiB
RPMSpec
#
|
|
# spec file for package ddnet
|
|
#
|
|
# Copyright (c) 2024 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.4.2
|
|
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: 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}
|
|
%if 0%{?sle_version} >= 150400 && 0%{?sle_version} < 160000 && 0%{?is_opensuse}
|
|
BuildRequires: gcc11
|
|
BuildRequires: gcc11-c++
|
|
%else
|
|
BuildRequires: gcc-c++
|
|
%endif
|
|
|
|
%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
|
|
%if 0%{?sle_version} >= 150400 && 0%{?sle_version} < 160000 && 0%{?is_opensuse}
|
|
export CC="gcc-11"
|
|
export CXX="g++-11"
|
|
%endif
|
|
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
|
|
|
|
# Fix for "error: failed to run custom build command for `link-cplusplus v1.0.6` - error occurred: Failed to find tool. Is `c++` installed?"
|
|
%make_build \
|
|
OPTFLAGS="%{optflags} -std=gnu++17"
|
|
|
|
%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
|