]>
Commit | Line | Data |
---|---|---|
9aef4105 JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_with qt # Support for QtSvg based formats (kde,native) | |
4 | # | |
de77fa88 | 5 | Summary: A collection of card games |
92f8de87 | 6 | Summary(pl.UTF-8): Kolekcja gier karcianych |
de77fa88 | 7 | Name: aisleriot |
52d1bad8 | 8 | Version: 3.22.1 |
92f8de87 | 9 | Release: 1 |
de77fa88 MB |
10 | License: GPL v3+ and LGPL v3+ and GFDL |
11 | Group: X11/Applications/Games | |
52d1bad8 MB |
12 | Source0: http://ftp.gnome.org/pub/GNOME/sources/aisleriot/3.22/%{name}-%{version}.tar.xz |
13 | # Source0-md5: 45dfa5af56454529d8216972958e9245 | |
ca1f6c85 | 14 | URL: https://wiki.gnome.org/Apps/Aisleriot |
9aef4105 JB |
15 | BuildRequires: GConf2-devel >= 2.0 |
16 | %{?with_qt:BuildRequires: Qt5Svg-devel >= 5.0.0} | |
de77fa88 MB |
17 | BuildRequires: autoconf >= 2.53 |
18 | BuildRequires: automake >= 1:1.9 | |
19 | BuildRequires: cairo-devel >= 1.10.0 | |
92f8de87 | 20 | BuildRequires: desktop-file-utils |
78cbcbf8 | 21 | BuildRequires: gettext-tools |
40994bfc | 22 | BuildRequires: glib2-devel >= 1:2.32.0 |
de77fa88 | 23 | BuildRequires: gnome-common |
f73c2984 | 24 | BuildRequires: gtk+3-devel >= 3.4.0 |
de77fa88 MB |
25 | BuildRequires: guile-devel >= 5:2.0 |
26 | BuildRequires: intltool >= 0.40.0 | |
fa028694 | 27 | BuildRequires: itstool |
de77fa88 MB |
28 | BuildRequires: libcanberra-gtk3-devel >= 0.26 |
29 | BuildRequires: librsvg-devel >= 2.32.0 | |
92f8de87 | 30 | BuildRequires: libstdc++-devel |
de77fa88 | 31 | BuildRequires: libtool |
92f8de87 JB |
32 | BuildRequires: libxml2-progs |
33 | BuildRequires: pkgconfig >= 1:0.15 | |
de77fa88 MB |
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 | |
9aef4105 | 39 | Requires(post,preun): GConf2 >= 2.0 |
92f8de87 | 40 | Requires(post,postun): glib2 >= 1:2.32.0 |
754f16f1 | 41 | Requires(post,postun): gtk-update-icon-cache |
92f8de87 | 42 | Requires: cairo >= 1.10.0 |
40994bfc | 43 | Requires: glib2 >= 1:2.32.0 |
92f8de87 | 44 | Requires: gtk+3 >= 3.4.0 |
de77fa88 MB |
45 | Requires: guile >= 5:2.0 |
46 | Requires: hicolor-icon-theme | |
92f8de87 JB |
47 | Requires: libcanberra-gtk3 >= 0.26 |
48 | Requires: librsvg >= 2.32.0 | |
de77fa88 MB |
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 | ||
92f8de87 JB |
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 | ||
de77fa88 MB |
77 | %prep |
78 | %setup -q | |
79 | ||
80 | %build | |
81 | %{__intltoolize} | |
82 | %{__libtoolize} | |
83 | %{__aclocal} -I m4 | |
84 | %{__autoconf} | |
85 | %{__autoheader} | |
86 | %{__automake} | |
92f8de87 | 87 | bash %configure \ |
de77fa88 | 88 | --disable-silent-rules \ |
9aef4105 JB |
89 | --with-card-theme-formats=svg,fixed,pysol%{?with_qt:,kde,native} \ |
90 | --with-kde-card-theme-path=%{_datadir}/apps/carddecks \ | |
ca1f6c85 | 91 | --with-pysol-card-theme-path=%{_datadir}/pysol \ |
de77fa88 MB |
92 | --with-guile="2.0" |
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 | |
ca1f6c85 | 107 | %update_icon_cache HighContrast |
de77fa88 MB |
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 | |
ca1f6c85 | 116 | %update_icon_cache HighContrast |
de77fa88 MB |
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 %{_libdir}/aisleriot | |
125 | %attr(755,root,root) %{_libdir}/aisleriot/ar-cards-renderer | |
40994bfc | 126 | %{_libdir}/aisleriot/guile |
de77fa88 MB |
127 | %{_sysconfdir}/gconf/schemas/aisleriot.schemas |
128 | %{_datadir}/aisleriot | |
92f8de87 | 129 | %{_datadir}/appdata/sol.appdata.xml |
de77fa88 | 130 | %{_datadir}/glib-2.0/schemas/org.gnome.Patience.WindowState.gschema.xml |
de77fa88 | 131 | %{_desktopdir}/sol.desktop |
92f8de87 JB |
132 | %{_iconsdir}/hicolor/*x*/apps/gnome-aisleriot.png |
133 | %{_iconsdir}/hicolor/*x*/apps/gnome-freecell.png | |
134 | %{_iconsdir}/hicolor/symbolic/apps/gnome-aisleriot-symbolic.svg | |
de77fa88 | 135 | %{_mandir}/man6/sol.6* |
92f8de87 JB |
136 | |
137 | %files -n valgrind-aisleriot | |
138 | %defattr(644,root,root,755) | |
139 | %{_libdir}/valgrind/aisleriot.supp |