]> git.pld-linux.org Git - packages/aisleriot.git/blame - aisleriot.spec
- enable building with guile 3.0, rel 2
[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
9737403e 8Version: 3.22.9
a789ebe4 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
9737403e 13# Source0-md5: 121678a799d027640ddfb267384440b5
a789ebe4 14Patch0: guile3.0.patch
ca1f6c85 15URL: https://wiki.gnome.org/Apps/Aisleriot
9aef4105
JB
16BuildRequires: GConf2-devel >= 2.0
17%{?with_qt:BuildRequires: Qt5Svg-devel >= 5.0.0}
de77fa88
MB
18BuildRequires: autoconf >= 2.53
19BuildRequires: automake >= 1:1.9
20BuildRequires: cairo-devel >= 1.10.0
92f8de87 21BuildRequires: desktop-file-utils
78cbcbf8 22BuildRequires: gettext-tools
40994bfc 23BuildRequires: glib2-devel >= 1:2.32.0
de77fa88 24BuildRequires: gnome-common
9737403e 25BuildRequires: gtk+3-devel >= 3.18.0
ffbb2f40 26BuildRequires: guile-devel >= 5:2.2
de77fa88 27BuildRequires: intltool >= 0.40.0
fa028694 28BuildRequires: itstool
de77fa88
MB
29BuildRequires: libcanberra-gtk3-devel >= 0.26
30BuildRequires: librsvg-devel >= 2.32.0
92f8de87 31BuildRequires: libstdc++-devel
9737403e 32BuildRequires: libtool >= 2:2.2
92f8de87
JB
33BuildRequires: libxml2-progs
34BuildRequires: pkgconfig >= 1:0.15
de77fa88
MB
35BuildRequires: rpmbuild(find_lang) >= 1.35
36BuildRequires: rpmbuild(macros) >= 1.311
37BuildRequires: tar >= 1:1.22
38BuildRequires: xz
39BuildRequires: yelp-tools >= 3.2.0
9aef4105 40Requires(post,preun): GConf2 >= 2.0
92f8de87 41Requires(post,postun): glib2 >= 1:2.32.0
754f16f1 42Requires(post,postun): gtk-update-icon-cache
92f8de87 43Requires: cairo >= 1.10.0
40994bfc 44Requires: glib2 >= 1:2.32.0
9737403e 45Requires: gtk+3 >= 3.18.0
ffbb2f40 46Requires: guile >= 5:2.2
de77fa88 47Requires: hicolor-icon-theme
92f8de87
JB
48Requires: libcanberra-gtk3 >= 0.26
49Requires: librsvg >= 2.32.0
de77fa88
MB
50Provides: gnome-games-sol = %{version}
51Obsoletes: gnome-games-sol
52BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
53
54%description
55Aisleriot (also known as Solitaire or sol) is a collection of card
56games which are easy to play with the aid of a mouse. The rules for
57the games have been coded for your pleasure in the GNOME scripting
58language (Scheme).
59
92f8de87
JB
60%description -l pl.UTF-8
61Aisleriot (znany także jako Pasjans, Solitaire lub sol) to kolekcja
62gier karcianych, łatwych do rozgrywania przy pomocy myszy. Zasady gier
63zostały zakodowane w języku skryptowym GNOME (Scheme).
64
65%package -n valgrind-aisleriot
66Summary: Aisleriot support for Valgrind
67Summary(pl.UTF-8): Obsługa Aisleriota dla Valgrinda
68Group: Development/Libraries
69Requires: %{name} = %{version}-%{release}
70Requires: valgrind
71
72%description -n valgrind-aisleriot
73Aisleriot support for Valgrind.
74
75%description -n valgrind-aisleriot -l pl.UTF-8
76Obsł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 89bash %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
98rm -rf $RPM_BUILD_ROOT
99
100%{__make} install \
101 DESTDIR=$RPM_BUILD_ROOT
102
103%find_lang %{name} --with-gnome
104
105%clean
106rm -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
This page took 0.103277 seconds and 4 git commands to generate.