]> git.pld-linux.org Git - packages/aisleriot.git/blob - aisleriot.spec
ed8bb06e9ef4129a3a879d5a1eac0844fc0460c2
[packages/aisleriot.git] / aisleriot.spec
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.9
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:  121678a799d027640ddfb267384440b5
14 Patch0:         guile3.0.patch
15 URL:            https://wiki.gnome.org/Apps/Aisleriot
16 BuildRequires:  GConf2-devel >= 2.0
17 %{?with_qt:BuildRequires:       Qt5Svg-devel >= 5.0.0}
18 BuildRequires:  autoconf >= 2.53
19 BuildRequires:  automake >= 1:1.9
20 BuildRequires:  cairo-devel >= 1.10.0
21 BuildRequires:  desktop-file-utils
22 BuildRequires:  gettext-tools
23 BuildRequires:  glib2-devel >= 1:2.32.0
24 BuildRequires:  gnome-common
25 BuildRequires:  gtk+3-devel >= 3.18.0
26 BuildRequires:  guile-devel >= 5:2.2
27 BuildRequires:  intltool >= 0.40.0
28 BuildRequires:  itstool
29 BuildRequires:  libcanberra-gtk3-devel >= 0.26
30 BuildRequires:  librsvg-devel >= 2.32.0
31 BuildRequires:  libstdc++-devel
32 BuildRequires:  libtool >= 2:2.2
33 BuildRequires:  libxml2-progs
34 BuildRequires:  pkgconfig >= 1:0.15
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
40 Requires(post,preun):   GConf2 >= 2.0
41 Requires(post,postun):  glib2 >= 1:2.32.0
42 Requires(post,postun):  gtk-update-icon-cache
43 Requires:       cairo >= 1.10.0
44 Requires:       glib2 >= 1:2.32.0
45 Requires:       gtk+3 >= 3.18.0
46 Requires:       guile >= 5:2.2
47 Requires:       hicolor-icon-theme
48 Requires:       libcanberra-gtk3 >= 0.26
49 Requires:       librsvg >= 2.32.0
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
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
78 %prep
79 %setup -q
80 %patch0 -p1
81
82 %build
83 %{__intltoolize}
84 %{__libtoolize}
85 %{__aclocal} -I m4
86 %{__autoconf}
87 %{__autoheader}
88 %{__automake}
89 bash %configure \
90         --disable-silent-rules \
91         --with-card-theme-formats=svg,fixed,pysol%{?with_qt:,kde,native} \
92         --with-kde-card-theme-path=%{_datadir}/apps/carddecks \
93         --with-pysol-card-theme-path=%{_datadir}/pysol \
94         --with-guile="3.0"
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
109 %update_icon_cache HighContrast
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
118 %update_icon_cache HighContrast
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
126 %if "%{_libexecdir}" != "%{_libdir}"
127 %dir %{_libexecdir}/aisleriot
128 %endif
129 %attr(755,root,root) %{_libexecdir}/aisleriot/ar-cards-renderer
130 %dir %{_libdir}/aisleriot
131 %{_libdir}/aisleriot/guile
132 %{_sysconfdir}/gconf/schemas/aisleriot.schemas
133 %{_datadir}/aisleriot
134 %{_datadir}/glib-2.0/schemas/org.gnome.Patience.WindowState.gschema.xml
135 %{_datadir}/metainfo/sol.appdata.xml
136 %{_desktopdir}/sol.desktop
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
140 %{_mandir}/man6/sol.6*
141
142 %files -n valgrind-aisleriot
143 %defattr(644,root,root,755)
144 %{_libdir}/valgrind/aisleriot.supp
This page took 0.046586 seconds and 2 git commands to generate.