%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: GPLv2+ 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 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} CFLAGS=$(echo "$CFLAGS -fdata-sections -ffunction-sections -DNDEBUG" | sed -e 's| -g | -g0 |') export CFLAGS CXXFLAGS=$(echo "$CXXFLAGS -fdata-sections -ffunction-sections -DNDEBUG" | sed -e 's| -g | -g0 |') export CXXFLAGS LDFLAGS=$(echo "$LDFLAGS -Wl,-s,--gc-sections") export LDFLAGS %cmake \ -DCMAKE_INSTALL_DATAROOTDIR="%{_datadir}" \ -DCMAKE_INSTALL_MANDIR="%{_mandir}" \ -DCMAKE_INSTALL_BINDIR="%{_bindir}" \ -DCMAKE_BUILD_TYPE:STRING=Release %build %cmake_build --config Release --target pokerth_client %install %cmake_install %files %doc COPYING ChangeLog %{_bindir}/%{name} %{_datadir}/%{name}/ %{_datadir}/applications/%{name}.desktop %{_datadir}/pixmaps/%{name}.png %changelog * Sat May 09 2026 samoht0 2.0.7 - test