- rel 2; one more dir
[packages/aisleriot.git] / aisleriot.spec
CommitLineData
9aef4105
JB
1#
2# Conditional build:
3%bcond_with qt # Support for QtSvg based formats (kde,native)
4#
de77fa88 5Summary: A collection of card games
92f8de87 6Summary(pl.UTF-8): Kolekcja gier karcianych
de77fa88 7Name: aisleriot
ffbb2f40 8Version: 3.22.7
bb4989a6 9Release: 2
de77fa88
MB
10License: GPL v3+ and LGPL v3+ and GFDL
11Group: X11/Applications/Games
52d1bad8 12Source0: http://ftp.gnome.org/pub/GNOME/sources/aisleriot/3.22/%{name}-%{version}.tar.xz
ffbb2f40 13# Source0-md5: d62c15ea4e30afcda4fd94e8f440336e
ca1f6c85 14URL: https://wiki.gnome.org/Apps/Aisleriot
9aef4105
JB
15BuildRequires: GConf2-devel >= 2.0
16%{?with_qt:BuildRequires: Qt5Svg-devel >= 5.0.0}
de77fa88
MB
17BuildRequires: autoconf >= 2.53
18BuildRequires: automake >= 1:1.9
19BuildRequires: cairo-devel >= 1.10.0
92f8de87 20BuildRequires: desktop-file-utils
78cbcbf8 21BuildRequires: gettext-tools
40994bfc 22BuildRequires: glib2-devel >= 1:2.32.0
de77fa88 23BuildRequires: gnome-common
f73c2984 24BuildRequires: gtk+3-devel >= 3.4.0
ffbb2f40 25BuildRequires: guile-devel >= 5:2.2
de77fa88 26BuildRequires: intltool >= 0.40.0
fa028694 27BuildRequires: itstool
de77fa88
MB
28BuildRequires: libcanberra-gtk3-devel >= 0.26
29BuildRequires: librsvg-devel >= 2.32.0
92f8de87 30BuildRequires: libstdc++-devel
de77fa88 31BuildRequires: libtool
92f8de87
JB
32BuildRequires: libxml2-progs
33BuildRequires: pkgconfig >= 1:0.15
de77fa88
MB
34BuildRequires: rpmbuild(find_lang) >= 1.35
35BuildRequires: rpmbuild(macros) >= 1.311
36BuildRequires: tar >= 1:1.22
37BuildRequires: xz
38BuildRequires: yelp-tools >= 3.2.0
9aef4105 39Requires(post,preun): GConf2 >= 2.0
92f8de87 40Requires(post,postun): glib2 >= 1:2.32.0
754f16f1 41Requires(post,postun): gtk-update-icon-cache
92f8de87 42Requires: cairo >= 1.10.0
40994bfc 43Requires: glib2 >= 1:2.32.0
92f8de87 44Requires: gtk+3 >= 3.4.0
ffbb2f40 45Requires: guile >= 5:2.2
de77fa88 46Requires: hicolor-icon-theme
92f8de87
JB
47Requires: libcanberra-gtk3 >= 0.26
48Requires: librsvg >= 2.32.0
de77fa88
MB
49Provides: gnome-games-sol = %{version}
50Obsoletes: gnome-games-sol
51BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
52
53%description
54Aisleriot (also known as Solitaire or sol) is a collection of card
55games which are easy to play with the aid of a mouse. The rules for
56the games have been coded for your pleasure in the GNOME scripting
57language (Scheme).
58
92f8de87
JB
59%description -l pl.UTF-8
60Aisleriot (znany także jako Pasjans, Solitaire lub sol) to kolekcja
61gier karcianych, łatwych do rozgrywania przy pomocy myszy. Zasady gier
62zostały zakodowane w języku skryptowym GNOME (Scheme).
63
64%package -n valgrind-aisleriot
65Summary: Aisleriot support for Valgrind
66Summary(pl.UTF-8): Obsługa Aisleriota dla Valgrinda
67Group: Development/Libraries
68Requires: %{name} = %{version}-%{release}
69Requires: valgrind
70
71%description -n valgrind-aisleriot
72Aisleriot support for Valgrind.
73
74%description -n valgrind-aisleriot -l pl.UTF-8
75Obsł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 87bash %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 \
ffbb2f40 92 --with-guile="2.2"
de77fa88
MB
93%{__make} -j1
94
95%install
96rm -rf $RPM_BUILD_ROOT
97
98%{__make} install \
99 DESTDIR=$RPM_BUILD_ROOT
100
101%find_lang %{name} --with-gnome
102
103%clean
104rm -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
ffbb2f40
AM
124%dir %{_libexecdir}/aisleriot
125%attr(755,root,root) %{_libexecdir}/aisleriot/ar-cards-renderer
bb4989a6 126%dir %{_libdir}/aisleriot
40994bfc 127%{_libdir}/aisleriot/guile
de77fa88
MB
128%{_sysconfdir}/gconf/schemas/aisleriot.schemas
129%{_datadir}/aisleriot
130%{_datadir}/glib-2.0/schemas/org.gnome.Patience.WindowState.gschema.xml
2694145d 131%{_datadir}/metainfo/sol.appdata.xml
de77fa88 132%{_desktopdir}/sol.desktop
92f8de87
JB
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
de77fa88 136%{_mandir}/man6/sol.6*
92f8de87
JB
137
138%files -n valgrind-aisleriot
139%defattr(644,root,root,755)
140%{_libdir}/valgrind/aisleriot.supp
This page took 0.233003 seconds and 4 git commands to generate.