Accepting request 173126 from home:worldcitizen:branches:games

Added missing BuildRequires for openSUSE > 12.3

OBS-URL: https://build.opensuse.org/request/show/173126
OBS-URL: https://build.opensuse.org/package/show/games/fife?expand=0&rev=9
This commit is contained in:
Lukas Krejza 2013-04-25 07:27:59 +00:00 committed by Git OBS Bridge
parent 18e25a0013
commit c8d04b844f
2 changed files with 14 additions and 13 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed Apr 24 07:25:36 UTC 2013 - joop.boonen@opensuse.org
- Added missing BuildRequires for openSUSE > 12.3
-------------------------------------------------------------------
Wed Mar 6 14:21:33 UTC 2013 - gryffus@hkfree.org

View File

@ -1,7 +1,7 @@
#
# spec file for package fife
#
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) Nelson Marques <nmarques@opensuse.org>
#
# All modifications and additions to the file contributed by third parties
@ -18,19 +18,17 @@
%define _soname 0
Name: fife
%define _name libfife%{_soname}
Version: 0.3.4
Release: 1
Release: 0
Summary: A powerful 2D game engine
License: LGPL-2.0+
Summary: A powerful 2D game engine
Url: http://www.fifengine.de
Group: Amusements/Games/Other
Url: http://www.fifengine.de
Source: http://netcologne.dl.sourceforge.net/project/fife/active/src/%{name}-%{version}.tar.gz
# Update license
Source99: http://www.gnu.org/licenses/lgpl-2.0.txt
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: boost-devel
BuildRequires: chrpath
BuildRequires: freeglut-devel
@ -46,7 +44,6 @@ BuildRequires: pkgconfig(python)
BuildRequires: pkgconfig(sdl)
BuildRequires: pkgconfig(vorbis)
BuildRequires: pkgconfig(zlib)
%if 0%{?suse_version}
BuildRequires: libSDL_image-devel
BuildRequires: libSDL_ttf-devel
@ -59,6 +56,10 @@ BuildRequires: guichan-devel
BuildRequires: libXcursor-devel
BuildRequires: openal-soft-devel
%endif
%if 0%{?suse_version} > 1230
BuildRequires: libXcursor-devel
%endif
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
FIFE stands for Flexible Isometric Free Engine and is a cross platform
@ -74,7 +75,6 @@ FIFE stands for Flexible Isometric Free Engine and is a cross platform
game creation framework. It provides you with the ability to create a
game using Python interfaces.
%package -n python-%{name}
Summary: Python extensions for the fife engine
Group: Amusements/Games/Other
@ -85,7 +85,6 @@ FIFE stands for Flexible Isometric Free Engine and is a cross platform
game creation framework. It provides you with the ability to create a
game using Python interfaces.
%package devel
Summary: Development files for %{name} engine
Group: Development/Libraries/Other
@ -97,12 +96,11 @@ FIFE stands for Flexible Isometric Free Engine and is a cross platform
game creation framework. It provides you with the ability to create a
game using Python interfaces.
%prep
%setup -q
# Update licence
rm COPYING
cp %{S:99} COPYING
cp %{SOURCE99} COPYING
%build
# empty
@ -116,12 +114,10 @@ scons \
--python-prefix=%{python_sitearch} \
--lib-dir=%{_lib} \
install-all
pushd %{buildroot}%{_libdir}
ln -s libfife.so.%{version} libfife.so.0
ln -s libfife.so.%{version} libfife.so
popd
find %{buildroot} -name '*.so.*' -print -type f -print -exec chrpath --delete {} \;
find %{buildroot}%{python_sitearch} -name '*.so' -type f -print -exec chrpath --delete {} \;
find %{buildroot}%{_libdir} -name '*.a' -type f -delete -print