SHA256
1
0
forked from pool/lugaru

Strip redundant sections/tags from specfile; cmake into %build

OBS-URL: https://build.opensuse.org/package/show/games/lugaru?expand=0&rev=7
This commit is contained in:
Jan Engelhardt 2012-03-25 02:02:11 +00:00 committed by Git OBS Bridge
parent 3a15720599
commit 42c99a655d
2 changed files with 40 additions and 10 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Sun Mar 25 01:59:54 UTC 2012 - jengelh@medozas.de
- Move build commands like cmake to actual %build section
-------------------------------------------------------------------
Fri May 21 12:46:29 UTC 2010 - adam@mizerski.pl

View File

@ -1,12 +1,28 @@
# norootforbuild
#
# spec file for package lugaru
#
# Copyright (c) 2012 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/
#
Name: lugaru
Summary: Kung-Fu Rabbit Adventure Video Game
License: GPL-2.0
Group: Amusements/Games/Action/Other
Version: 1.0
Release: 0
License: GPLv2
URL: http://www.wolfire.com/lugaru
Url: http://www.wolfire.com/lugaru
# revision 275
Source: %{name}-%{version}.tar.bz2
Source1: %{name}.desktop
@ -14,8 +30,20 @@ Source1: %{name}.desktop
Patch0: lugaru-1.0-rev225-cmake-fix.patch
# PATCH-FIX-OPENSUSE lugaru-1.0-dont-install-data.patch adam@mizerski.pl -- Don't try to install Data, since it's in lugaru-1.0-data package
Patch1: lugaru-1.0-dont-install-data.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
BuildRequires: cmake gcc-c++ libSDL-devel Mesa-devel xorg-x11-devel openal-soft-devel libogg-devel libvorbis-devel zlib-devel libjpeg-devel libpng-devel fdupes update-desktop-files
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: Mesa-devel
BuildRequires: cmake
BuildRequires: fdupes
BuildRequires: gcc-c++
BuildRequires: libSDL-devel
BuildRequires: libjpeg-devel
BuildRequires: libogg-devel
BuildRequires: libpng-devel
BuildRequires: libvorbis-devel
BuildRequires: openal-soft-devel
BuildRequires: update-desktop-files
BuildRequires: xorg-x11-devel
BuildRequires: zlib-devel
Requires: %{name}-data = %{version}
%description
@ -30,11 +58,11 @@ upon himself to fight against their plot and save his fellow rabbits from slaver
%setup -q
%patch0 -p1
%patch1 -p1
%build
export CFLAGS="$RPM_OPT_FLAGS"
export CXXFLAGS="$RPM_OPT_FLAGS"
cmake -DLUGARU_INSTALL_PREFIX=%{_libdir}/%{name} -G "Unix Makefiles"
%build
%__make VERBOSE=1 %{?_smp_mflags}
%install
@ -54,9 +82,6 @@ EOF
%suse_update_desktop_file %{name}
%endif
%clean
%__rm -rf %{buildroot}
%files
%defattr(-,root,root)
%doc COPYING.txt