]>
Commit | Line | Data |
---|---|---|
1 | # | |
2 | # Conditional build: | |
3 | %bcond_with qt # Support for QtSvg based formats (kde,native) | |
4 | # | |
5 | Summary: A collection of card games | |
6 | Summary(pl.UTF-8): Kolekcja gier karcianych | |
7 | Name: aisleriot | |
8 | Version: 3.22.7 | |
9 | Release: 2 | |
10 | License: GPL v3+ and LGPL v3+ and GFDL | |
11 | Group: X11/Applications/Games | |
12 | Source0: http://ftp.gnome.org/pub/GNOME/sources/aisleriot/3.22/%{name}-%{version}.tar.xz | |
13 | # Source0-md5: d62c15ea4e30afcda4fd94e8f440336e | |
14 | URL: https://wiki.gnome.org/Apps/Aisleriot | |
15 | BuildRequires: GConf2-devel >= 2.0 | |
16 | %{?with_qt:BuildRequires: Qt5Svg-devel >= 5.0.0} | |
17 | BuildRequires: autoconf >= 2.53 | |
18 | BuildRequires: automake >= 1:1.9 | |
19 | BuildRequires: cairo-devel >= 1.10.0 | |
20 | BuildRequires: desktop-file-utils | |
21 | BuildRequires: gettext-tools | |
22 | BuildRequires: glib2-devel >= 1:2.32.0 | |
23 | BuildRequires: gnome-common | |
24 | BuildRequires: gtk+3-devel >= 3.4.0 | |
25 | BuildRequires: guile-devel >= 5:2.2 | |
26 | BuildRequires: intltool >= 0.40.0 | |
27 | BuildRequires: itstool | |
28 | BuildRequires: libcanberra-gtk3-devel >= 0.26 | |
29 | BuildRequires: librsvg-devel >= 2.32.0 | |
30 | BuildRequires: libstdc++-devel | |
31 | BuildRequires: libtool | |
32 | BuildRequires: libxml2-progs | |
33 | BuildRequires: pkgconfig >= 1:0.15 | |
34 | BuildRequires: rpmbuild(find_lang) >= 1.35 | |
35 | BuildRequires: rpmbuild(macros) >= 1.311 | |
36 | BuildRequires: tar >= 1:1.22 | |
37 | BuildRequires: xz | |
38 | BuildRequires: yelp-tools >= 3.2.0 | |
39 | Requires(post,preun): GConf2 >= 2.0 | |
40 | Requires(post,postun): glib2 >= 1:2.32.0 | |
41 | Requires(post,postun): gtk-update-icon-cache | |
42 | Requires: cairo >= 1.10.0 | |
43 | Requires: glib2 >= 1:2.32.0 | |
44 | Requires: gtk+3 >= 3.4.0 | |
45 | Requires: guile >= 5:2.2 | |
46 | Requires: hicolor-icon-theme | |
47 | Requires: libcanberra-gtk3 >= 0.26 | |
48 | Requires: librsvg >= 2.32.0 | |
49 | Provides: gnome-games-sol = %{version} | |
50 | Obsoletes: gnome-games-sol | |
51 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
52 | ||
53 | %description | |
54 | Aisleriot (also known as Solitaire or sol) is a collection of card | |
55 | games which are easy to play with the aid of a mouse. The rules for | |
56 | the games have been coded for your pleasure in the GNOME scripting | |
57 | language (Scheme). | |
58 | ||
59 | %description -l pl.UTF-8 | |
60 | Aisleriot (znany także jako Pasjans, Solitaire lub sol) to kolekcja | |
61 | gier karcianych, łatwych do rozgrywania przy pomocy myszy. Zasady gier | |
62 | zostały zakodowane w języku skryptowym GNOME (Scheme). | |
63 | ||
64 | %package -n valgrind-aisleriot | |
65 | Summary: Aisleriot support for Valgrind | |
66 | Summary(pl.UTF-8): Obsługa Aisleriota dla Valgrinda | |
67 | Group: Development/Libraries | |
68 | Requires: %{name} = %{version}-%{release} | |
69 | Requires: valgrind | |
70 | ||
71 | %description -n valgrind-aisleriot | |
72 | Aisleriot support for Valgrind. | |
73 | ||
74 | %description -n valgrind-aisleriot -l pl.UTF-8 | |
75 | Obsługa Aisleriota dla Valgrinda. | |
76 | ||
77 | %prep | |
78 | %setup -q | |
79 | ||
80 | %build | |
81 | %{__intltoolize} | |
82 | %{__libtoolize} | |
83 | %{__aclocal} -I m4 | |
84 | %{__autoconf} | |
85 | %{__autoheader} | |
86 | %{__automake} | |
87 | bash %configure \ | |
88 | --disable-silent-rules \ | |
89 | --with-card-theme-formats=svg,fixed,pysol%{?with_qt:,kde,native} \ | |
90 | --with-kde-card-theme-path=%{_datadir}/apps/carddecks \ | |
91 | --with-pysol-card-theme-path=%{_datadir}/pysol \ | |
92 | --with-guile="2.2" | |
93 | %{__make} -j1 | |
94 | ||
95 | %install | |
96 | rm -rf $RPM_BUILD_ROOT | |
97 | ||
98 | %{__make} install \ | |
99 | DESTDIR=$RPM_BUILD_ROOT | |
100 | ||
101 | %find_lang %{name} --with-gnome | |
102 | ||
103 | %clean | |
104 | rm -rf $RPM_BUILD_ROOT | |
105 | ||
106 | %post | |
107 | %update_icon_cache HighContrast | |
108 | %update_icon_cache hicolor | |
109 | %gconf_schema_install aisleriot.schemas | |
110 | %glib_compile_schemas | |
111 | ||
112 | %preun | |
113 | %gconf_schema_uninstall aisleriot.schemas | |
114 | ||
115 | %postun | |
116 | %update_icon_cache HighContrast | |
117 | %update_icon_cache hicolor | |
118 | %glib_compile_schemas | |
119 | ||
120 | %files -f %{name}.lang | |
121 | %defattr(644,root,root,755) | |
122 | %doc AUTHORS ChangeLog NEWS TODO | |
123 | %attr(755,root,root) %{_bindir}/sol | |
124 | %dir %{_libexecdir}/aisleriot | |
125 | %attr(755,root,root) %{_libexecdir}/aisleriot/ar-cards-renderer | |
126 | %dir %{_libdir}/aisleriot | |
127 | %{_libdir}/aisleriot/guile | |
128 | %{_sysconfdir}/gconf/schemas/aisleriot.schemas | |
129 | %{_datadir}/aisleriot | |
130 | %{_datadir}/glib-2.0/schemas/org.gnome.Patience.WindowState.gschema.xml | |
131 | %{_datadir}/metainfo/sol.appdata.xml | |
132 | %{_desktopdir}/sol.desktop | |
133 | %{_iconsdir}/hicolor/*x*/apps/gnome-aisleriot.png | |
134 | %{_iconsdir}/hicolor/*x*/apps/gnome-freecell.png | |
135 | %{_iconsdir}/hicolor/symbolic/apps/gnome-aisleriot-symbolic.svg | |
136 | %{_mandir}/man6/sol.6* | |
137 | ||
138 | %files -n valgrind-aisleriot | |
139 | %defattr(644,root,root,755) | |
140 | %{_libdir}/valgrind/aisleriot.supp |