%global debug_package %{nil} %global gituser pokerth %global gitname pokerth Name: pokerth Version: 2.0.7 Release: 1%{?dist} Summary: A Texas-Holdem poker game License: AGPL-3.0-or-later WITH GPL-3.0-linking-source-exception URL: https://github.com/%{gituser}/%{gitname} Source0: %{url}/archive/refs/tags/v%{version}.tar.gz BuildRequires: gcc-c++ BuildRequires: qt6-qtbase-devel qt6-qtmultimedia-devel qt6-qtwebsockets-devel qt6-qtsvg-devel qt6-qttools-devel BuildRequires: boost-devel BuildRequires: protobuf-devel BuildRequires: openssl-devel BuildRequires: devscripts %description PokerTH is a poker game written in C++/Qt4. You can play the popular "Texas Hold'em" poker variant against up to six computer-opponents or play network games with people all over the world. %prep %autosetup -n %{name}-%{version} %set_build_flags CFLAGS_NEW=$(echo "$CFLAGS -fdata-sections -ffunction-sections -DNDEBUG" | sed -e 's| -g | -g0 |') export CFLAGS_NEW CXXFLAGS_NEW=$(echo "$CXXFLAGS -fdata-sections -ffunction-sections -DNDEBUG" | sed -e 's| -g | -g0 |') export CXXFLAGS_NEW LDFLAGS_NEW=$(echo "$LDFLAGS -Wl,-s,--gc-sections") export LDFLAGS_NEW %cmake \ -DCMAKE_INSTALL_DATAROOTDIR="%{_datadir}" \ -DCMAKE_INSTALL_MANDIR="%{_mandir}" \ -DCMAKE_INSTALL_BINDIR="%{_bindir}" \ -DCMAKE_BUILD_TYPE:STRING=Release \ -DCMAKE_C_FLAGS="$CFLAGS_NEW" \ -DCMAKE_CXX_FLAGS="$CXXFLAGS_NEW" \ -DCMAKE_LD_FLAGS="$LDFLAGS_NEW" %build %cmake_build --config Release --target %{name}_client %cmake_build --config Release --target %{name}_qml-client %cmake_build --config Release --target %{name}_official_server %install %cmake_install hardening-check -v --nobranchprotection %{buildroot}%{_bindir}/{%{name}_client,%{name}_qml-client,%{name}_official_server} %files %doc COPYING ChangeLog %{_bindir}/%{name}_client %{_bindir}/%{name}_qml-client %{_bindir}/%{name}_official_server %{_datadir}/%{name}/ %{_datadir}/applications/%{name}.desktop %{_datadir}/applications/%{name}_qml.desktop %{_datadir}/pixmaps/%{name}.png %changelog * Sat May 09 2026 samoht0 2.0.7 - test