]>
Commit | Line | Data |
---|---|---|
de77fa88 MB |
1 | Summary: A collection of card games |
2 | Name: aisleriot | |
0b138520 | 3 | Version: 3.12.1 |
de77fa88 MB |
4 | Release: 1 |
5 | License: GPL v3+ and LGPL v3+ and GFDL | |
6 | Group: X11/Applications/Games | |
ca1f6c85 | 7 | Source0: http://ftp.gnome.org/pub/GNOME/sources/aisleriot/3.12/%{name}-%{version}.tar.xz |
0b138520 | 8 | # Source0-md5: 439d677774ffbefda6290972b48c9235 |
ca1f6c85 | 9 | URL: https://wiki.gnome.org/Apps/Aisleriot |
de77fa88 MB |
10 | BuildRequires: GConf2-devel |
11 | BuildRequires: autoconf >= 2.53 | |
12 | BuildRequires: automake >= 1:1.9 | |
13 | BuildRequires: cairo-devel >= 1.10.0 | |
78cbcbf8 | 14 | BuildRequires: gettext-tools |
40994bfc | 15 | BuildRequires: glib2-devel >= 1:2.32.0 |
de77fa88 | 16 | BuildRequires: gnome-common |
f73c2984 | 17 | BuildRequires: gtk+3-devel >= 3.4.0 |
de77fa88 MB |
18 | BuildRequires: guile-devel >= 5:2.0 |
19 | BuildRequires: intltool >= 0.40.0 | |
fa028694 | 20 | BuildRequires: itstool |
de77fa88 MB |
21 | BuildRequires: libcanberra-gtk3-devel >= 0.26 |
22 | BuildRequires: librsvg-devel >= 2.32.0 | |
23 | BuildRequires: libtool | |
24 | BuildRequires: pkgconfig | |
25 | BuildRequires: rpmbuild(find_lang) >= 1.35 | |
26 | BuildRequires: rpmbuild(macros) >= 1.311 | |
27 | BuildRequires: tar >= 1:1.22 | |
28 | BuildRequires: xz | |
29 | BuildRequires: yelp-tools >= 3.2.0 | |
30 | Requires(post,preun): GConf2 | |
31 | Requires(post,postun): glib2 >= 1:2.26.0 | |
754f16f1 | 32 | Requires(post,postun): gtk-update-icon-cache |
40994bfc | 33 | Requires: glib2 >= 1:2.32.0 |
de77fa88 MB |
34 | Requires: guile >= 5:2.0 |
35 | Requires: hicolor-icon-theme | |
de77fa88 MB |
36 | Provides: gnome-games-sol = %{version} |
37 | Obsoletes: gnome-games-sol | |
38 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
39 | ||
40 | %description | |
41 | Aisleriot (also known as Solitaire or sol) is a collection of card | |
42 | games which are easy to play with the aid of a mouse. The rules for | |
43 | the games have been coded for your pleasure in the GNOME scripting | |
44 | language (Scheme). | |
45 | ||
46 | %prep | |
47 | %setup -q | |
48 | ||
49 | %build | |
50 | %{__intltoolize} | |
51 | %{__libtoolize} | |
52 | %{__aclocal} -I m4 | |
53 | %{__autoconf} | |
54 | %{__autoheader} | |
55 | %{__automake} | |
56 | %configure \ | |
57 | --disable-silent-rules \ | |
ca1f6c85 | 58 | --with-pysol-card-theme-path=%{_datadir}/pysol \ |
de77fa88 MB |
59 | --with-guile="2.0" |
60 | %{__make} -j1 | |
61 | ||
62 | %install | |
63 | rm -rf $RPM_BUILD_ROOT | |
64 | ||
65 | %{__make} install \ | |
66 | DESTDIR=$RPM_BUILD_ROOT | |
67 | ||
68 | %find_lang %{name} --with-gnome | |
69 | ||
70 | %clean | |
71 | rm -rf $RPM_BUILD_ROOT | |
72 | ||
73 | %post | |
ca1f6c85 | 74 | %update_icon_cache HighContrast |
de77fa88 MB |
75 | %update_icon_cache hicolor |
76 | %gconf_schema_install aisleriot.schemas | |
77 | %glib_compile_schemas | |
78 | ||
79 | %preun | |
80 | %gconf_schema_uninstall aisleriot.schemas | |
81 | ||
82 | %postun | |
ca1f6c85 | 83 | %update_icon_cache HighContrast |
de77fa88 MB |
84 | %update_icon_cache hicolor |
85 | %glib_compile_schemas | |
86 | ||
87 | %files -f %{name}.lang | |
88 | %defattr(644,root,root,755) | |
89 | %doc AUTHORS ChangeLog NEWS TODO | |
90 | %attr(755,root,root) %{_bindir}/sol | |
91 | %dir %{_libdir}/aisleriot | |
92 | %attr(755,root,root) %{_libdir}/aisleriot/ar-cards-renderer | |
40994bfc | 93 | %{_libdir}/aisleriot/guile |
de77fa88 MB |
94 | %{_sysconfdir}/gconf/schemas/aisleriot.schemas |
95 | %{_datadir}/aisleriot | |
96 | %{_datadir}/glib-2.0/schemas/org.gnome.Patience.WindowState.gschema.xml | |
de77fa88 MB |
97 | %{_desktopdir}/sol.desktop |
98 | %{_iconsdir}/hicolor/*/*/*.png | |
ca1f6c85 | 99 | %{_iconsdir}/HighContrast/scalable/*/*.svg |
de77fa88 | 100 | %{_mandir}/man6/sol.6* |