This repository has been archived on 2024-11-07. You can view files and clone it, but cannot push or open issues or pull requests.
xmame/xmame.spec

126 lines
3.6 KiB
RPMSpec
Raw Normal View History

Name: xmame
Version: 0.106
Release: 3mamba
Summary: An arcade machine emulator
Group: Graphical Desktop/Applications/Games
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://x.mame.net
Source0: http://x.mame.net/download/xmame-%{version}.tar.bz2
# see src/unix/doc/xmamerc.dist
Source1: xmamerc.dist
Source10: http://www.mame.net/roms/polyplay.zip
Source11: http://www.mame.net/roms/robby.zip
Source12: http://www.mame.net/roms/gridlee.zip
Patch0: xmame-0.106-Makefile.patch
Patch1: xmame-0.106-libGLName.patch
License: MAME
#BuildRequires: libXorg-devel >= 6.8.0
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libalsa-devel
BuildRequires: libaudiofile-devel
BuildRequires: libesound-devel
BuildRequires: libexpat-devel
BuildRequires: libjpeg-devel
BuildRequires: libSDL-devel
BuildRequires: libX11-devel
BuildRequires: libXext-devel
BuildRequires: libXinerama-devel
BuildRequires: libXxf86dga-devel
BuildRequires: libXxf86vm-devel
BuildRequires: libz-devel
BuildRequires: lirc-devel
## AUTOBUILDREQ-END
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
Mame is an arcade machine emulator.
Started in 1997 by Nicola Salmoria, mame started out as a series of emulators for individual games. This series of emulators was combined into a simgle multi-game emulator.
This is the current form of mame; no longer a one-man show, there are over 100 contributors to the project.
%prep
%setup -q
%patch0 -p1
%patch1 -p1
%build
%make \
PREFIX=%{_prefix} \
MANDIR=%{_mandir}/man6 \
SYSCONFDIR=%{_sysconfdir}/mame \
X11_XINERAMA=1 \
X11_OPENGL=1 \
SOUND_ALSA=1 \
SOUND_SDL=1 \
SOUND_ESOUND=1 \
X11_DGA=1 \
LIRC=1
##
##SOUND_WAVEOUT=1 ??
##SOUND_ARTS_TEIRA=1 \
##SOUND_ARTS_SMOTEK=1
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall \
PREFIX=%{buildroot}%{_prefix} \
MANDIR=%{buildroot}%{_mandir}/man6 \
INSTALL_USER=$(id -un) \
INSTALL_GROUP=$(id -gn)
chmod 755 %{buildroot}%{_bindir}/*
ln -s xmame.x11 %{buildroot}%{_bindir}/xmame
install -d %{buildroot}%{_datadir}/mame/{roms,artwork,samples,snap}
install -d %{buildroot}%{_sysconfdir}/mame
cp %{SOURCE1} %{buildroot}%{_sysconfdir}/mame/xmamerc
cp %{SOURCE10} %{buildroot}%{_datadir}/mame/roms
cp %{SOURCE11} %{buildroot}%{_datadir}/mame/roms
cp %{SOURCE12} %{buildroot}%{_datadir}/mame/roms
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%files
%defattr(-,root,root)
%{_bindir}/xmame
%{_bindir}/xmame.x11
%{_bindir}/chdman
%{_bindir}/jedutil
%{_bindir}/romcmp
%{_bindir}/xml2info
%dir %{_datadir}/mame/roms
%{_datadir}/mame/roms/*
%dir %{_datadir}/mame/artwork
%dir %{_datadir}/mame/samples
%dir %{_datadir}/mame/snap
%dir %{_sysconfdir}/mame
%{_sysconfdir}/mame/*
%{_mandir}/man6/*
%changelog
* Thu Sep 05 2013 Automatic Build System <autodist@mambasoft.it> 0.106-3mamba
- automatic rebuild by autodist
* Wed Dec 31 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 0.106-2mamba
- added patch to load libGL.so.1 and libGLU.so.1 instead of libGL.so and libGLU.so
* Mon Jun 30 2008 gil <puntogil@libero.it> 0.106-1mamba
- update to 0.106
- added patch xmame-0.106-1make.patch ([xmame.obj/unix.x11/video-drivers/xv.o] Error 1)
* Mon Nov 21 2005 Davide Madrisan <davide.madrisan@qilinux.it> 0.101-1qilnx
- update to version 0.101 by autospec
- fixed package group
* Mon Mar 08 2004 Silvan Calarco <silvan.calarco@mambasoft.it> 0.79.1-2qilnx
- three distributable roms added
* Sun Mar 07 2004 Silvan Calarco <silvan.calarco@mambasoft.it> 0.79.1-1qilnx
- first build