Name: sdlmame-extra-data Version: 0.140u1 %define sversion %(sed -e "s/\\.//" <<<%{version}) %define distsuffix plf Release: %mkrel 1 Summary: More data files for SDL MAME front-ends License: Freeware Group: Emulators URL: http://mameworld.info/ # See "Support Files" # Cheats (XML format) Source1: http://cheat.retrogames.com/download/cheat0140.7z #alt url: http://www.mamecheat.co.uk/ # nplayers.ini Source10: http://nplayers.arcadebelgium.be/files/nplayers0140.zip # history.dat Source20: http://www.arcade-history.com/dats/mamehistory140.7z # mameinfo.dat Source30: http://www.mameworld.info/mameinfo/update/Mameinfo0140u1a.zip # catver.ini (en, fr, it) # http://www.progettoemma.net/public/ccount/click.php?id=6 # http://clrmamepro.free.fr/file/catlist/catver.zip # http://www.progettoemma.net/public/ccount/click.php?id=5 Source40: catver-0.140u1-en.zip Source41: catver-0.140u1-fr.zip Source42: catver-0.140u1-it.zip # controls.ini (for wahcade) Source50: controls.ini.0.111.5.zip #"Art files" : samples, cabinets, etc... #Source100: http://www.mame.net/roms/gridlee-sample.zip # for free, but for non-commercial use only # from http://mamedev.org/roms/ # to add a rom archive : add its basename to the freerom_sources list below #define freerom_sources "alienar carpolo circus crash fireone gridlee ripcord\ # robby robotbwl sidetrac spectar starfir2 starfira starfire targ teetert" # this generates Source5xx tags #(echo %{freerom_sources} | awk 'BEGIN { RS=" "; n=0 }; { print "Source"500+n":\t"$1".zip"; n++ };') # this generates the list of rom files for the install step #define freerom_files %(echo %{freerom_sources} | awk 'BEGIN { RS=" "; files="" }; { files=files" %{_sourcedir}/"$1".zip"}; END { print files };') #TODO: #1. obtain permission to distribute these roms, #2. find and package all additionnal files related to these free roms, #3. uncomment sources, update description, install, files... BuildRequires: p7zip BuildRequires: recode BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version} # cheat.zip does not require a front-end Requires: sdlmame %description This package includes additional files for SDL MAME arcade emulator, which are used by sdlmame itself (cheat.zip) or its front-ends. This package is in PLF because of Mandriva policy regarding emulators. %prep rm -rf %{name}-%{version} mkdir %{name}-%{version} cd %{name}-%{version} #cheats 7za x %{SOURCE1} #nplayers unzip -CoLaa %{SOURCE10} nplayers.ini perl -pe "s/([0-9])P/\$1J/g" nplayers.ini >nplayers-fr.ini #history 7za x %{SOURCE20} #mameinfo unzip -o %{SOURCE30} 7za e Mameinfo*.exe mameinfo.dat #catver unzip -Coaap %{SOURCE40} Catver.ini >catver-en.ini unzip -Coaap %{SOURCE41} Catver.ini >catver-fr.ini unzip -Coaap %{SOURCE42} Catver.ini >catver-it.ini #fix catver (for loemu) recode l1..u8 catver-fr.ini catver-it.ini perl -pi -e "s/^=/#=/g" catver-fr.ini #controls unzip -o %{SOURCE50} %build %install cd %{name}-%{version} rm -rf %{buildroot} install -d -m 755 %{buildroot}%{_gamesdatadir}/sdlmame install -m 644 cheat.zip catver-en.ini catver-fr.ini catver-it.ini \ controls.ini history.dat mameinfo.dat nplayers.ini nplayers-fr.ini \ %{buildroot}/%{_gamesdatadir}/sdlmame/ #freeware roms #install -d -m 755 %{buildroot}%{_gamesdatadir}/sdlmame/roms #install -m 644 %{freerom_files} %{buildroot}%{_gamesdatadir}/sdlmame/roms %files %defattr(-,root,root) %{_gamesdatadir}/sdlmame/* %clean rm -rf %{buildroot} %changelog * Wed Dec 1 2010 Guillaume Bedot <littletux@zarb.org> 0.140u1-1plf2011.0 - 0.140u1 * Sun May 23 2010 Guillaume Bedot <littletux@zarb.org> 0.138-2plf2010.1 - 0.138 catlists * Thu May 20 2010 Guillaume Bedot <littletux@zarb.org> 0.138-1plf2010.1 - 0.138 (except catlist,cheats,controls) * Wed Mar 24 2010 Guillaume Bedot <littletux@zarb.org> 0.137-2plf2010.1 - 0.137 cheats * Tue Mar 23 2010 Guillaume Bedot <littletux@zarb.org> 0.137-1plf2010.1 - 0.137 * Sun Jan 10 2010 Guillaume Bedot <littletux@zarb.org> 0.136-1plf2010.1 - 0.136 * Thu Sep 17 2009 Guillaume Bedot <littletux@zarb.org> 0.134-3plf2010.0 - nplayers 0.134 * Tue Sep 15 2009 Guillaume Bedot <littletux@zarb.org> 0.134-2plf2010.0 - catver, history 0.134 * Fri Sep 11 2009 Guillaume Bedot <littletux@zarb.org> 0.134-1plf2010.0 - added controls.ini file - 0.134 (except nplayers, history, catver, controls) * Sat Sep 5 2009 Guillaume Bedot <littletux@zarb.org> 0.133-1plf2010.0 - 0.133 (except cheats) * Fri Jun 12 2009 Guillaume Bedot <littletux@zarb.org> 0.132-1plf2010.0 - 0.132 * Mon Apr 27 2009 Guillaume Bedot <littletux@zarb.org> 0.131-1plf2009.1 - 0.131 (except cheats) * Sun Apr 19 2009 Guillaume Bedot <littletux@zarb.org> 0.130u4-1plf2009.1 - New PLF package for the support files, to allow to update only these files