Accepting request 78016 from GNOME:Factory

Make main package smaller

OBS-URL: https://build.opensuse.org/request/show/78016
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/aisleriot?expand=0&rev=3
This commit is contained in:
Sascha Peilicke 2011-08-08 13:42:02 +00:00 committed by Git OBS Bridge
parent 37695d0c72
commit 7c70f2374a
3 changed files with 55 additions and 0 deletions

View File

@ -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;

View File

@ -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

View File

@ -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