1 |
%define url_ver %{lua: ver = rpm.expand("%{version}"); majmin, count1 = string.gsub(ver, "^([0123456789]+%.[0123456789]+).*", "%1", 1); if count1 == 0 then print(ver); return; end; maj, count2 = string.gsub(majmin, "^([0123456789]+).*", "%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.9 |
6 |
Release: %mkrel 7 |
7 |
Group: Games/Cards |
8 |
License: GPLv3+ |
9 |
Url: https://wiki.gnome.org/Apps/Aisleriot |
10 |
Source0: https://download.gnome.org/sources/%{name}/%{url_ver}/%{name}-%{version}.tar.xz |
11 |
Patch0: aisleriot-3.16.2-fix-linking.patch |
12 |
Patch1: aisleriot-guile3.0.patch |
13 |
BuildRequires: pkgconfig(cairo) |
14 |
BuildRequires: pkgconfig(gmodule-2.0) |
15 |
BuildRequires: pkgconfig(gobject-2.0) |
16 |
BuildRequires: pkgconfig(gthread-2.0) |
17 |
BuildRequires: pkgconfig(gtk+-3.0) |
18 |
BuildRequires: pkgconfig(guile-3.0) |
19 |
BuildRequires: pkgconfig(ice) |
20 |
BuildRequires: pkgconfig(libcanberra-gtk3) |
21 |
BuildRequires: pkgconfig(librsvg-2.0) |
22 |
BuildRequires: pkgconfig(sm) |
23 |
BuildRequires: pkgconfig(Qt5Svg) |
24 |
BuildRequires: intltool |
25 |
BuildRequires: yelp-tools |
26 |
BuildRequires: itstool |
27 |
BuildRequires: gnome-doc-utils |
28 |
BuildRequires: docbook-dtds |
29 |
BuildRequires: rpm-mageia-setup-build >= 1.144 |
30 |
BuildRequires: gnome-common |
31 |
# For autoreconf, due to Patch0 |
32 |
BuildRequires: gettext-devel |
33 |
BuildRequires: appdata-tools |
34 |
# For help |
35 |
Requires: yelp |
36 |
# For solitaire (mga#25086) |
37 |
Requires: PySolFC-cardsets |
38 |
|
39 |
%description |
40 |
Aisleriot (also known as Solitaire or sol) is a collection of card games |
41 |
which are easy to play with the aid of a mouse. The rules for the games |
42 |
have been coded for your pleasure in the GNOME scripting language (Scheme). |
43 |
|
44 |
%prep |
45 |
%autosetup -p1 |
46 |
|
47 |
%build |
48 |
NOCONFIGURE=1 gnome-autogen.sh |
49 |
%configure \ |
50 |
--with-platform=gtk-only \ |
51 |
--with-card-theme-formats=svg,fixed,pysol \ |
52 |
--with-pysol-card-theme-path=%{_datadir}/PySolFC \ |
53 |
--disable-schemas-compile \ |
54 |
--disable-static |
55 |
%make_build |
56 |
|
57 |
%install |
58 |
%make_install |
59 |
|
60 |
#fix .desktop file |
61 |
desktop-file-edit %{buildroot}%{_datadir}/applications/sol.desktop |
62 |
|
63 |
%find_lang %{name} --with-gnome |
64 |
|
65 |
%files -f %{name}.lang |
66 |
%{_bindir}/sol |
67 |
%{_libdir}/%{name}/ |
68 |
%{_libexecdir}/%{name}/ |
69 |
%{_libdir}/valgrind/%{name}.supp |
70 |
%{_datadir}/applications/sol.desktop |
71 |
%{_datadir}/glib-2.0/schemas/org.gnome.Patience.WindowState.gschema.xml |
72 |
%{_iconsdir}/hicolor/*/apps/* |
73 |
%{_mandir}/man6/sol.* |
74 |
%{_datadir}/%{name}/ |
75 |
%{_datadir}/metainfo/sol.appdata.xml |