[packages/sdlhazemd] - cleanups, use system expat and zlib
qboosh
qboosh at pld-linux.org
Wed Oct 28 19:15:10 CET 2015
commit 416f0d984d51399f9725124ce43075372a839ca5
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Wed Oct 28 19:15:07 2015 +0100
- cleanups, use system expat and zlib
sdlhazemd.spec | 31 ++++++++++++++++++++-----------
1 file changed, 20 insertions(+), 11 deletions(-)
---
diff --git a/sdlhazemd.spec b/sdlhazemd.spec
index 78a8d44..744e3e9 100644
--- a/sdlhazemd.spec
+++ b/sdlhazemd.spec
@@ -1,23 +1,26 @@
%define file_version %(echo %{version} | tr -d .)
Summary: SDL fork of MAME
-Summary(pl.UTF-8): Emulator MAME napisany w SDL
+Summary(pl.UTF-8): Emulator MAME wykorzystujący SDL
Name: sdlhazemd
Version: 0.14a
Release: 1
-License: Distributable
+License: BSD-like
Group: X11/Applications/Games
Source0: http://rbelmont.mameworld.info/%{name}%{file_version}.zip
# Source0-md5: a5eab921f2fcd4fb4d04b9dd7f0d9177
Patch0: %{name}-cflags.patch
Patch1: %{name}-duplicate_options.patch
URL: http://rbelmont.mameworld.info
-BuildRequires: GConf2-devel
+BuildRequires: GConf2-devel >= 2.0
BuildRequires: OpenGL-GLU-devel
BuildRequires: SDL-devel
-BuildRequires: gtk+2-devel
+BuildRequires: expat-devel >= 1.95
+BuildRequires: gtk+2-devel >= 2.0
BuildRequires: pkgconfig
BuildRequires: sed >= 4.0
BuildRequires: unzip
+BuildRequires: xorg-lib-libX11-devel
+BuildRequires: xorg-lib-libXinerama-devel
BuildRequires: zlib-devel
Suggests: gmameui
Obsoletes: sdlmame
@@ -31,21 +34,27 @@ hundreds of machine chipsets with thousands of games from back in the
70s till today.
%description -l pl.UTF-8
-SDLHAZEMD ma być zastąpieniem dla MIA xmame, jednak nie ma z nim nic
-wspólnego. Był on rozwijany odzielnie bazując na oryginalnym
-emulatorze MAME, wspierającym setki układów komputerowych z tysiącami
-gier od lat 70-tych po dziś dzień.
+SDLHAZEMD ma być zamiennikiem dla MIA xmame, jednak nie ma z nim nic
+wspólnego. Był on rozwijany odzielnie w oparciu o oryginalny emulator
+MAME, obsługujący setki układów komputerowych z tysiącami gier od lat
+70. po dziś dzień.
%prep
%setup -q -n %{name}%{file_version}
%patch0 -p1
%patch1 -p1
-%{__sed} -i 's/NAME = $(TARGET)/NAME = %{name}/' makefile
+%{__sed} -i -e 's/NAME = $(TARGET)/NAME = %{name}/' \
+ -e 's/^BUILD_EXPAT/# &/' \
+ -e 's/^BUILD_ZLIB/# &/' \
+ makefile
%build
%{__make} \
-%ifarch %{x8664}
+%ifarch arm ppc ppc64 s390 s390x sparc sparcv9 sparc64
+ BIGENDIAN=1 \
+%endif
+%ifarch %{x8664} alpha ia64 ppc64 s390x sparc64
PTR64=1 \
%endif
CC="%{__cc}" \
@@ -63,5 +72,5 @@ rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
-%doc SDLHAZEMD.txt docs/*
+%doc SDLHAZEMD.txt docs/{config,license,mame,newvideo}.txt
%attr(755,root,root) %{_bindir}/sdlhazemd
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/sdlhazemd.git/commitdiff/416f0d984d51399f9725124ce43075372a839ca5
More information about the pld-cvs-commit
mailing list