File ember.spec of Package ember

#
# spec file for package ember
#
# Copyright (c) 2017 SUSE LINUX 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/
#


Name:           ember
Version:        0.7.2
Release:        0
Summary:        Ember - a client for Worldforge
License:        GPL-2.0
Group:          Amusements/Games/RPG
Url:            http://sourceforge.net/projects/worldforge/
Source0:        http://downloads.sourceforge.net/worldforge/%{name}-%{version}.tar.bz2
# PATCH-FIX-UPSTREAM
Patch0:         ember-0.6.0-fix_implicit_dso.patch
# PATCH-FIX-UPSTREAM
Patch1:         ember-start.patch
# PATCH-FIX-UPSTREAM
Patch2:         ember-makefile.patch
# PATCH-FIX-OPENSUSE suse-find-tolua++.patch -- Fix finding the tolua++ library
Patch3:         suse-find-tolua++.patch
# PATCH-FIX-UPSTREAM update-boost-m4.patch -- Update boost.m4 to work with boost > 1.40
Patch4:         update-boost-m4.patch
BuildRequires:  automake
BuildRequires:  boost-devel
BuildRequires:  eris-devel
BuildRequires:  fdupes
BuildRequires:  freealut-devel
BuildRequires:  freeimage-devel
BuildRequires:  gcc-c++
BuildRequires:  libOgreMain-devel
BuildRequires:  libOgreOverlay-devel
BuildRequires:  libOgrePaging-devel
BuildRequires:  libOgreProperty-devel
BuildRequires:  libOgreRTShaderSystem-devel
BuildRequires:  libOgreTerrain-devel
BuildRequires:  libSDL-devel
BuildRequires:  libcegui-devel
BuildRequires:  libsigc++24-devel
BuildRequires:  libtool
BuildRequires:  libwfut-devel
BuildRequires:  lua51-devel
BuildRequires:  varconf-devel
BuildRequires:  zlib-devel
Requires:       ember-media
%if 0%{?suse_version} <= 1320
BuildRequires:  pkgconfig(tolua++)
%else
BuildRequires:  libtolua++-5_1-devel
%endif

%description
Ember is a client for MMORPGs using the Worldforge system.
It uses the Ogre 3d engine with CEGUI.

%prep
%setup -q
%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1

%build
cp -r README.md README
autoreconf -fi
export CFLAGS="%{optflags} -fno-strict-aliasing"
export CPPFLAGS="$CFLAGS"
%configure --enable-static --docdir=%{_docdir}/%{name}
make %{?_smp_mflags} V=1

%install
%make_install
%fdupes %{buildroot}%{_datadir}

%files
%doc COPYING README AUTHORS
%{_bindir}/*
%{_datadir}/*
%dir %{_sysconfdir}/ember
%config %{_sysconfdir}/ember/*

%changelog