[libgme/f19] Initial SETUP.

Christopher Meng cicku at fedoraproject.org
Sun Sep 8 22:50:30 UTC 2013


commit f83798b1711c204ee7e87643d6bcbb89f5ffbb45
Author: Christopher Meng <rpm at cicku.me>
Date:   Mon Sep 9 06:49:42 2013 +0800

    Initial SETUP.

 .gitignore                          |    1 +
 libgme-0.6.0-pkgconfig-libdir.patch |   10 ++++
 libgme.spec                         |   85 +++++++++++++++++++++++++++++++++++
 sources                             |    1 +
 4 files changed, 97 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..37b2faf 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/game-music-emu-0.6.0.tar.bz2
diff --git a/libgme-0.6.0-pkgconfig-libdir.patch b/libgme-0.6.0-pkgconfig-libdir.patch
new file mode 100644
index 0000000..6921a0d
--- /dev/null
+++ b/libgme-0.6.0-pkgconfig-libdir.patch
@@ -0,0 +1,10 @@
+Index: gme/CMakeLists.txt
+===================================================================
+--- gme.orig/CMakeLists.txt
++++ gme/CMakeLists.txt
+@@ -159,4 +159,4 @@ install(TARGETS gme LIBRARY DESTINATION
+                     ARCHIVE DESTINATION lib) # DLL platforms
+ 
+ install(FILES ${EXPORTED_HEADERS} DESTINATION include/gme)
+-install(FILES ${CMAKE_CURRENT_BINARY_DIR}/libgme.pc DESTINATION lib/pkgconfig)
++install(FILES ${CMAKE_CURRENT_BINARY_DIR}/libgme.pc DESTINATION lib${LIB_SUFFIX}/pkgconfig)
diff --git a/libgme.spec b/libgme.spec
new file mode 100644
index 0000000..e21611b
--- /dev/null
+++ b/libgme.spec
@@ -0,0 +1,85 @@
+Name:           libgme
+Version:        0.6.0
+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/game-music-emu-%{version}.tar.bz2
+Patch0:         libgme-0.6.0-pkgconfig-libdir.patch
+BuildRequires:  cmake
+BuildRequires:  pkgconfig
+
+%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
+
+Features:
+- Can be used in C and C++ code
+- High emphasis has been placed on making the library very easy to use
+- One set of common functions work with all emulators the same way
+- Several code examples, including music player using SDL
+- Portable code for use on any system with modern or older C++ compilers
+- Adjustable output sample rate using quality band-limited resampling
+- Uniform access to text information fields and track timing information
+- End-of-track fading and automatic look ahead silence detection
+- Treble/bass and stereo echo for AY/GBS/HES/KSS/NSF/NSFE/SAP/VGM
+- Tempo can be adjusted and individual voices can be muted while playing
+- Can read music data from file, memory, or custom reader function/class
+- Can access track information without having to load into full emulator
+- M3U track listing support for multi-track formats
+- Modular design allows elimination of unneeded emulators/features
+
+%package        devel
+Summary:        Development files for %{name}
+Requires:       %{name} = %{version}-%{release}
+
+%description    devel
+The %{name}-devel package contains libraries and header files for
+developing applications that use %{name}.
+
+%prep
+%setup -qn game-music-emu-%{version}
+%patch0
+sed -i 's/$/\r/' *.txt
+
+%build
+mkdir -p build
+pushd build
+%cmake ..
+make %{?_smp_mflags} V=1
+popd
+
+%install
+pushd build
+make install DESTDIR=%{buildroot}
+popd
+
+%post -p /sbin/ldconfig
+
+%postun -p /sbin/ldconfig
+
+%files
+%doc changes.txt gme.txt license.txt readme.txt
+%{_libdir}/%{name}.so.*
+
+%files devel
+%doc design.txt
+%{_includedir}/gme
+%{_libdir}/%{name}.so
+%{_libdir}/pkgconfig/%{name}.pc
+
+%changelog
+* Thu Mar 21 2013 Christopher Meng <rpm at cicku.me> - 0.6.0-1
+- Update to new version.
+
+* Thu Aug 13 2009 Christopher Meng <cickumqt-NOSPAM at gmail.com> - 0.5.5-1
+- Initial Package.
diff --git a/sources b/sources
index e69de29..434ea6c 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+b98fafb737bc889dc65e7a8b94bd1bf5  game-music-emu-0.6.0.tar.bz2


More information about the scm-commits mailing list