# Enable Ninja build %bcond_without ninja_build Name: ddnet Version: 18.6 Release: 1%{?dist} Summary: DDraceNetwork, a cooperative racing mod of Teeworlds # Disabled while can't fix build ExcludeArch: s390x # # CC-BY-SA # -------------------------------------- # data/languages/ # data/fonts/DejaVuSans.ttf # data/fonts/SourceHanSansSC-Regular.otf # # ASL 2.0 # -------------------------------------- # data/ # # MIT # -------------------------------------- # man/ # # Public domain # -------------------------------------- # src/base/hash_libtomcrypt.c # # Automatically converted from old format: zlib and CC-BY-SA and ASL 2.0 and MIT and Public Domain - review is highly recommended. License: Zlib AND LicenseRef-Callaway-CC-BY-SA AND Apache-2.0 AND LicenseRef-Callaway-MIT AND LicenseRef-Callaway-Public-Domain URL: https://ddnet.org/ Source0: https://github.com/ddnet/ddnet/archive/%{version}/%{name}-%{version}.tar.gz # Disable network lookup test because without internet access tests not pass Patch1: 0001-Disabled-network-lookup-test.patch # Unbundle md5 and json-parser Patch2: 0002-Unbundle-md5_and_json-parser.patch BuildRequires: desktop-file-utils BuildRequires: libappstream-glib %if %{with ninja_build} BuildRequires: ninja-build %endif BuildRequires: cmake BuildRequires: gcc-c++ BuildRequires: cargo BuildRequires: python3 BuildRequires: rust-packaging BuildRequires: pkgconfig(freetype2) BuildRequires: pkgconfig(glew) BuildRequires: pkgconfig(gtest) BuildRequires: pkgconfig(json-parser) 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) BuildRequires: glslang #BuildRequires: pkgconfig(libavcodec) #BuildRequires: pkgconfig(libavformat) #BuildRequires: pkgconfig(libavutil) #BuildRequires: pkgconfig(libswscale) #BuildRequires: pkgconfig(libswresample) #BuildRequires: pkgconfig(x264) BuildRequires: (crate(cxx/default) >= 1.0.0 with crate(cxx/default) < 2.0.0~) BuildRequires: gmock-devel Requires: %{name}-data = %{version}-%{release} # https://github.com/ddnet/ddnet/issues/2019 Provides: bundled(dejavu-sans-cjkname-fonts) Provides: bundled(adobe-source-han-sans-sc-fonts) %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} Requires: hicolor-icon-theme BuildArch: noarch %description data Data files for %{name}. %package server Summary: Standalone server for %{name} Requires: %{name}%{?_isa} = %{version}-%{release} %description server Standalone server for %{name}. %prep %autosetup -p1 -n %{name}-%{version} find -type f -exec sed -i 's|engine/external/md5/md5.h|md5/md5.h|g' {} + find -type f -exec sed -i 's|engine/external/json-parser/json.h|json-parser/json.h|g' {} + %cargo_prep sed '/Cargo.lock/d' -i CMakeLists.txt touch CMakeLists.txt # Remove bundled stuff... rm -rf src/engine/external %build # ensure standard Rust compiler flags are set export RUSTFLAGS="%build_rustflags" # WebSockets disable because it freezes all GUI | https://github.com/ddnet/ddnet/issues/1900 # VIDEORECORDER needs ffpemg more x264 %cmake \ %{?with_ninja_build: -GNinja} \ -DCMAKE_BUILD_TYPE=RelWithDebInfo \ -DPREFER_BUNDLED_LIBS=OFF \ -DVIDEORECORDER=OFF \ -DAUTOUPDATE=OFF -Wno-dev %cmake_build %install %cmake_install # Install man pages... 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 %check %cmake_build --target run_tests desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop %files %license license.txt %doc README.md %{_mandir}/man6/DDNet.6* %{_bindir}/DDNet %{_libdir}/%{name}/ %{_datadir}/applications/%{name}.desktop %files data %{_datadir}/%{name}/ %{_datadir}/icons/hicolor/*/apps/%{name}.png %{_datadir}/icons/hicolor/*/apps/%{name}-server.png %files server %{_mandir}/man6/DDNet-Server.6* %{_bindir}/DDNet-Server %changelog * Sun Oct 06 2024 Packit - 18.6-1 - Update to version 18.6 - Resolves: rhbz#2315593 * Sun Sep 15 2024 Packit - 18.5.1-1 - Update to version 18.5.1 - Resolves: rhbz#2312441 * Mon Sep 02 2024 Packit - 18.5-1 - Update to version 18.5 - Resolves: rhbz#2309033 * Wed Aug 28 2024 Miroslav Suchý - 18.4-2 - convert license to SPDX * Tue Jul 23 2024 Packit - 18.4-1 - Update to version 18.4 - Resolves: rhbz#2298684 * Wed Jul 17 2024 Fedora Release Engineering - 18.3.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Thu Jul 04 2024 Packit - 18.3.1-1 - Update to version 18.3.1 - Resolves: rhbz#2295830 * Sat Jun 15 2024 Packit - 18.3-1 - Update to version 18.3 - Resolves: rhbz#2267444 * Sat Feb 03 2024 Packit - 18.0.3-1 - Version 18.0.3 (Dennis Felsing) - Fix client/server updates (Learath) - Scale angles using MousePos with zoom (furo) - Resolves rhbz#2262556 * Sun Jan 28 2024 Packit - 18.0.2-1 - Version 18.0.2 (Dennis Felsing) - Fix updater issue. Close #7867 (Learath) - Resolves rhbz#2260746 * Sat Jan 27 2024 Sérgio Basto - 18.0.1-1 - Update ddnet to 18.0.1 (#2258303) Mon Jan 22 2024 Packit - 18.0-1 - Update config_variables.h (Samuele Radici) - Resolves rhbz#2258303 * Wed Jan 24 2024 Fedora Release Engineering - 17.4.2-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Fri Jan 19 2024 Fedora Release Engineering - 17.4.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Mon Dec 18 2023 Packit - 17.4.2-1 - Version 17.4.2 (Dennis Felsing) - Fix multi sampling accuracy (Jupeyy) - Resolves rhbz#2255154 * Fri Dec 15 2023 Fedora Release Monitoring - 17.4.1-1 - Update to 17.4.1 (#2254661) * Tue Dec 12 2023 Rafael Fontenelle - 17.4-1 - Update to 17.4 (#2219010) * Wed Jul 19 2023 Fedora Release Engineering - 17.0.3-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Sun Jun 04 2023 Fedora Release Monitoring - 17.0.3-1 - Update to 17.0.3 (#2211235) * Sat May 27 2023 Fedora Release Monitoring - 17.0.1-1 - Update to 17.0.1 (#2208411) * Sat Apr 01 2023 Fedora Release Monitoring - 16.9-1 - Update to 16.9 (#2181915) * Mon Mar 06 2023 Sérgio Basto - 16.8-1 - Update ddnet to 16.8 (#2173319) * Sun Feb 05 2023 Fabio Valentini - 16.7.2-2 - Ensure standard Rust compiler flags are set. * Wed Jan 25 2023 Sérgio Basto - 16.7.2-1 - Update ddnet to 16.7.2 (#2136968) * Thu Jan 19 2023 Fedora Release Engineering - 16.4-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Sun Sep 25 2022 Sérgio Basto - 16.4-1 - Update ddnet to 16.4 (#2127583) * Sun Sep 04 2022 Sérgio Basto - 16.3.2-1 - Update ddnet to 16.3.2 (#2124089) * Sat Sep 03 2022 Sérgio Basto - 16.3.1-1 - Update ddnet to 16.3.1 (#2118277) * Thu Jul 21 2022 Fedora Release Engineering - 16.2.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Wed Jul 13 2022 Sérgio Basto - 16.2.2-1 - Update ddnet to 16.2.2 (#2105730) * Thu Jul 07 2022 Sérgio Basto - 16.2-1 - Update ddnet to 16.2 (#2066872) * Fri Jul 01 2022 Sérgio Basto - 16.2~rc7-1 - Update to ddnet-16.2-rc7 (#2066872) * Sun Mar 20 2022 Sérgio Basto - 15.9.1-1 - Update ddnet to 15.9.1 (#2051134) * Thu Feb 10 2022 Orion Poplawski - 15.8.1-3 - Rebuild for glew 2.2 * Thu Jan 20 2022 Fedora Release Engineering - 15.8.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Sun Jan 16 2022 Sérgio Basto - 15.8.1-1 - Update ddnet to 15.8.1 (#2034548) * Mon Dec 13 2021 Sérgio Basto - 15.7-1 - Update ddnet to 15.7 (#2025117) * Fri Nov 19 2021 Sérgio Basto - 15.6.2-2 - Fix serverinfo json parser to work with system libjsonparser merge of https://src.fedoraproject.org/rpms/ddnet/pull-request/1 * Sat Nov 13 2021 Sérgio Basto - 15.6.2-1 - Update ddnet to 15.6.2 (#2020793) * Sat Nov 06 2021 Sérgio Basto - 15.6.1-1 - Update ddnet to 15.6.1 (#2020793) * Thu Nov 04 2021 Sérgio Basto - 15.6-1 - Update ddnet to 15.6 (#2020422) * Tue Sep 14 2021 Sahana Prasad - 15.5.4-4 - Rebuilt with OpenSSL 3.0.0 * Mon Aug 09 2021 Sérgio Basto - 15.5.4-3 - Fix ninja build, by replacing %%(make|ninja)_build and %%(make|ninja)_install with %%cmake_build and %%cmake_install respectively reference: https://fedoraproject.org/wiki/Changes/CMake_to_do_out-of-source_builds#Migration * Wed Jul 21 2021 Fedora Release Engineering - 15.5.4-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Sun Jun 20 2021 mockbuilder - 15.5.4-1 - Update to 15.5.4. * Sun Jun 20 2021 mockbuilder - 15.5.3-1 - Update to version 15.5.3. * Sun Jun 13 2021 Fedora Release Monitoring - 15.5.2-1 - Update to 15.5.2 (#1971175) * Tue May 04 2021 ElXreno - 15.4-1 - Update to version 15.4 * Sun Feb 21 2021 ElXreno - 15.3.2-1 - Update to version 15.3.2 * Mon Feb 15 2021 ElXreno - 15.3.1-1 - Update to version 15.3.1 * Tue Jan 26 2021 Fedora Release Engineering - 15.2.5-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Mon Jan 25 2021 ElXreno - 15.2.5-2 - Drop gdb workaround * Sat Jan 2 14:07:53 +03 2021 ElXreno - 15.2.5-1 - Update to version 15.2.5 * Thu Dec 17 09:29:16 +03 2020 ElXreno - 15.2.4-1 - Update to version 15.2.4 * Tue Nov 17 23:28:01 +03 2020 ElXreno - 15.2.2-1 - Update to version 15.2.2 * Thu Oct 15 2020 Fedora Release Monitoring - 15.1.3-1 - Update to 15.1.3 (#1888766) * Tue Oct 13 2020 Jeff Law - 15.1.2-2 - Fix missing #include for gcc-11 * Mon Oct 12 2020 Fedora Release Monitoring - 15.1.2-1 - Update to 15.1.2 (#1887463) * Sun Oct 11 21:25:06 +03 2020 ElXreno - 15.1.1-1 - Update to version 15.1.1 * Sun Sep 27 20:47:43 +03 2020 ElXreno - 15.0.5-1 - Update to version 15.0.5 * Mon Sep 21 2020 ElXreno - 15.0.4-1 - Update to version 15.0.4 * Wed Sep 09 2020 ElXreno - 14.7.1-1 - Update to version 14.7.1 * Sun Aug 30 2020 ElXreno - 14.5.1-1 - Update to version 14.5.1 * Wed Aug 19 2020 ElXreno - 14.4-1 - Update to version 14.4 * Tue Aug 11 2020 ElXreno - 14.3.2-1 - Update to version 14.3.2 * Sat Aug 01 2020 Fedora Release Engineering - 14.2-3 - Second attempt - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Mon Jul 27 2020 Fedora Release Engineering - 14.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Fri Jul 10 2020 ElXreno - 14.2-1 - Updated to version 14.2 * Tue Jul 07 2020 ElXreno - 14.1-1 - Updated to version 14.1 * Mon Jun 29 2020 ElXreno - 14.0.3-1 - Updated to version 14.0.3 * Sat Jun 06 2020 ElXreno - 13.2.2-1 - Updated to version 13.2.2 * Fri May 29 2020 ElXreno - 13.2.1-1 - Updated to version 13.2.1 * Thu May 28 2020 ElXreno - 13.2-1 - Updated to version 13.2 * Fri May 01 2020 ElXreno - 13.1-1 - Updated to version 13.1 * Tue Apr 14 2020 ElXreno - 13.0.2-1 - Updated to version 13.0.2 * Wed Apr 08 2020 ElXreno - 13.0.1-1 - Updated to version 13.0.1 * Tue Apr 07 2020 ElXreno - 13.0-1 - Updated to version 13.0 * Sat Feb 22 2020 ElXreno - 12.9.2-1 - Updated to version 12.9.2 * Fri Feb 14 2020 ElXreno - 12.9.1-1 - Updated to version 12.9.1 - Disabled build for s390x arch * Thu Feb 13 2020 ElXreno - 12.9-2 - Fixed build error for Rawhide * Thu Feb 13 2020 ElXreno - 12.9-1 - Updated to version 12.9 * Wed Jan 01 2020 ElXreno - 12.8.1-6 - Applied patch by @atim - Added license breakdown explanation - Unbundled md5 and json-parser - Removed hicolor-icon-theme from main package * Tue Dec 31 2019 ElXreno - 12.8.1-5 - Added AppData manifest - Disabled websockets * Mon Dec 30 2019 ElXreno - 12.8.1-4 - Fixed man pages and license * Mon Dec 30 2019 ElXreno - 12.8.1-3 - Ninja build * Mon Dec 30 2019 ElXreno - 12.8.1-2 - WebSockets support for server * Mon Dec 23 2019 ElXreno - 12.8.1-1 - Updated to version 12.8.1 * Wed Dec 18 2019 ElXreno - 12.8-1 - Updated to version 12.8 * Sun Dec 08 2019 ElXreno - 12.7.3-6 - Extracted ddnet-maps into ddnet-maps.spec, enabled tests * Sat Dec 07 2019 Artem Polishchuk - 12.7.3-5 - Spec file fixes * Sat Dec 07 2019 ElXreno - 12.7.3-4 - Updated maps to commit 950f9ec7a40814759c78241816903a236ab8de93 * Fri Dec 06 2019 Artem Polishchuk - 12.7.3-3 - Tim was here :) * Fri Dec 06 2019 ElXreno - 12.7.3-2 - More docs, tests, and additions * Sat Nov 30 2019 ElXreno - 12.7.3-1 - Initial packaging