File o2em.spec of Package o2em
#
# spec file for package spec (Version 2.0)
#
# Copyright (c) 2003 SuSE Linux AG, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://www.suse.de/feedback/
#
# norootforbuild
Name: o2em
License: Clarified Artistic
Group: unsorted
Autoreqprov: on
Version: 1.18
Release: 0
Summary: Odyssey 2 and Videopac+ Emulator
Source: o2em118src.zip
Patch: o2em118src.dif
Patch1: o2em-allegro.patch
BuildRequires: allegro-devel unzip
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Expects BIOS images in /usr/share/o2em/bios and game ROM images in
/usr/share/o2em/roms.
%prep
%setup -n o2em118src -c -T
cd ..
unzip -L %SOURCE0
cd o2em118src
%patch
%patch1
%build
cd src
make -f makefile.linux %{?jobs:-j%jobs}
%install
install -D -m 755 src/o2em $RPM_BUILD_ROOT/usr/bin/o2em
install -d -m 755 $RPM_BUILD_ROOT/usr/share/o2em/bios
install -d -m 755 $RPM_BUILD_ROOT/usr/share/o2em/roms
%files
%defattr(-,root,root)
%doc docs/*
/usr/bin/o2em
/usr/share/o2em