File bombermaze.spec of Package bombermaze

#
# spec file for package bombermaze (Version 0.6.6)
#
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# 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/
#

# norootforbuild


Name:           bombermaze
BuildRequires:  esound-devel fdupes gcc-c++ gdk-pixbuf-devel giflib-devel libpng-devel libtiff-devel libxml-devel update-desktop-files
%define prefix   /usr
%define sysconfdir /etc
License:        GPL v2 or later
Group:          Amusements/Games/Action/Arcade
AutoReqProv:    on
Version:        0.6.6
Release:        721
Summary:        Bomberman Clone for GNOME
Source:         bombermaze-%{version}.tar.bz2
Patch:          bombermaze-array_new.diff
Patch1:         bombermaze-regen.diff
Patch2:         bombermaze-codecleanup.diff
Patch3:         bombermaze-po_install.diff
Patch4:         bombermaze-dynamic_ALL_LINGUAS.diff
Patch5:         bombermaze-range.patch
Url:            http://www.freesoftware.fsf.org/bombermaze/
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%if %suse_version > 1020
Requires:       %{name}-lang = %{version}
%endif

%description
Bombermaze is a multiplayer clone of the popular Bomberman arcade game.



Authors:
--------
    Sydney Tang <sydney.tang@computer.org>

%lang_package
%prep
%setup -q -n bombermaze-%{version}
%patch
%patch1
%patch2
%patch3
%patch4
%patch5
rm po/*.gmo
mv po/no.po po/nb.po

%build
%{?suse_update_config:%{suse_update_config -fl}}
cp /usr/share/gettext/config.rpath .
autoreconf -fi
export CFLAGS="%{optflags} -I/usr/include/gdk-pixbuf-1.0" 
export CXXFLAGS="%{optflags} -I/usr/include/gdk-pixbuf-1.0" 
export LIBS=-L/usr/X11R6/%{_lib}
./configure \
    --prefix=%prefix \
    --sysconfdir=%sysconfdir \
    --datadir=%prefix/share \
    --localstatedir=/var/lib \
    --with-kde-datadir=/opt/kde
# CFLAGS="$RPM_OPT_FLAGS"
make

%install
make DESTDIR=%{buildroot} install
mkdir -p %{buildroot}/usr/share/applications
mv %{buildroot}/usr/share/gnome/apps/*/*.desktop %{buildroot}/usr/share/applications
rmdir %{buildroot}/usr/share/gnome/apps/* %{buildroot}/usr/share/gnome/apps
%suse_update_desktop_file %name Game ArcadeGame
%find_lang %name
%if %suse_version > 1020
%fdupes -s $RPM_BUILD_ROOT
%endif

%clean
rm -rf %{buildroot}

%files lang -f %name.lang

%files
%defattr(-, root, root)
%doc README COPYING TODO AUTHORS
%{prefix}/bin/%{name}
%{prefix}/share/applications/%{name}.desktop
%{prefix}/share/pixmaps/%{name}.png
%{prefix}/share/%{name}

%changelog
openSUSE Build Service is sponsored by