1 |
%define url_ver %{lua: ver = rpm.expand("%{version}"); majmin, count1 = string.gsub(ver, "^(%d+%.%d+).*", "%1", 1); if count1 == 0 then print(ver); return; end; maj, count2 = string.gsub(majmin, "^(%d+).*", "%1", 1); if count2 == 0 then print(majmin) elseif tonumber(majmin) < 40 then print(majmin) else print(maj) end} |
2 |
|
3 |
Name: aisleriot |
4 |
Summary: A compilation of solitaire card games |
5 |
Version: 3.22.29 |
6 |
Release: %mkrel 1 |
7 |
Group: Games/Cards |
8 |
License: GPLv3+ |
9 |
Url: https://wiki.gnome.org/Apps/Aisleriot |
10 |
Source0: https://gitlab.gnome.org/GNOME/aisleriot/-/archive/%{version}/aisleriot-%{version}.tar.gz |
11 |
BuildRequires: meson |
12 |
BuildRequires: pkgconfig(cairo) |
13 |
BuildRequires: pkgconfig(gmodule-2.0) |
14 |
BuildRequires: pkgconfig(gobject-2.0) |
15 |
BuildRequires: pkgconfig(gthread-2.0) |
16 |
BuildRequires: pkgconfig(gtk+-3.0) |
17 |
BuildRequires: pkgconfig(guile-3.0) |
18 |
BuildRequires: pkgconfig(ice) |
19 |
BuildRequires: pkgconfig(libcanberra-gtk3) |
20 |
BuildRequires: pkgconfig(librsvg-2.0) |
21 |
BuildRequires: pkgconfig(sm) |
22 |
BuildRequires: pkgconfig(Qt5Svg) |
23 |
BuildRequires: intltool |
24 |
BuildRequires: yelp-tools |
25 |
BuildRequires: itstool |
26 |
BuildRequires: gnome-doc-utils |
27 |
BuildRequires: docbook-dtds |
28 |
BuildRequires: gnome-common |
29 |
BuildRequires: appdata-tools |
30 |
# For help |
31 |
Requires: yelp |
32 |
# For solitaire (mga#25086) |
33 |
Requires: PySolFC-cardsets |
34 |
|
35 |
%description |
36 |
Aisleriot (also known as Solitaire or sol) is a collection of card games |
37 |
which are easy to play with the aid of a mouse. The rules for the games |
38 |
have been coded for your pleasure in the GNOME scripting language (Scheme). |
39 |
|
40 |
%prep |
41 |
%autosetup -p1 |
42 |
|
43 |
%build |
44 |
%meson \ |
45 |
-Dtheme_pysol=true \ |
46 |
-Dtheme_pysol_path=%{_datadir}/PySolFC \ |
47 |
-Dtheme_kde=true \ |
48 |
-Dtheme_kde_path=%{_datadir}/carddecks/ |
49 |
%meson_build |
50 |
|
51 |
%install |
52 |
%meson_install |
53 |
|
54 |
%find_lang %{name} --with-gnome |
55 |
|
56 |
%files -f %{name}.lang |
57 |
%{_bindir}/sol |
58 |
%{_libdir}/%{name}/ |
59 |
%{_libexecdir}/%{name}/ |
60 |
%{_libdir}/valgrind/%{name}.supp |
61 |
%{_datadir}/applications/sol.desktop |
62 |
%{_datadir}/glib-2.0/schemas/org.gnome.Patience.WindowState.gschema.xml |
63 |
%{_iconsdir}/hicolor/*/apps/* |
64 |
%{_mandir}/man6/sol* |
65 |
%{_datadir}/%{name}/ |
66 |
%{_metainfodir}/sol.metainfo.xml |