]> git.pld-linux.org Git - packages/PySolFC.git/blob - PySolFC.spec
- remove spurious edpendency, rel 3
[packages/PySolFC.git] / PySolFC.spec
1 %define         cardsets_minimal_ver    2.2.0
2
3 Summary:        A collection of solitare card games
4 Name:           PySolFC
5 Version:        2.20.1
6 Release:        3
7 License:        GPL v2+
8 Group:          Applications/Games
9 URL:            http://pysolfc.sourceforge.net/
10 Source0:        http://downloads.sourceforge.net/pysolfc/%{name}-%{version}.tar.xz
11 # Source0-md5:  d913fdaeeb3d736701fd7684652c0a5f
12 Source1:        https://downloads.sourceforge.net/pysolfc/PySolFC-Cardsets--Minimal-%{cardsets_minimal_ver}.tar.xz
13 # Source1-md5:  74ce380505393a5538b25cccb2ea1682
14 Patch0:         pysolfc-setup.py-noglade.patch
15 BuildRequires:  python3-devel
16 BuildRequires:  python3-modules
17 BuildRequires:  rpm-pythonprov
18 BuildRequires:  rpmbuild(macros) >= 1.710
19 Requires:       python3-modules
20 Requires:       python3-pillow-tk
21 Requires:       python3-tkinter
22 Requires:       tcl
23 Requires:       tix
24 Requires:       tk
25 Provides:       pysol = %{version}-%{release}
26 Provides:       pysol-sound-server = %{version}-%{release}
27 Obsoletes:      pysol < 5
28 Obsoletes:      pysol-sound-server < 5
29 BuildArch:      noarch
30 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31
32 %description
33 PySolFC (PySol Fan Club) is a collection of more than 1000 solitaire
34 card games. It is a fork of PySol solitare. Its features include
35 modern look and feel (uses Tile widget set), multiple cardsets and
36 tableau backgrounds, sound, unlimited undo, player statistics, a hint
37 system, demo games, a solitaire wizard, support for user written
38 plug-ins, an integrated HTML help browser, and lots of documentation.
39
40 %prep
41 %setup -q -a1
42 %patch0 -p0
43
44 %build
45 %py3_build
46
47 %install
48 rm -rf $RPM_BUILD_ROOT
49
50 %py3_install
51
52 cp -a PySolFC-Cardsets--Minimal-%{cardsets_minimal_ver}/cardset-* $RPM_BUILD_ROOT%{_datadir}/PySolFC
53
54 # Not used in installed code
55 %{__sed} -i '/pycotap/d' $RPM_BUILD_ROOT%{py3_sitescriptdir}/PySolFC-*.egg-info/requires.txt
56
57 %find_lang pysol
58
59 %clean
60 rm -rf $RPM_BUILD_ROOT
61
62 %files -f pysol.lang
63 %defattr(644,root,root,755)
64 %doc AUTHORS.md NEWS.asciidoc README.md
65 %attr(755,root,root) %{_bindir}/pysol.py
66 %{py3_sitescriptdir}/pysollib
67 %{py3_sitescriptdir}/PySolFC-*.egg-info
68
69 %dir %{_datadir}/%{name}
70 %{_datadir}/%{name}/cardset-*
71 %{_datadir}/%{name}/html
72 %{_datadir}/%{name}/images
73 %{_datadir}/%{name}/sound
74 %{_datadir}/%{name}/tcl
75 %{_datadir}/%{name}/themes
76 %{_datadir}/%{name}/tiles
77
78 %{_desktopdir}/*.desktop
79 %{_iconsdir}/hicolor/*x*/apps/pysol.png
This page took 0.166094 seconds and 3 git commands to generate.