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