%global cardsets_minimal_ver 3.1.0 Name: PySolFC Version: 3.6.0 Release: 1%{?dist} Summary: A collection of solitaire card games License: GPL-2.0-or-later URL: https://pysolfc.sourceforge.io Source0: https://downloads.sourceforge.net/pysolfc/%{name}-%{version}.tar.xz Source1: https://downloads.sourceforge.net/pysolfc/%{name}-Cardsets--Minimal-%{cardsets_minimal_ver}.tar.xz # Patch1: https://github.com/shlomif/%%{name}/commit/8e1c682801c68372f6fe64df48e30ec8c5bfb101.patch#/Convert_height_and_width_values.patch BuildArch: noarch BuildRequires: make BuildRequires: python%{python3_pkgversion}-devel BuildRequires: python%{python3_pkgversion}-tkinter BuildRequires: desktop-file-utils BuildRequires: perl-interpreter BuildRequires: tcl-devel BuildRequires: tk-devel Requires: python%{python3_pkgversion}-pillow Requires: python%{python3_pkgversion}-pygame Requires: tcl Requires: tk Requires: python%{python3_pkgversion}-tkinter Requires: python%{python3_pkgversion}-pillow-tk # Recommends: PySolFC-cardsets # Recommends: PySolFC-music Recommends: freecell-solver Recommends: python%{python3_pkgversion}-freecell_solver Provides: pysol = %{version}-%{release} %description %{name} is a collection of more than 1000 solitaire card games. It is a fork of PySol solitaire. Its features include modern look and feel (uses Tile widget set), multiple card-sets and tableau backgrounds, sound, unlimited undo, player statistics, a hint system, demo games, a solitaire wizard, support for user written plug-ins, an integrated HTML help browser, and lots of documentation. %prep %autosetup -p1 -a1 # Set exec name sed -i 's|Exec=pysol.py|Exec=pysol|' data/pysol.desktop %generate_buildrequires %pyproject_buildrequires %build %make_build all_games_html rules mo %pyproject_wheel # Add start script cat > pysol-start-script << EOF #!/bin/sh /usr/share/PySolFC/pysol.py "\$@" exit \$? EOF cat pysol-start-script %install %pyproject_install # install desktop file desktop-file-install \ --delete-original \ --dir=$RPM_BUILD_ROOT/%{_datadir}/applications \ $RPM_BUILD_ROOT/%{_datadir}/applications/pysol.desktop # install the startup wrapper mv $RPM_BUILD_ROOT%{_bindir}/pysol.py $RPM_BUILD_ROOT%{_datadir}/%{name} install -m755 pysol-start-script $RPM_BUILD_ROOT/%{_bindir}/pysol cp -a %{name}-Cardsets--Minimal-%{cardsets_minimal_ver}/cardset-* $RPM_BUILD_ROOT%{_datadir}/%{name} find "$RPM_BUILD_ROOT%{python3_sitelib}/pysollib" -name '*.py' | xargs -L1 perl -ln -i -E 'say if (not (($. == 1) and (m&^#![ \t]*/usr/&)))' %find_lang pysol %files -f pysol.lang %license COPYING %doc README.md %{python3_sitelib}/pysollib %{python3_sitelib}/*dist-info %{_bindir}/pysol %{_datadir}/%{name} %{_datadir}/icons/hicolor/*/apps/*.png %{_datadir}/applications/*.desktop %changelog * Sun Jun 14 2026 samoht0 3.6.0 - update 3.6.0 - ported from fedora package