diff --git a/wastesedge.spec b/wastesedge.spec index c6fa7ee..5e43b55 100644 --- a/wastesedge.spec +++ b/wastesedge.spec @@ -1,6 +1,6 @@ Name: wastesedge Version: 0.3.4 -Release: 0.10%{?dist} +Release: 0.11%{?dist} Summary: Official game package for Adonthell Group: Amusements/Games @@ -8,7 +8,7 @@ License: GPL+ URL: http://adonthell.linuxgames.com/ Source0: http://savannah.nongnu.org/download/adonthell/%{name}-src-%{version}.tar.gz Source1: %{name}.desktop -Patch0: %{name}-more.patch +Patch0: %{name}-more.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch @@ -16,6 +16,7 @@ BuildRequires: adonthell >= %{version} BuildRequires: gettext BuildRequires: desktop-file-utils Requires: adonthell >= %{version}-%{release} +Requires: hicolor-icon-theme %description @@ -34,6 +35,10 @@ chmod a-x AUTHORS COPYING INSTALL README sed -i 's|datadir = @gamedatadir@|datadir = ${prefix}/share|' po/Makefile.in.in # patch configure to not use "more" any more %patch0 -p0 +# remove ttf font while its license is unknown +rm gfx/window/font/avatar.ttf +sed -i 's|avatar.ttf||g' gfx/window/font/Makefile.in + %build %configure @@ -43,9 +48,13 @@ make %{?_smp_mflags} %install rm -rf $RPM_BUILD_ROOT make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p" + +# install images in the correct folders mkdir -p $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/{16x16,32x32}/apps mv $RPM_BUILD_ROOT%{_datadir}/pixmaps/%{name}_16x16.xpm $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/16x16/apps/%{name}.xpm mv $RPM_BUILD_ROOT%{_datadir}/pixmaps/%{name}_32x32.xpm $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/32x32/apps/%{name}.xpm + +# install desktop file not provided upstream desktop-file-install --vendor="" \ --dir=$RPM_BUILD_ROOT%{_datadir}/applications \ %{SOURCE1} @@ -81,6 +90,10 @@ fi %changelog +* Fri Feb 13 2009 Mathieu Bridon - 0.3.4-0.11 +- added missing Requires: on hicolor-icon-theme +- deleted the unproperly licensed font - RHBZ#4774 + * Mon Dec 01 2008 Ignacio Vazquez-Abrams - 0.3.4-0.10 - Rebuild for Python 2.6