sdlmame/sdlmame.spec

Name: sdlmame
Summary: SDL port of the Multi Arcade Machine Emulator (MAME)
Version: 0.115
Release: 1
License: MAME
Group: Applications/Emulators
URL: http://rbelmont.mameworld.info/?page_id=163
Description: This is a simple SDL port of the almost legendary MAME. MAME is an arcade machine emulator, started in 1997 by Nicola Salmoria. It started out as a series of emulators for individual games. This series of emulators was combined into a single multi-game emulator.

CentOS 7 x86_64

The build was succesful. The following RPMs were generated:

Build Status

CentOS 6 x86_64

The build was succesful. The following RPMs were generated:

Build Status

Contents

The spec file used by the build system currently has the following contents:

# $Id$
# Authority: matthias

%{?fedora: %{expand: %%define fc%{fedora} 1}}

%{?el4:%define _without_modxorg 1}
%{?el3:%define _without_modxorg 1}

%define mamever 115

Summary: SDL port of the Multi Arcade Machine Emulator (MAME)
Name: sdlmame
Version: 0.%{mamever}
Release: 1%{?dist}
License: MAME
Group: Applications/Emulators
URL: http://rbelmont.mameworld.info/?page_id=163
# Get with wget --user-agent="Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.9) Gecko/20061206 Firefox/1.5.0.9"
Source: http://rbelmont.mameworld.info/sdlmame0%{mamever}.zip
Patch0: sdlmame0109-genericbuild.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
BuildRequires: SDL-devel, expat-devel, zlib-devel
%{!?_without_modxorg:BuildRequires: libXinerama-devel}
%{?_without_modxorg:BuildRequires: XFree86-devel}

%description
This is a simple SDL port of the almost legendary MAME. MAME is an arcade
machine emulator, started in 1997 by Nicola Salmoria. It started out as a
series of emulators for individual games. This series of emulators was
combined into a single multi-game emulator.


%prep
%setup -n sdlmame0%{mamever}
%patch0 -p1 -b .genericbuild
# Create the required set of empty directories in "dirs" to be included as doc
# (we don't want 'obj' which is currently empty but used during the build)
touch obj/foo
for file in *; do
    if rmdir $file 2>/dev/null; then
        mkdir -p dirs/$file
    fi
done


%build
# PTR64 and PPC control some optimizations and disable incompatible stuff
%ifarch x86_64
export PTR64=1
%endif
%ifarch ppc
export PPC=1
%endif
# SYMBOLS=1 is to get useful debuginfo packages
%{__make} %{?_smp_mflags} \
    OPT_FLAGS="%{optflags}" \
    SYMBOLS=1 \
    PREFIX="sdl"


%install
%{__rm} -rf %{buildroot}
%{__mkdir_p} %{buildroot}%{_bindir}
%{__install} -m 0755 sdlmame %{buildroot}%{_bindir}/sdlmame
# Rename these tools in order to not conflict with xmame
%{__install} -m 0755 chdman %{buildroot}%{_bindir}/chdman-sdlmame
%{__install} -m 0755 romcmp %{buildroot}%{_bindir}/romcmp-sdlmame


%clean
%{__rm} -rf %{buildroot}


%files
%defattr(-,root,root,-)
%doc docs/*.txt *.txt dirs/
%{_bindir}/chdman-sdlmame
%{_bindir}/romcmp-sdlmame
%{_bindir}/sdlmame


%changelog
* Thu May 31 2007 Matthias Saou <http://freshrpms.net/> 0.115-1
- Update to 0.115.

* Wed Mar  7 2007 Matthias Saou <http://freshrpms.net/> 0.113-1
- Update to 0.113.
- Remove no longer needed ppc patch since -mlong-branch is now only added if
  the target OS it MacOSX, as it should.

* Tue Jan 16 2007 Matthias Saou <http://freshrpms.net/> 0.111u3-1
- Update to 0.111u3.
- Update URL to the main "SDLHome x.y.z" page.
- Use our optflags, as it no longer makes the build fail.

* Thu Dec 21 2006 Matthias Saou <http://freshrpms.net/> 0.111-1
- Update to 0.111.

* Wed Nov  8 2006 Matthias Saou <http://freshrpms.net/> 0.110-1
- Update to 0.110.
- Add new libXinerama-devel build requirement.
- Rename chdman and romcmp to *-sdlmame in order to not conflict with xmame.

* Tue Oct 17 2006 Matthias Saou <http://freshrpms.net/> 0.109u2-1
- Update to 0.109u2.

* Thu Oct  5 2006 Matthias Saou <http://freshrpms.net/> 0.109-2
- Add ppc patch to remove -mlong-branch (it's an Apple specific gcc option...),
  but the build still fails later on.

* Thu Sep 28 2006 Matthias Saou <http://freshrpms.net/> 0.109-1
- Initial RPM release.