[packages/PySolFC] - up to 3.2.0
mrozowik
mrozowik at pld-linux.org
Tue Apr 29 14:02:37 CEST 2025
commit 7b22864cf1fab43ae2fe895513d918e0c6280ed0
Author: Krzysztof Mrozowicz <mrozowik at pld-linux.org>
Date: Tue Apr 29 11:14:04 2025 +0000
- up to 3.2.0
PySolFC.spec | 22 +++++++++++++++++-----
1 file changed, 17 insertions(+), 5 deletions(-)
---
diff --git a/PySolFC.spec b/PySolFC.spec
index e989306..88d5b60 100644
--- a/PySolFC.spec
+++ b/PySolFC.spec
@@ -1,16 +1,16 @@
-%define cardsets_minimal_ver 2.2.0
+%define cardsets_minimal_ver 3.0.0
Summary: A collection of solitare card games
Name: PySolFC
-Version: 2.20.1
-Release: 5
+Version: 3.2.0
+Release: 1
License: GPL v2+
Group: Applications/Games
URL: http://pysolfc.sourceforge.net/
Source0: http://downloads.sourceforge.net/pysolfc/%{name}-%{version}.tar.xz
-# Source0-md5: d913fdaeeb3d736701fd7684652c0a5f
+# Source0-md5: db3be4114c10a7f066826091417ed35d
Source1: https://downloads.sourceforge.net/pysolfc/PySolFC-Cardsets--Minimal-%{cardsets_minimal_ver}.tar.xz
-# Source1-md5: 74ce380505393a5538b25cccb2ea1682
+# Source1-md5: 0bdd0de61bfe5a97ad9eb10516f7356a
Patch0: pysolfc-setup.py-noglade.patch
BuildRequires: python3-devel
BuildRequires: python3-modules
@@ -22,6 +22,8 @@ Requires: python3-tkinter
Requires: tcl
Requires: tix
Requires: tk
+Requires(post,postun): desktop-file-utils
+Requires(post,postun): gtk-update-icon-cache
Provides: pysol = %{version}-%{release}
Provides: pysol-sound-server = %{version}-%{release}
Obsoletes: pysol < 5
@@ -37,12 +39,22 @@ 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.
+%post
+%update_icon_cache hicolor
+%update_desktop_database_post
+
+%postun
+%update_icon_cache hicolor
+%update_desktop_database_postun
+
%prep
%setup -q -a1
%patch -P 0 -p0
%build
%py3_build
+# fixing shebang - this probably can be done in a nicer way
+%{__sed} -i '1s,python$,%{__python3},' build-3/scripts-3.13/pysol.py
%install
rm -rf $RPM_BUILD_ROOT
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/PySolFC.git/commitdiff/7b22864cf1fab43ae2fe895513d918e0c6280ed0
More information about the pld-cvs-commit
mailing list