Author: belegdol
Update of /cvs/nonfree/rpms/mame/devel
In directory se02.es.rpmfusion.net:/tmp/cvs-serv23354
Modified Files:
.cvsignore mame.spec sources
Removed Files:
mame-gcc46.patch
Log Message:
* Mon Feb 28 2011 Julian Sikorski <belegdol(a)fedoraproject.org> - 0.141u3-1
- Updated to 0.141u3
- Filtered out redundant $RPM_OPT_FLAGS
- No longer enable joystick by default
- Provided an easy way to disable ldplayer
- Dropped upstreamed gcc-4.6 patch
Index: .cvsignore
===================================================================
RCS file: /cvs/nonfree/rpms/mame/devel/.cvsignore,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -r1.21 -r1.22
--- .cvsignore 9 Feb 2011 21:23:24 -0000 1.21
+++ .cvsignore 28 Feb 2011 21:32:37 -0000 1.22
@@ -1,3 +1,4 @@
mame0141s.exe
0141u1_diff.zip
0141u2_diff.zip
+0141u3_diff.zip
Index: mame.spec
===================================================================
RCS file: /cvs/nonfree/rpms/mame/devel/mame.spec,v
retrieving revision 1.25
retrieving revision 1.26
diff -u -r1.25 -r1.26
--- mame.spec 9 Feb 2011 21:23:24 -0000 1.25
+++ mame.spec 28 Feb 2011 21:32:37 -0000 1.26
@@ -1,8 +1,11 @@
-# the debug build is disabled by default, please use --with debug to override
+# ldplayer can be disabled by --without ldplayer or by changing to %bcond_with
+# if it does not build. The debug build is disabled by default, please use
+# --with debug to override
+%bcond_without ldplayer
%bcond_with debug
%global baseversion 141
-%global sourceupdate 2
+%global sourceupdate 3
Name: mame
%if 0%{?sourceupdate}
@@ -22,11 +25,10 @@
#Source updates
Source1:
http://mamedev.org/updates/0%{baseversion}u1_diff.zip
Source2:
http://mamedev.org/updates/0%{baseversion}u2_diff.zip
-#Source3:
http://mamedev.org/updates/0%{baseversion}u3_diff.zip
+Source3:
http://mamedev.org/updates/0%{baseversion}u3_diff.zip
#Source4:
http://mamedev.org/updates/0%{baseversion}u4_diff.zip
%endif
Patch0: %{name}-fortify.patch
-Patch1: %{name}-gcc46.patch
Patch2: %{name}-verbosebuild.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
@@ -69,6 +71,7 @@
%description tools
%{summary}.
+%if %{with ldplayer}
%package ldplayer
Summary: Standalone laserdisc player based on MAME
Group: Applications/Emulators
@@ -78,6 +81,7 @@
%description ldplayer
%{summary}.
+%endif
%prep
@@ -94,7 +98,6 @@
done
%endif
%patch0 -p1 -b .fortify
-%patch1 -p1 -b .gcc46
%patch2 -p1 -b .verbosebuild
# Create ini file
@@ -123,72 +126,81 @@
# Fedora custom defaults
video opengl
autosave 1
-joystick 1
EOF
%build
+#these flags are already included in the Makefile
+RPM_OPT_FLAGS=$(echo $RPM_OPT_FLAGS | sed -e s/"-O2 -g -pipe -Wall "//)
+
+%if %{with ldplayer}
make %{?_smp_mflags} NOWERROR=1 SYMBOLS=1 OPTIMIZE=2 BUILD_EXPAT=0 BUILD_ZLIB=0
SUFFIX64="" \
- OPT_FLAGS='%{optflags}
-DINI_PATH="\"%{_sysconfdir}/%{name};\""' TARGET=ldplayer
+ OPT_FLAGS="$RPM_OPT_FLAGS
-DINI_PATH='\"%{_sysconfdir}/%{name};\"'" TARGET=ldplayer
+%endif
%if %{with debug}
make %{?_smp_mflags} NOWERROR=1 SYMBOLS=1 OPTIMIZE=2 BUILD_EXPAT=0 BUILD_ZLIB=0
SUFFIX64="" \
- OPT_FLAGS='%{optflags}
-DINI_PATH="\"%{_sysconfdir}/%{name};\""' DEBUG=1 all
+ OPT_FLAGS="$RPM_OPT_FLAGS
-DINI_PATH='\"%{_sysconfdir}/%{name};\"'" DEBUG=1 all
%else
make %{?_smp_mflags} NOWERROR=1 SYMBOLS=1 OPTIMIZE=2 BUILD_EXPAT=0 BUILD_ZLIB=0
SUFFIX64="" \
- OPT_FLAGS='%{optflags}
-DINI_PATH="\"%{_sysconfdir}/%{name};\""' all
+ OPT_FLAGS="$RPM_OPT_FLAGS
-DINI_PATH='\"%{_sysconfdir}/%{name};\"'" all
%endif
%install
-rm -rf %{buildroot}
+rm -rf $RPM_BUILD_ROOT
# create directories
-install -d %{buildroot}%{_bindir}
-install -d %{buildroot}%{_datadir}/%{name}/artwork
-install -d %{buildroot}%{_datadir}/%{name}/chds
-install -d %{buildroot}%{_datadir}/%{name}/ctrlr
-install -d %{buildroot}%{_datadir}/%{name}/effects
-install -d %{buildroot}%{_datadir}/%{name}/fonts
-install -d %{buildroot}%{_datadir}/%{name}/keymaps
-install -d %{buildroot}%{_datadir}/%{name}/roms
-install -d %{buildroot}%{_datadir}/%{name}/samples
-install -d %{buildroot}%{_datadir}/%{name}/cheats
-install -d %{buildroot}%{_mandir}/man1
-install -d %{buildroot}%{_sysconfdir}/%{name}
-install -d %{buildroot}%{_sysconfdir}/skel/.%{name}/cfg
-install -d %{buildroot}%{_sysconfdir}/skel/.%{name}/comments
-install -d %{buildroot}%{_sysconfdir}/skel/.%{name}/diff
-install -d %{buildroot}%{_sysconfdir}/skel/.%{name}/ini
-install -d %{buildroot}%{_sysconfdir}/skel/.%{name}/inp
-install -d %{buildroot}%{_sysconfdir}/skel/.%{name}/memcard
-install -d %{buildroot}%{_sysconfdir}/skel/.%{name}/nvram
-install -d %{buildroot}%{_sysconfdir}/skel/.%{name}/snap
-install -d %{buildroot}%{_sysconfdir}/skel/.%{name}/sta
+install -d $RPM_BUILD_ROOT%{_bindir}
+install -d $RPM_BUILD_ROOT%{_datadir}/%{name}/artwork
+install -d $RPM_BUILD_ROOT%{_datadir}/%{name}/chds
+install -d $RPM_BUILD_ROOT%{_datadir}/%{name}/ctrlr
+install -d $RPM_BUILD_ROOT%{_datadir}/%{name}/effects
+install -d $RPM_BUILD_ROOT%{_datadir}/%{name}/fonts
+install -d $RPM_BUILD_ROOT%{_datadir}/%{name}/keymaps
+install -d $RPM_BUILD_ROOT%{_datadir}/%{name}/roms
+install -d $RPM_BUILD_ROOT%{_datadir}/%{name}/samples
+install -d $RPM_BUILD_ROOT%{_datadir}/%{name}/cheats
+install -d $RPM_BUILD_ROOT%{_mandir}/man1
+install -d $RPM_BUILD_ROOT%{_sysconfdir}/%{name}
+install -d $RPM_BUILD_ROOT%{_sysconfdir}/skel/.%{name}/cfg
+install -d $RPM_BUILD_ROOT%{_sysconfdir}/skel/.%{name}/comments
+install -d $RPM_BUILD_ROOT%{_sysconfdir}/skel/.%{name}/diff
+install -d $RPM_BUILD_ROOT%{_sysconfdir}/skel/.%{name}/ini
+install -d $RPM_BUILD_ROOT%{_sysconfdir}/skel/.%{name}/inp
+install -d $RPM_BUILD_ROOT%{_sysconfdir}/skel/.%{name}/memcard
+install -d $RPM_BUILD_ROOT%{_sysconfdir}/skel/.%{name}/nvram
+install -d $RPM_BUILD_ROOT%{_sysconfdir}/skel/.%{name}/snap
+install -d $RPM_BUILD_ROOT%{_sysconfdir}/skel/.%{name}/sta
# install binaries and config files
-install -pm 644 %{name}.ini %{buildroot}%{_sysconfdir}/%{name}
-install -pm 644 src/osd/sdl/keymaps/* %{buildroot}%{_datadir}/%{name}/keymaps
-#install -pm 644 ui.bdf %{SOURCE2} %{buildroot}%{_datadir}/%{name}/fonts
+install -pm 644 %{name}.ini $RPM_BUILD_ROOT%{_sysconfdir}/%{name}
+install -pm 644 src/osd/sdl/keymaps/* $RPM_BUILD_ROOT%{_datadir}/%{name}/keymaps
+%if %{with ldplayer}
+install -pm 755 ldplayer $RPM_BUILD_ROOT%{_bindir}
+%endif
%if %{with debug}
-install -pm 755 %{name}d %{buildroot}%{_bindir}
+install -pm 755 %{name}d $RPM_BUILD_ROOT%{_bindir}
%else
-install -pm 755 %{name} %{buildroot}%{_bindir}
+install -pm 755 %{name} $RPM_BUILD_ROOT%{_bindir}
%endif
-install -pm 755 chdman jedutil ldplayer ldresample ldverify \
- romcmp testkeys unidasm %{buildroot}%{_bindir}
+install -pm 755 chdman jedutil ldresample ldverify \
+ romcmp testkeys unidasm $RPM_BUILD_ROOT%{_bindir}
#for tool in regrep runtest split src2html srcclean
for tool in regrep split src2html srcclean
do
-install -pm 755 $tool %{buildroot}%{_bindir}/%{name}-$tool
+install -pm 755 $tool $RPM_BUILD_ROOT%{_bindir}/%{name}-$tool
done
pushd src/osd/sdl/man
-install -pm 644 chdman.1 jedutil.1 ldplayer.1 ldverify.1 mame.1 romcmp.1 \
- testkeys.1 %{buildroot}%{_mandir}/man1
+%if %{with ldplayer}
+install -pm 644 ldplayer.1 $RPM_BUILD_ROOT%{_mandir}/man1
+%endif
+install -pm 644 chdman.1 jedutil.1 ldverify.1 mame.1 romcmp.1 \
+ testkeys.1 $RPM_BUILD_ROOT%{_mandir}/man1
popd
%clean
-rm -rf %{buildroot}
+rm -rf $RPM_BUILD_ROOT
%files
@@ -225,13 +237,22 @@
%{_mandir}/man1/romcmp.1*
%{_mandir}/man1/testkeys.1*
+%if %{with ldplayer}
%files ldplayer
%defattr(-,root,root,-)
%{_bindir}/ldplayer
%{_mandir}/man1/ldplayer.1*
+%endif
%changelog
+* Mon Feb 28 2011 Julian Sikorski <belegdol(a)fedoraproject.org> - 0.141u3-1
+- Updated to 0.141u3
+- Filtered out redundant $RPM_OPT_FLAGS
+- No longer enable joystick by default
+- Provided an easy way to disable ldplayer
+- Dropped upstreamed gcc-4.6 patch
+
* Wed Feb 09 2011 Julian Sikorski <belegdol(a)fedoraproject.org> - 0.141u2-1
- Updated to 0.141u2
Index: sources
===================================================================
RCS file: /cvs/nonfree/rpms/mame/devel/sources,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -r1.21 -r1.22
--- sources 9 Feb 2011 21:23:24 -0000 1.21
+++ sources 28 Feb 2011 21:32:37 -0000 1.22
@@ -1,3 +1,4 @@
b19481d31b2d7d94c193f3e47cc5a461 mame0141s.exe
b9e2d7b1200cb53044350fd73bac25f8 0141u1_diff.zip
66a6df9cfadd27e08aadd320c5ff7774 0141u2_diff.zip
+84b7d0d45fbb66e39ca8d50db5569083 0141u3_diff.zip
--- mame-gcc46.patch DELETED ---