SHA256
1
0
forked from pool/ddnet
Files
ddnet/ddnet.spec
Carsten Ziepke 7ccdfe1a88 Accepting request 1078296 from home:Kieltux:branches:games
- Update to version 16.9:
  * [Client] Add random skin button
  * [Client] Select language on first start based on user locale
  * [Client] Save screenshot in separate thread to avoid lags
  * [Editor] Drag layers to reorder
  * [Editor] Sort by name and modified time in file dialog
  * [Editor] Show popups in editor when loading/saving file fails
  * [Client] Improved MOTD rendering
  * [Client] Don't add duplicate consecutive commands to
    console history
  * [Client] Support scrolling when mouse at edge
  * [Client] Support holding shift for slow mouse with color pickers
  * [Client] Fix incorrect tee blood color being shown in settings
  * [Client] Reveal selection when scrolling layer list with
    up/down arrow keys
  * [Client] Fix inp_controller_guid
  * [Client] Fix dummy tee being able to ping main tee in chat 
  * [Client] Check if HTTP request task is aborted in completion
    callback
  * [Client] Save console_output_level and console_enable_colors
    variables
  * [Client] Fix rcon login when disconnecting dummy and when
    username used
  * [Client] Fix client crash when cl_chat_old config is used
  * [Client] Fix erratic smooth scrolling when scroll time is
    changed
  * [Editor] Allow choosing envelopes by typing their ID
  * [Editor] Ignore some tiles in free slot finder
  * [Editor] Always enable editor panning and zooming when
    GUI is hidden
  * [Editor] Handle loading invalid files
  * [Editor] Add "Show Directory" button in file dialog
  * [Editor] Add "Delete" button to editor file browser
  * [Editor] Disable editor file browser hotkeys while another
    popup is open
  * [Editor] Add missing default value for custom parallax
    zoom property
  * [Server] Optimizations in preparation for 128 player support
  * [Server] Fix incorrect sixup detection when snapping pickups
  * [Server] Round time in scoreboard by millisecond, not centisecond
  * [Server] Improve ping command accuracy
  * [Server] Fix server logfile error message
  * [Tooling] Fix and improve twping
  * [Tooling] Allow to pass in the git shortrev in git_revision.py
  * [Tooling] Improve crash parsing in parse_drmingw.sh
  * [Tooling] Set uniform client/server names in cmake,
    easier modding

OBS-URL: https://build.opensuse.org/request/show/1078296
OBS-URL: https://build.opensuse.org/package/show/games/ddnet?expand=0&rev=23
2023-04-15 14:51:12 +00:00

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: 16.9
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