SHA256
1
0
forked from pool/ddnet
Files
ddnet/ddnet.spec
Dmitriy Perlow 4c5f99c2dd Accepting request 1063520 from home:Kieltux:branches:games
- Update to version 16.7.2:
  * [Client] Default to Vulkan graphics backend (higher FPS) and
    handle errors
  * [Client] Implement exact matches in search and exclude
    strings using "" in serverbrowser
  * [Client] Render bar below server browser to show loading
    progression
  * [Client] Allow translations to reorder string substitutions
  * [Client] Ignore connecting players in search terms when
    "Filter connecting players" is on
  * [Client] Adjust no weak prediction to updated server code
  * [Client] Copy the demo timeline markers when slicing a demo
  * [Client] Handle ordinal joystick hat keys as combined cardinal
    hat keys
  * [Client] Add support for hot-plugging gamecontrollers
  * [Client] Register application separately to specify its
    displayed name
  * [Client] Fix signed integer overflow on client input message
  * [Client] Fix undefined behavior when unpacking snapshot deltas
  * [Client] Remove possible overflow in str_comp_filenames
  * [Client] Fix edge cases where demo tick seeking did not work
  * [Client] Fix smooth zooming overshooting the target zoom level
  * [Client] Add button that tells you how to save power
  * [Client] Colorify BW & F-DDrace gamemodes
  * [Editor] Add tooltips for the buttons that open directories
    and files
  * [Editor] Add separate ed_limit_max_zoom_level for editor,
    fix editor smooth zooming when joining/reloading game
  * [Editor] Deactivate editor hotkeys while dialog or editbox
    is active
  * [Editor] Fix issues when closing multiple editor popups at
    the same time
  * [Server] Make restart command work
  * [Server] Send laser objects as DDNetLaser with type
  * [Server] Add README.md for the mastersrv, briefly explaining
    the setup
  * [Server] Add tool to manually ping the mastersrv
  * [Server] Persist AFK state of players on map change,
    fix players always being considered AFK with sv_max_afk_time 0
  * [Server] Fix scoreboard showing wrong best time
  * [Server] Swap times should be per player, not per team
  * [Server] Improve move_sqlite script to adapt timezone
- Changes in 16.6:
  * [Tooling] Add support for Rust code in DDNet
  * [Client] Add friend counter in server browser
  * [Client] Add buttons+increased length on demo viewbar
  * [Editor] Improve UI
  * [Editor] Smooth zoom
  * [Server] Add 4 minutes of logs for moderators
  * [Client] Fix crash when cutting a demo opened from
    command line
  * [Client] Fix heap-buffer-overflow in DDNetLaser
    prediction code
  * [Client] Fix incorrect cursor position after exiting
    pause/spec
  * [Client] More confirmation menus
  * [Client] Fix client crash when launching with screenshot
    command
  * [Client] Fix key reader text flashing for one frame
  * [Client] Remove // in ddnet:// url handler
  * [Client] Fix client crash when unpacking a sixup packet
  * [Client] Fix invalid demo cutting, Add slice highlighting
  * [Client] Fix choppy demo seeking when start/end ticks are
    very large
  * [Client] Allow both shift keys to be used for all hotkeys
  * [Client] Switch to Vulkan 1.1
  * [Client] Correct color for Gores gametype in serverbrowser
  * [Client] Fix Ctrl+F hotkey not checking for Ctrl key, minor
    improvement to tile details popup layout
  * [Editor] Add "Tools > Remove unused envelopes"
  * [Editor] Fix large popups being outside of screen, add margin
  * [Editor] Fix incorrect minimum values for tele, speedup and
    switch layers
  * [Editor] Change hotkey Ctrl+A to Ctrl+T for layer/tile details
  * [Editor] Also append sounds when appending a map to
    another map 
  * [Editor] Fix height and margin of sound and image popups
  * [Editor] Search for images/sounds in subfolders when readding
    in editor, show selection dialog if multiple files with the
    same are found, show error popup when file cannot be found
  * [Editor] Add Shift+G editor hotkey to toggle visibility of
    game layers
  * [Editor] Fix editor crash when shifting left/right, fix wrong
    up/down shifting
  * [Editor] Adjust quad point position and texture U/V relatively
  * [Editor] Hex values in info feature
  * [Editor] Fix crashes when scrolling with up/down keys on empty
    sounds/images lists
  * [Editor] Fix text input not working when entering editor with
    bind, fix IME not being deactivated when editor is closed
  * [Server] Fix physics change by weak hook fix
  * [Server] Write log and sqlite files to storage unless given
    as absolute path
  * [Server] Add reason to vote mute, fix vote mute
  * [Server] Reset teams when restarting round 
  * [Server] Report extra player info to master http
  * [Server] Fix CGun::Fire server crash
  * [Tooling] Add an optional vscode workspace
  * [Tooling] Add vim syntax files for config files
  * [Tooling] Add tests for int packer, huffman compression
  * [Tooling] Add more tests for hashing, CSemaphore and
    utf8 confusables
- Add _service file to create the cargo_vendor tarball
- Add BuildRequires cargo and rust to use rust for building
- Fix branding-requires-unversioned hicolor-icon-theme warning

OBS-URL: https://build.opensuse.org/request/show/1063520
OBS-URL: https://build.opensuse.org/package/show/games/ddnet?expand=0&rev=18
2023-02-07 06:31:24 +00:00

139 lines
4.0 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: 16.7.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
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