diff --git a/aisleriot-theme-install.patch b/aisleriot-theme-install.patch new file mode 100644 index 0000000..9330c5a --- /dev/null +++ b/aisleriot-theme-install.patch @@ -0,0 +1,13 @@ +Index: aisleriot-3.1.0/data/theme-install.ini +=================================================================== +--- aisleriot-3.1.0.orig/data/theme-install.ini ++++ aisleriot-3.1.0/data/theme-install.ini +@@ -37,7 +37,7 @@ ThemesKDE=kdegames-minimal; + ThemesPySol=PySolFC-cardsets; + + [SUSE LINUX] +-ThemesSVG=gnome-games-extra-data; ++ThemesSVG=aisleriot-themes; + ThemesKDE=kdegames4-carddecks-default;kdegames4-carddecks-other; + ThemesPySol=pysol-cardsets; + diff --git a/aisleriot.changes b/aisleriot.changes index 3269c4c..1e17054 100644 --- a/aisleriot.changes +++ b/aisleriot.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Fri Jul 1 12:41:23 CEST 2011 - vuntz@opensuse.org + +- Split some card themes in aisleriot-themes, to make the main + package smaller. +- Add aisleriot-theme-install.patch to let aisleriot know about the + right name of the package for extra themes. + ------------------------------------------------------------------- Wed Jun 15 13:22:14 CEST 2011 - vuntz@opensuse.org diff --git a/aisleriot.spec b/aisleriot.spec index 093c783..8b21dd0 100644 --- a/aisleriot.spec +++ b/aisleriot.spec @@ -25,6 +25,8 @@ Summary: Solitaire Card Games for GNOME Url: http://www.gnome.org Group: Amusements/Games/Board/Card Source: %{name}-%{version}.tar.bz2 +# PATCH-FIX-UPSTREAM aisleriot-theme-install.patch bgo#648601 vuntz@opensuse.org -- Let aisleriot know that extra themes are in aisleriot-themes +Patch0: aisleriot-theme-install.patch BuildRequires: gnome-doc-utils-devel BuildRequires: guile-devel BuildRequires: intltool @@ -48,9 +50,23 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-build %description Aisleriot is a compilation of 80 different solitaire card games. +%package themes +License: GPLv3+ +Summary: Solitaire Card Games for GNOME -- Extra Themes +Group: Amusements/Games/Board/Card +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. + %lang_package %prep %setup -q +%patch0 -p1 %build %configure \ @@ -105,6 +121,24 @@ rm -rf %{buildroot} %{_datadir}/icons/hicolor/*/apps/gnome-aisleriot.* %{_datadir}/icons/hicolor/*/apps/gnome-freecell.* %{_mandir}/man?/sol.* +# Exclude files that are in themes +%exclude %{_datadir}/aisleriot/cards/anglo.svg +%exclude %{_datadir}/aisleriot/cards/anglo_bitmap.svg +%exclude %{_datadir}/aisleriot/cards/bellot.svg +%exclude %{_datadir}/aisleriot/cards/bonded.svg +%exclude %{_datadir}/aisleriot/cards/dondorf.svg +%exclude %{_datadir}/aisleriot/cards/gnomangelo_bitmap.svg +%exclude %{_datadir}/aisleriot/cards/ornamental.svg + +%files themes +%defattr(-, root, root) +%{_datadir}/aisleriot/cards/anglo.svg +%{_datadir}/aisleriot/cards/anglo_bitmap.svg +%{_datadir}/aisleriot/cards/bellot.svg +%{_datadir}/aisleriot/cards/bonded.svg +%{_datadir}/aisleriot/cards/dondorf.svg +%{_datadir}/aisleriot/cards/gnomangelo_bitmap.svg +%{_datadir}/aisleriot/cards/ornamental.svg %files lang -f aisleriot.lang