[svn] r4780 - in trunk/rpms: . sdlmame

packagers at lists.rpmforge.net packagers at lists.rpmforge.net
Fri Sep 29 17:21:59 CEST 2006


Author: thias
Date: 2006-09-29 17:21:44 +0200 (Fri, 29 Sep 2006)
New Revision: 4780

Added:
   trunk/rpms/sdlmame/
   trunk/rpms/sdlmame/sdlmame.spec
   trunk/rpms/sdlmame/sdlmame0109-genericbuild.patch
Log:
Add sdlmame.


Added: trunk/rpms/sdlmame/sdlmame.spec
===================================================================
--- trunk/rpms/sdlmame/sdlmame.spec	                        (rev 0)
+++ trunk/rpms/sdlmame/sdlmame.spec	2006-09-29 15:21:44 UTC (rev 4780)
@@ -0,0 +1,72 @@
+# $Id$
+# Authority: matthias
+
+%define mamever 109
+
+Summary: SDL MAME
+Name: sdlmame
+Version: 0.%{mamever}
+Release: 1
+License: MAME
+Group: Applications/Emulators
+URL: http://rbelmont.mameworld.info/
+# Get with wget --user-agent="" ...
+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
+
+%description
+SDL MAME.
+
+
+%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
+# Don't use our own optflags since they make the build fail (0109)
+# SYMBOLS=1 is to get useful debuginfo packages
+%{__make} %{?_smp_mflags} \
+    SYMBOLS=1 \
+    PREFIX="sdl"
+
+
+%install
+%{__rm} -rf %{buildroot}
+%{__mkdir_p} %{buildroot}%{_bindir}
+%{__install} -m 0755 chdman romcmp sdlmame %{buildroot}%{_bindir}/
+
+
+%clean
+%{__rm} -rf %{buildroot}
+
+
+%files
+%defattr(-, root, root, 0755)
+%doc docs/*.txt *.txt dirs/
+%{_bindir}/chdman
+%{_bindir}/romcmp
+%{_bindir}/sdlmame
+
+
+%changelog
+* Thu Sep 28 2006 Matthias Saou <http://freshrpms.net/> 0.109-1
+- Initial RPM release.
+


Property changes on: trunk/rpms/sdlmame/sdlmame.spec
___________________________________________________________________
Name: svn:keywords
   + Id

Added: trunk/rpms/sdlmame/sdlmame0109-genericbuild.patch
===================================================================
--- trunk/rpms/sdlmame/sdlmame0109-genericbuild.patch	                        (rev 0)
+++ trunk/rpms/sdlmame/sdlmame0109-genericbuild.patch	2006-09-29 15:21:44 UTC (rev 4780)
@@ -0,0 +1,12 @@
+diff -Naupr sdlmame0109.orig/makefile sdlmame0109/makefile
+--- sdlmame0109.orig/makefile	2006-09-26 03:38:10.000000000 +0200
++++ sdlmame0109/makefile	2006-09-29 15:30:01.000000000 +0200
+@@ -76,7 +76,7 @@ X86_PPC_DRC = 1
+ # ATHLON = 1
+ # I686 = 1
+ # P4 = 1
+-PM = 1
++# PM = 1
+ # AMD64 = 1
+ # G4 = 1
+ # G5 = 1



More information about the svn-commits mailing list