2011-06-16 10:50:33 +02:00
|
|
|
#
|
|
|
|
# spec file for package aisleriot
|
|
|
|
#
|
2012-02-08 11:57:23 +01:00
|
|
|
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2011-06-16 10:50:33 +02:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
Name: aisleriot
|
2012-02-08 11:57:23 +01:00
|
|
|
Version: 3.3.2
|
2011-12-21 06:03:56 +01:00
|
|
|
Release: 0
|
2012-02-08 11:57:23 +01:00
|
|
|
# FIXME drop sed hack in %%prep on update to > 3.3.2
|
2011-09-22 14:03:29 +02:00
|
|
|
# FIXME: the %%{_datadir}/help/$locale/ files should be found by %%find_lang
|
2011-06-16 10:50:33 +02:00
|
|
|
Summary: Solitaire Card Games for GNOME
|
2011-12-21 06:03:56 +01:00
|
|
|
License: GPL-3.0+
|
2011-06-16 10:50:33 +02:00
|
|
|
Group: Amusements/Games/Board/Card
|
2011-12-21 06:03:56 +01:00
|
|
|
Url: http://www.gnome.org
|
|
|
|
Source0: http://download.gnome.org/sources/aisleriot/3.3/%{name}-%{version}.tar.xz
|
2011-06-16 10:50:33 +02:00
|
|
|
BuildRequires: guile-devel
|
|
|
|
BuildRequires: intltool
|
2011-09-22 14:03:29 +02:00
|
|
|
BuildRequires: itstool
|
2011-06-16 10:50:33 +02:00
|
|
|
BuildRequires: lsb-release
|
|
|
|
# Needed to get lsb data
|
|
|
|
BuildRequires: dummy-release
|
|
|
|
BuildRequires: update-desktop-files
|
|
|
|
BuildRequires: pkgconfig(cairo)
|
|
|
|
BuildRequires: pkgconfig(gconf-2.0)
|
2012-02-08 11:57:23 +01:00
|
|
|
BuildRequires: pkgconfig(gobject-2.0) >= 2.31.13
|
2011-06-16 10:50:33 +02:00
|
|
|
BuildRequires: pkgconfig(gtk+-3.0)
|
|
|
|
BuildRequires: pkgconfig(libcanberra-gtk3)
|
|
|
|
BuildRequires: pkgconfig(librsvg-2.0)
|
2011-11-13 20:15:36 +01:00
|
|
|
Requires: guile
|
2011-11-15 22:46:41 +01:00
|
|
|
Recommends: %{name}-lang
|
2011-06-16 10:50:33 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
%gconf_schemas_prereq
|
|
|
|
%glib2_gsettings_schema_requires
|
|
|
|
|
|
|
|
%description
|
|
|
|
Aisleriot is a compilation of 80 different solitaire card games.
|
|
|
|
|
2011-08-08 15:42:02 +02:00
|
|
|
%package themes
|
|
|
|
Summary: Solitaire Card Games for GNOME -- Extra Themes
|
2012-02-08 11:57:23 +01:00
|
|
|
Group: Amusements/Games/Board/Card
|
2011-08-08 15:42:02 +02:00
|
|
|
Requires: %{name} = %{version}
|
|
|
|
Enhances: %{name}
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description themes
|
|
|
|
Aisleriot is a compilation of 80 different solitaire card games.
|
|
|
|
|
|
|
|
This package provides extra themes for Aisleriot.
|
|
|
|
|
2011-06-16 10:50:33 +02:00
|
|
|
%lang_package
|
|
|
|
%prep
|
|
|
|
%setup -q
|
2012-02-08 11:57:23 +01:00
|
|
|
if test "%{version}" != "3.3.2"; then
|
|
|
|
echo "Sed hack should be dropped."
|
|
|
|
/bin/false
|
|
|
|
fi
|
|
|
|
sed -i "s/HELP_LINGUAS = ca de el en_GB es eu fr gl oc ru sl sr sr@latin sv zh_CN/HELP_LINGUAS = de en_GB fr/g" help/Makefile.am
|
|
|
|
sed -i "s/HELP_LINGUAS = ca de el en_GB es eu fr gl oc ru sl sr sr@latin sv zh_CN/HELP_LINGUAS = de en_GB fr/g" help/Makefile.in
|
2011-06-16 10:50:33 +02:00
|
|
|
|
|
|
|
%build
|
|
|
|
%configure \
|
|
|
|
--disable-schemas-install \
|
2011-11-28 09:28:30 +01:00
|
|
|
--disable-static \
|
|
|
|
--with-guile=auto
|
2011-09-21 17:35:55 +02:00
|
|
|
make %{?_smp_mflags}
|
2011-06-16 10:50:33 +02:00
|
|
|
|
|
|
|
%install
|
|
|
|
%make_install
|
|
|
|
%suse_update_desktop_file -N "FreeCell" -G "Solitaire" freecell
|
|
|
|
%suse_update_desktop_file -N "AisleRiot" -G "Solitaire" sol
|
|
|
|
%find_lang %{name} %{?no_lang_C}
|
|
|
|
%find_gconf_schemas
|
2011-09-22 14:03:29 +02:00
|
|
|
# Localized help
|
|
|
|
for help in %{buildroot}%{_datadir}/help/*/aisleriot/; do
|
|
|
|
LOCALE=`echo $help | sed "s:.*%{_datadir}/help/\([^/]*\)/aisleriot/:\1:g"`
|
|
|
|
echo "%%lang($LOCALE) %%dir %%{_datadir}/help/$LOCALE" >> %{name}.help-lang.tmp
|
|
|
|
echo "%%lang($LOCALE) %%doc /${help##%{buildroot}}" >> %{name}.help-lang.tmp
|
|
|
|
done
|
|
|
|
echo "%%defattr(-,root,root)" > %{name}.help-lang
|
|
|
|
sort -u %{name}.help-lang.tmp | grep -v "^%%lang(C)" >> %{name}.help-lang
|
2011-06-16 10:50:33 +02:00
|
|
|
|
|
|
|
%pre -f aisleriot.schemas_pre
|
|
|
|
|
|
|
|
%post
|
|
|
|
%glib2_gsettings_schema_post
|
|
|
|
%desktop_database_post
|
|
|
|
%icon_theme_cache_post
|
|
|
|
|
|
|
|
%posttrans -f aisleriot.schemas_posttrans
|
|
|
|
|
|
|
|
%preun -f aisleriot.schemas_preun
|
|
|
|
|
|
|
|
%postun
|
|
|
|
%glib2_gsettings_schema_postun
|
|
|
|
%desktop_database_postun
|
|
|
|
%icon_theme_cache_postun
|
|
|
|
|
|
|
|
%files -f aisleriot.schemas_list
|
|
|
|
%defattr(-, root, root)
|
2011-09-22 14:03:29 +02:00
|
|
|
%doc AUTHORS ChangeLog COPYING.GFDL COPYING.GPL3 COPYING.LGPL3
|
|
|
|
%if 0%{?suse_version} <= 1140
|
|
|
|
%doc %dir %{_datadir}/help
|
|
|
|
%doc %dir %{_datadir}/help/C
|
|
|
|
%endif
|
|
|
|
%doc %{_datadir}/help/C/aisleriot/
|
2011-06-16 10:50:33 +02:00
|
|
|
%{_bindir}/sol
|
|
|
|
%{_datadir}/applications/freecell.desktop
|
|
|
|
%{_datadir}/applications/sol.desktop
|
|
|
|
%{_datadir}/aisleriot/
|
|
|
|
%dir %{_libdir}/aisleriot
|
2011-12-21 06:03:56 +01:00
|
|
|
%dir %{_libdir}/aisleriot/guile
|
|
|
|
%dir %{_libdir}/aisleriot/guile/2.0
|
|
|
|
%dir %{_libdir}/aisleriot/guile/2.0/aisleriot
|
|
|
|
%{_libdir}/aisleriot/guile/2.0/aisleriot/api.go
|
|
|
|
%{_libdir}/aisleriot/guile/2.0/*.go
|
2012-02-08 11:57:23 +01:00
|
|
|
%if "%{_libdir}" != "%{_libexecdir}"
|
|
|
|
%dir %{_libexecdir}/aisleriot
|
|
|
|
%endif
|
|
|
|
%{_libexecdir}/aisleriot/ar-cards-renderer
|
2011-06-16 10:50:33 +02:00
|
|
|
%{_datadir}/glib-2.0/schemas/org.gnome.Patience.WindowState.gschema.xml
|
|
|
|
%{_datadir}/icons/hicolor/*/apps/gnome-aisleriot.*
|
|
|
|
%{_datadir}/icons/hicolor/*/apps/gnome-freecell.*
|
|
|
|
%{_mandir}/man?/sol.*
|
2012-02-08 11:57:23 +01:00
|
|
|
# Kind of ugly to own the valgrind directory, but the other solutions (a dep on
|
|
|
|
# valgrind, a subpackage, etc.) are not worth it
|
|
|
|
%dir %{_libdir}/valgrind
|
|
|
|
%{_libdir}/valgrind/aisleriot.supp
|
2011-08-08 15:42:02 +02:00
|
|
|
# Exclude files that are in themes
|
2011-11-28 09:28:30 +01:00
|
|
|
%exclude %{_datadir}/aisleriot/cards/anglo.svgz
|
|
|
|
%exclude %{_datadir}/aisleriot/cards/anglo_bitmap.svgz
|
|
|
|
%exclude %{_datadir}/aisleriot/cards/bellot.svgz
|
|
|
|
%exclude %{_datadir}/aisleriot/cards/bonded.svgz
|
|
|
|
%exclude %{_datadir}/aisleriot/cards/dondorf.svgz
|
|
|
|
%exclude %{_datadir}/aisleriot/cards/gnomangelo_bitmap.svgz
|
|
|
|
%exclude %{_datadir}/aisleriot/cards/ornamental.svgz
|
2011-08-08 15:42:02 +02:00
|
|
|
|
|
|
|
%files themes
|
|
|
|
%defattr(-, root, root)
|
2011-11-28 09:28:30 +01:00
|
|
|
%{_datadir}/aisleriot/cards/anglo.svgz
|
|
|
|
%{_datadir}/aisleriot/cards/anglo_bitmap.svgz
|
|
|
|
%{_datadir}/aisleriot/cards/bellot.svgz
|
|
|
|
%{_datadir}/aisleriot/cards/bonded.svgz
|
|
|
|
%{_datadir}/aisleriot/cards/dondorf.svgz
|
|
|
|
%{_datadir}/aisleriot/cards/gnomangelo_bitmap.svgz
|
|
|
|
%{_datadir}/aisleriot/cards/ornamental.svgz
|
2011-06-16 10:50:33 +02:00
|
|
|
|
2011-09-22 14:03:29 +02:00
|
|
|
%files lang -f aisleriot.lang -f %{name}.help-lang
|
2011-06-16 10:50:33 +02:00
|
|
|
|
|
|
|
%changelog
|