From a53ea941bea1162eb7cb592cf19b0f82fe94c350 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Voln=C3=BD?= Date: Mon, 8 Aug 2011 16:08:32 +0200 Subject: [PATCH] Initial import (#716475). --- .gitignore | 1 + game-music-emu.spec | 88 +++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 90 insertions(+) create mode 100644 game-music-emu.spec diff --git a/.gitignore b/.gitignore index e69de29..0415fa7 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/game-music-emu-0.5.5.tbz2 diff --git a/game-music-emu.spec b/game-music-emu.spec new file mode 100644 index 0000000..8dea204 --- /dev/null +++ b/game-music-emu.spec @@ -0,0 +1,88 @@ +Name: game-music-emu +Version: 0.5.5 +Release: 1%{?dist} +Summary: Video game music file emulation/playback library +License: LGPLv2+ +URL: http://code.google.com/p/game-music-emu/ +Source0: http://game-music-emu.googlecode.com/files/%{name}-%{version}.tbz2 + +BuildRequires: cmake +# needed to build the player +BuildRequires: SDL-devel + +%package devel +Summary: Development files for Game_Music_Emu +Requires: %{name}%{?_isa} = %{version} + +%package player +Summary: Demo player utilizing Game_Music_Emu +License: MIT + + +%description +Game_Music_Emu is a collection of video game music file emulators that support +the following formats and systems: + + * AY ZX Spectrum/Amstrad CPC + * GBS Nintendo Game Boy + * GYM Sega Genesis/Mega Drive + * HES NEC TurboGrafx-16/PC Engine + * KSS MSX Home Computer/other Z80 systems (doesn't support FM sound) + * NSF/NSFE Nintendo NES/Famicom (with VRC 6, Namco 106, and FME-7 sound) + * SAP Atari systems using POKEY sound chip + * SPC Super Nintendo/Super Famicom + * VGM/VGZ Sega Master System/Mark III, Sega Genesis/Mega Drive,BBC Micro + +%description devel +This package contains files needed to compile code which uses Game_Music_Emu. + +%description player +This package contains the demo player for files supported by Game_Music_Emu. + + +%prep +%setup -q +# fix install path on systems with lib64 +sed -i -e "s/DESTINATION lib/DESTINATION %{_lib}/" gme/CMakeLists.txt +# add install rule for the player +echo -e "\ninstall(TARGETS gme_player RUNTIME DESTINATION %{_bindir})" >> player/CMakeLists.txt + + +%build +%cmake +make %{?_smp_mflags} +# explicitly build the player as it has EXCLUDE_FROM_ALL set +make %{?_smp_mflags} gme_player + + +%install +rm -rf %{buildroot} +make install DESTDIR=%{buildroot} +# explicitly install the player as it has EXCLUDE_FROM_ALL set +cd player +make install DESTDIR=%{buildroot} +cd .. + + +%post -p /sbin/ldconfig + + +%postun -p /sbin/ldconfig + + +%files +%doc changes.txt license.txt readme.txt +%{_libdir}/libgme.so.* + +%files devel +%doc design.txt gme.txt +%{_libdir}/libgme.so +%{_includedir}/gme/ + +%files player +%{_bindir}/gme_player + + +%changelog +* Fri Jun 24 2011 Karel Volny 0.5.5-1 +- Initial release for Fedora 15 diff --git a/sources b/sources index e69de29..578d943 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +94459001a763fb76209a550a03b7949e game-music-emu-0.5.5.tbz2