From 8df87fd38f715616140dba5f73179f023413b014faae58ebb24f10567847a404 Mon Sep 17 00:00:00 2001 From: Cristian Morales Vega Date: Tue, 3 May 2011 19:43:00 +0000 Subject: [PATCH 1/5] Accepting request 69472 from home:TheBlackCat:branches:multimedia:libs Added 32bit compatibility libraries. Escaped macros in comments (fix for RPMLINT warning) OBS-URL: https://build.opensuse.org/request/show/69472 OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/libgme?expand=0&rev=3 --- _service:set_version:libgme.spec | 9 +++------ baselibs.conf | 1 + libgme.changes | 6 ++++++ libgme.spec | 13 +++++-------- 4 files changed, 15 insertions(+), 14 deletions(-) create mode 100644 baselibs.conf diff --git a/_service:set_version:libgme.spec b/_service:set_version:libgme.spec index a1d86d6..4150e1c 100644 --- a/_service:set_version:libgme.spec +++ b/_service:set_version:libgme.spec @@ -1,7 +1,7 @@ # # spec file for package libgme # -# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -19,8 +19,8 @@ %define soname 0 Name: libgme -Version: 0.5.5 -Release: 1 +Version: 0.5.5 +Release: 0 License: LGPLv2.1+ Summary: Collection of video game music file emulators Url: http://code.google.com/p/game-music-emu/ @@ -50,8 +50,6 @@ the following formats and systems: - VGM/VGZ: Sega Master System/Mark III, Sega Genesis/Mega Drive,BBC Micro %package -n %{name}%{soname} - - Summary: Collection of video game music file emulators Group: System/Libraries @@ -69,7 +67,6 @@ the following formats and systems: - VGM/VGZ: Sega Master System/Mark III, Sega Genesis/Mega Drive,BBC Micro %package devel -License: LGPLv2.1+ Summary: Development libraries and headers for %{name} Group: Development/Libraries/C and C++ Requires: %{name}%{soname} = %{version} diff --git a/baselibs.conf b/baselibs.conf new file mode 100644 index 0000000..6b26f7a --- /dev/null +++ b/baselibs.conf @@ -0,0 +1 @@ +libgme0 diff --git a/libgme.changes b/libgme.changes index 4e03163..89c58ab 100644 --- a/libgme.changes +++ b/libgme.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Sun May 1 17:35:27 UTC 2011 - toddrme2178@gmail.com + +- Added 32bit compatibility libraries +- Escaped macros in comments (fix for RPMLINT warning) + ------------------------------------------------------------------- Tue Dec 14 07:54:59 UTC 2010 - reddwarf@opensuse.org diff --git a/libgme.spec b/libgme.spec index e64ef83..f142209 100644 --- a/libgme.spec +++ b/libgme.spec @@ -1,7 +1,7 @@ # # spec file for package libgme # -# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -20,17 +20,17 @@ Name: libgme Version: to_be_filled_by_service -Release: 1 +Release: 0 License: LGPLv2.1+ Summary: Collection of video game music file emulators Url: http://code.google.com/p/game-music-emu/ Group: System/Libraries Source0: game-music-emu-%{version}.tbz2 -# PATCH-FIX-UPSTREAM %{name}-0.5.5-LIB_SUFFIX.patch http://code.google.com/p/game-music-emu/issues/detail?id=8 reddwarf@opensuse.org -- Add LIB_SUFFIX support +# PATCH-FIX-UPSTREAM %%{name}-0.5.5-LIB_SUFFIX.patch http://code.google.com/p/game-music-emu/issues/detail?id=8 reddwarf@opensuse.org -- Add LIB_SUFFIX support Patch0: %{name}-0.5.5-LIB_SUFFIX.patch -# PATCH-FIX-UPSTREAM %{name}-0.5.5-pkg_config.patch reddwarf@opensuse.org -- Add pkg-config file. From upstream SVN. +# PATCH-FIX-UPSTREAM %%{name}-0.5.5-pkg_config.patch reddwarf@opensuse.org -- Add pkg-config file. From upstream SVN. Patch1: %{name}-0.5.5-pkg_config.patch -# PATCH-FIX-UPSTREAM %{name}-0.5.5-symbol_visibility.patch reddwarf@opensuse.org -- Don't export internal symbols. From upstream SVN. +# PATCH-FIX-UPSTREAM %%{name}-0.5.5-symbol_visibility.patch reddwarf@opensuse.org -- Don't export internal symbols. From upstream SVN. Patch2: %{name}-0.5.5-symbol_visibility.patch BuildRequires: cmake BuildRequires: gcc-c++ @@ -50,8 +50,6 @@ the following formats and systems: - VGM/VGZ: Sega Master System/Mark III, Sega Genesis/Mega Drive,BBC Micro %package -n %{name}%{soname} - - Summary: Collection of video game music file emulators Group: System/Libraries @@ -69,7 +67,6 @@ the following formats and systems: - VGM/VGZ: Sega Master System/Mark III, Sega Genesis/Mega Drive,BBC Micro %package devel -License: LGPLv2.1+ Summary: Development libraries and headers for %{name} Group: Development/Libraries/C and C++ Requires: %{name}%{soname} = %{version} From 4a1063965e70f4925bb82b624f27c7724500e82b903f2dda0674b5fdbcf926be Mon Sep 17 00:00:00 2001 From: Cristian Morales Vega Date: Tue, 3 May 2011 20:24:43 +0000 Subject: [PATCH 2/5] - Update libgme-0.5.5-symbol_visibility.patch to not install headers for functions that are not exported. OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/libgme?expand=0&rev=4 --- ...ice:download_url:game-music-emu-0.5.5.tbz2 | 3 - _service:set_version:libgme.spec | 116 ------------------ libgme-0.5.5-symbol_visibility.patch | 27 ++++ libgme.changes | 6 + 4 files changed, 33 insertions(+), 119 deletions(-) delete mode 100644 _service:download_url:game-music-emu-0.5.5.tbz2 delete mode 100644 _service:set_version:libgme.spec diff --git a/_service:download_url:game-music-emu-0.5.5.tbz2 b/_service:download_url:game-music-emu-0.5.5.tbz2 deleted file mode 100644 index c1a911c..0000000 --- a/_service:download_url:game-music-emu-0.5.5.tbz2 +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:ecb3586aac9feff2b3141167835f73da0c997efbdd32e559f99477ad01e19089 -size 161954 diff --git a/_service:set_version:libgme.spec b/_service:set_version:libgme.spec deleted file mode 100644 index 4150e1c..0000000 --- a/_service:set_version:libgme.spec +++ /dev/null @@ -1,116 +0,0 @@ -# -# spec file for package libgme -# -# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany. -# -# All modifications and additions to the file contributed by third parties -# remain the property of their copyright owners, unless otherwise agreed -# upon. The license for this file, and modifications and additions to the -# file, is the same license as for the pristine package itself (unless the -# license for the pristine package is not an Open Source License, in which -# case the license is the MIT License). An "Open Source License" is a -# license that conforms to the Open Source Definition (Version 1.9) -# published by the Open Source Initiative. - -# Please submit bugfixes or comments via http://bugs.opensuse.org/ -# - - -%define soname 0 - -Name: libgme -Version: 0.5.5 -Release: 0 -License: LGPLv2.1+ -Summary: Collection of video game music file emulators -Url: http://code.google.com/p/game-music-emu/ -Group: System/Libraries -Source0: game-music-emu-%{version}.tbz2 -# PATCH-FIX-UPSTREAM %{name}-0.5.5-LIB_SUFFIX.patch http://code.google.com/p/game-music-emu/issues/detail?id=8 reddwarf@opensuse.org -- Add LIB_SUFFIX support -Patch0: %{name}-0.5.5-LIB_SUFFIX.patch -# PATCH-FIX-UPSTREAM %{name}-0.5.5-pkg_config.patch reddwarf@opensuse.org -- Add pkg-config file. From upstream SVN. -Patch1: %{name}-0.5.5-pkg_config.patch -# PATCH-FIX-UPSTREAM %{name}-0.5.5-symbol_visibility.patch reddwarf@opensuse.org -- Don't export internal symbols. From upstream SVN. -Patch2: %{name}-0.5.5-symbol_visibility.patch -BuildRequires: cmake -BuildRequires: gcc-c++ -BuildRequires: pkg-config - -%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 - -%package -n %{name}%{soname} -Summary: Collection of video game music file emulators -Group: System/Libraries - -%description -n %{name}%{soname} -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 - -%package devel -Summary: Development libraries and headers for %{name} -Group: Development/Libraries/C and C++ -Requires: %{name}%{soname} = %{version} - -%description devel -The developmental files that must be installed in order to compile applications -which use %{name}. - -%prep -%setup -q -n game-music-emu-%{version} -%patch0 -%patch1 -%patch2 -sed -i 's/\r$//' changes.txt design.txt gme.txt license.txt readme.txt - -%build -export CFLAGS='%{optflags}' -export CXXFLAGS='%{optflags}' -%{__mkdir} build -cd build -cmake -DCMAKE_SKIP_RPATH=1 \ - -DCMAKE_INSTALL_PREFIX=%{_prefix} \ - -DLIB_SUFFIX=$(echo %{_lib} | cut -b4-) \ - -DCMAKE_BUILD_TYPE=Release .. -%{__make} %{?_smp_mflags} VERBOSE=1 - -%install -cd build -%make_install - -%post -n %{name}%{soname} -p /sbin/ldconfig - -%postun -n %{name}%{soname} -p /sbin/ldconfig - -%files -n %{name}%{soname} -%defattr(0644, root, root, 0755) -%doc changes.txt gme.txt license.txt readme.txt -%{_libdir}/%{name}.so.%{soname}* - -%files devel -%defattr(0644, root, root, 0755) -%doc design.txt -%{_includedir}/gme -%{_libdir}/%{name}.so -%{_libdir}/pkgconfig/%{name}.pc - -%changelog diff --git a/libgme-0.5.5-symbol_visibility.patch b/libgme-0.5.5-symbol_visibility.patch index 62cbb0d..5ddbb74 100644 --- a/libgme-0.5.5-symbol_visibility.patch +++ b/libgme-0.5.5-symbol_visibility.patch @@ -480,3 +480,30 @@ Index: CMakeLists.txt # Shared library defined here add_subdirectory(gme) +Index: gme/CMakeLists.txt +=================================================================== +--- gme/CMakeLists.txt.orig ++++ gme/CMakeLists.txt +@@ -124,21 +124,7 @@ if (USE_GME_VGM) + endif() + + # These headers are part of the generic gme interface. +-set (EXPORTED_HEADERS gme.h +- "${CMAKE_CURRENT_BINARY_DIR}/gme_types.h" +- blargg_config.h +- blargg_common.h +- blargg_source.h +- Music_Emu.h +- Blip_Buffer.h +- Classic_Emu.h +- Gme_File.h +- Data_Reader.h +- Dual_Resampler.h +- Effects_Buffer.h +- Fir_Resampler.h +- M3u_Playlist.h +- Multi_Buffer.h) ++set (EXPORTED_HEADERS gme.h) + + # Run during cmake phase, so this is available during make + configure_file(${CMAKE_CURRENT_SOURCE_DIR}/gme_types.h.in diff --git a/libgme.changes b/libgme.changes index 89c58ab..59b594b 100644 --- a/libgme.changes +++ b/libgme.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Tue May 3 20:22:22 UTC 2011 - reddwarf@opensuse.org + +- Update libgme-0.5.5-symbol_visibility.patch to not install + headers for functions that are not exported. + ------------------------------------------------------------------- Sun May 1 17:35:27 UTC 2011 - toddrme2178@gmail.com From 726d74fa3860cc0d8b1596ef47fe0af921d83626ae171ec92d3af77c38b2b188 Mon Sep 17 00:00:00 2001 From: OBS User _service Date: Tue, 3 May 2011 20:24:49 +0000 Subject: [PATCH 3/5] generated via source service OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/libgme?expand=0&rev=5 --- ...ice:download_url:game-music-emu-0.5.5.tbz2 | 3 + _service:set_version:libgme.spec | 116 ++++++++++++++++++ 2 files changed, 119 insertions(+) create mode 100644 _service:download_url:game-music-emu-0.5.5.tbz2 create mode 100644 _service:set_version:libgme.spec diff --git a/_service:download_url:game-music-emu-0.5.5.tbz2 b/_service:download_url:game-music-emu-0.5.5.tbz2 new file mode 100644 index 0000000..c1a911c --- /dev/null +++ b/_service:download_url:game-music-emu-0.5.5.tbz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ecb3586aac9feff2b3141167835f73da0c997efbdd32e559f99477ad01e19089 +size 161954 diff --git a/_service:set_version:libgme.spec b/_service:set_version:libgme.spec new file mode 100644 index 0000000..e5a10a6 --- /dev/null +++ b/_service:set_version:libgme.spec @@ -0,0 +1,116 @@ +# +# spec file for package libgme +# +# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany. +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# + + +%define soname 0 + +Name: libgme +Version: 0.5.5 +Release: 0 +License: LGPLv2.1+ +Summary: Collection of video game music file emulators +Url: http://code.google.com/p/game-music-emu/ +Group: System/Libraries +Source0: game-music-emu-%{version}.tbz2 +# PATCH-FIX-UPSTREAM %%{name}-0.5.5-LIB_SUFFIX.patch http://code.google.com/p/game-music-emu/issues/detail?id=8 reddwarf@opensuse.org -- Add LIB_SUFFIX support +Patch0: %{name}-0.5.5-LIB_SUFFIX.patch +# PATCH-FIX-UPSTREAM %%{name}-0.5.5-pkg_config.patch reddwarf@opensuse.org -- Add pkg-config file. From upstream SVN. +Patch1: %{name}-0.5.5-pkg_config.patch +# PATCH-FIX-UPSTREAM %%{name}-0.5.5-symbol_visibility.patch reddwarf@opensuse.org -- Don't export internal symbols. From upstream SVN. +Patch2: %{name}-0.5.5-symbol_visibility.patch +BuildRequires: cmake +BuildRequires: gcc-c++ +BuildRequires: pkg-config + +%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 + +%package -n %{name}%{soname} +Summary: Collection of video game music file emulators +Group: System/Libraries + +%description -n %{name}%{soname} +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 + +%package devel +Summary: Development libraries and headers for %{name} +Group: Development/Libraries/C and C++ +Requires: %{name}%{soname} = %{version} + +%description devel +The developmental files that must be installed in order to compile applications +which use %{name}. + +%prep +%setup -q -n game-music-emu-%{version} +%patch0 +%patch1 +%patch2 +sed -i 's/\r$//' changes.txt design.txt gme.txt license.txt readme.txt + +%build +export CFLAGS='%{optflags}' +export CXXFLAGS='%{optflags}' +%{__mkdir} build +cd build +cmake -DCMAKE_SKIP_RPATH=1 \ + -DCMAKE_INSTALL_PREFIX=%{_prefix} \ + -DLIB_SUFFIX=$(echo %{_lib} | cut -b4-) \ + -DCMAKE_BUILD_TYPE=Release .. +%{__make} %{?_smp_mflags} VERBOSE=1 + +%install +cd build +%make_install + +%post -n %{name}%{soname} -p /sbin/ldconfig + +%postun -n %{name}%{soname} -p /sbin/ldconfig + +%files -n %{name}%{soname} +%defattr(0644, root, root, 0755) +%doc changes.txt gme.txt license.txt readme.txt +%{_libdir}/%{name}.so.%{soname}* + +%files devel +%defattr(0644, root, root, 0755) +%doc design.txt +%{_includedir}/gme +%{_libdir}/%{name}.so +%{_libdir}/pkgconfig/%{name}.pc + +%changelog From 61b410b965aa8d2769e4179f1537a87292dfe034820ad367491520aaeaa91eab Mon Sep 17 00:00:00 2001 From: Cristian Morales Vega Date: Tue, 3 May 2011 21:05:58 +0000 Subject: [PATCH 4/5] Try to convert into a branch OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/libgme?expand=0&rev=6 --- ...ice:download_url:game-music-emu-0.5.5.tbz2 | 3 - _service:set_version:libgme.spec | 116 ------------------ libgme.spec | 2 +- 3 files changed, 1 insertion(+), 120 deletions(-) delete mode 100644 _service:download_url:game-music-emu-0.5.5.tbz2 delete mode 100644 _service:set_version:libgme.spec diff --git a/_service:download_url:game-music-emu-0.5.5.tbz2 b/_service:download_url:game-music-emu-0.5.5.tbz2 deleted file mode 100644 index c1a911c..0000000 --- a/_service:download_url:game-music-emu-0.5.5.tbz2 +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:ecb3586aac9feff2b3141167835f73da0c997efbdd32e559f99477ad01e19089 -size 161954 diff --git a/_service:set_version:libgme.spec b/_service:set_version:libgme.spec deleted file mode 100644 index e5a10a6..0000000 --- a/_service:set_version:libgme.spec +++ /dev/null @@ -1,116 +0,0 @@ -# -# spec file for package libgme -# -# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany. -# -# All modifications and additions to the file contributed by third parties -# remain the property of their copyright owners, unless otherwise agreed -# upon. The license for this file, and modifications and additions to the -# file, is the same license as for the pristine package itself (unless the -# license for the pristine package is not an Open Source License, in which -# case the license is the MIT License). An "Open Source License" is a -# license that conforms to the Open Source Definition (Version 1.9) -# published by the Open Source Initiative. - -# Please submit bugfixes or comments via http://bugs.opensuse.org/ -# - - -%define soname 0 - -Name: libgme -Version: 0.5.5 -Release: 0 -License: LGPLv2.1+ -Summary: Collection of video game music file emulators -Url: http://code.google.com/p/game-music-emu/ -Group: System/Libraries -Source0: game-music-emu-%{version}.tbz2 -# PATCH-FIX-UPSTREAM %%{name}-0.5.5-LIB_SUFFIX.patch http://code.google.com/p/game-music-emu/issues/detail?id=8 reddwarf@opensuse.org -- Add LIB_SUFFIX support -Patch0: %{name}-0.5.5-LIB_SUFFIX.patch -# PATCH-FIX-UPSTREAM %%{name}-0.5.5-pkg_config.patch reddwarf@opensuse.org -- Add pkg-config file. From upstream SVN. -Patch1: %{name}-0.5.5-pkg_config.patch -# PATCH-FIX-UPSTREAM %%{name}-0.5.5-symbol_visibility.patch reddwarf@opensuse.org -- Don't export internal symbols. From upstream SVN. -Patch2: %{name}-0.5.5-symbol_visibility.patch -BuildRequires: cmake -BuildRequires: gcc-c++ -BuildRequires: pkg-config - -%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 - -%package -n %{name}%{soname} -Summary: Collection of video game music file emulators -Group: System/Libraries - -%description -n %{name}%{soname} -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 - -%package devel -Summary: Development libraries and headers for %{name} -Group: Development/Libraries/C and C++ -Requires: %{name}%{soname} = %{version} - -%description devel -The developmental files that must be installed in order to compile applications -which use %{name}. - -%prep -%setup -q -n game-music-emu-%{version} -%patch0 -%patch1 -%patch2 -sed -i 's/\r$//' changes.txt design.txt gme.txt license.txt readme.txt - -%build -export CFLAGS='%{optflags}' -export CXXFLAGS='%{optflags}' -%{__mkdir} build -cd build -cmake -DCMAKE_SKIP_RPATH=1 \ - -DCMAKE_INSTALL_PREFIX=%{_prefix} \ - -DLIB_SUFFIX=$(echo %{_lib} | cut -b4-) \ - -DCMAKE_BUILD_TYPE=Release .. -%{__make} %{?_smp_mflags} VERBOSE=1 - -%install -cd build -%make_install - -%post -n %{name}%{soname} -p /sbin/ldconfig - -%postun -n %{name}%{soname} -p /sbin/ldconfig - -%files -n %{name}%{soname} -%defattr(0644, root, root, 0755) -%doc changes.txt gme.txt license.txt readme.txt -%{_libdir}/%{name}.so.%{soname}* - -%files devel -%defattr(0644, root, root, 0755) -%doc design.txt -%{_includedir}/gme -%{_libdir}/%{name}.so -%{_libdir}/pkgconfig/%{name}.pc - -%changelog diff --git a/libgme.spec b/libgme.spec index f142209..f5b1a76 100644 --- a/libgme.spec +++ b/libgme.spec @@ -1,7 +1,7 @@ # # spec file for package libgme # -# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed From c36d85775959f1b4a224dde34178e15ceca5260ede89e8fd1ced968b597ec45f Mon Sep 17 00:00:00 2001 From: OBS User _service Date: Tue, 3 May 2011 21:06:01 +0000 Subject: [PATCH 5/5] generated via source service OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/libgme?expand=0&rev=7 --- ...ice:download_url:game-music-emu-0.5.5.tbz2 | 3 + _service:set_version:libgme.spec | 116 ++++++++++++++++++ 2 files changed, 119 insertions(+) create mode 100644 _service:download_url:game-music-emu-0.5.5.tbz2 create mode 100644 _service:set_version:libgme.spec diff --git a/_service:download_url:game-music-emu-0.5.5.tbz2 b/_service:download_url:game-music-emu-0.5.5.tbz2 new file mode 100644 index 0000000..c1a911c --- /dev/null +++ b/_service:download_url:game-music-emu-0.5.5.tbz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ecb3586aac9feff2b3141167835f73da0c997efbdd32e559f99477ad01e19089 +size 161954 diff --git a/_service:set_version:libgme.spec b/_service:set_version:libgme.spec new file mode 100644 index 0000000..55d2fde --- /dev/null +++ b/_service:set_version:libgme.spec @@ -0,0 +1,116 @@ +# +# spec file for package libgme +# +# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany. +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# + + +%define soname 0 + +Name: libgme +Version: 0.5.5 +Release: 0 +License: LGPLv2.1+ +Summary: Collection of video game music file emulators +Url: http://code.google.com/p/game-music-emu/ +Group: System/Libraries +Source0: game-music-emu-%{version}.tbz2 +# PATCH-FIX-UPSTREAM %%{name}-0.5.5-LIB_SUFFIX.patch http://code.google.com/p/game-music-emu/issues/detail?id=8 reddwarf@opensuse.org -- Add LIB_SUFFIX support +Patch0: %{name}-0.5.5-LIB_SUFFIX.patch +# PATCH-FIX-UPSTREAM %%{name}-0.5.5-pkg_config.patch reddwarf@opensuse.org -- Add pkg-config file. From upstream SVN. +Patch1: %{name}-0.5.5-pkg_config.patch +# PATCH-FIX-UPSTREAM %%{name}-0.5.5-symbol_visibility.patch reddwarf@opensuse.org -- Don't export internal symbols. From upstream SVN. +Patch2: %{name}-0.5.5-symbol_visibility.patch +BuildRequires: cmake +BuildRequires: gcc-c++ +BuildRequires: pkg-config + +%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 + +%package -n %{name}%{soname} +Summary: Collection of video game music file emulators +Group: System/Libraries + +%description -n %{name}%{soname} +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 + +%package devel +Summary: Development libraries and headers for %{name} +Group: Development/Libraries/C and C++ +Requires: %{name}%{soname} = %{version} + +%description devel +The developmental files that must be installed in order to compile applications +which use %{name}. + +%prep +%setup -q -n game-music-emu-%{version} +%patch0 +%patch1 +%patch2 +sed -i 's/\r$//' changes.txt design.txt gme.txt license.txt readme.txt + +%build +export CFLAGS='%{optflags}' +export CXXFLAGS='%{optflags}' +%{__mkdir} build +cd build +cmake -DCMAKE_SKIP_RPATH=1 \ + -DCMAKE_INSTALL_PREFIX=%{_prefix} \ + -DLIB_SUFFIX=$(echo %{_lib} | cut -b4-) \ + -DCMAKE_BUILD_TYPE=Release .. +%{__make} %{?_smp_mflags} VERBOSE=1 + +%install +cd build +%make_install + +%post -n %{name}%{soname} -p /sbin/ldconfig + +%postun -n %{name}%{soname} -p /sbin/ldconfig + +%files -n %{name}%{soname} +%defattr(0644, root, root, 0755) +%doc changes.txt gme.txt license.txt readme.txt +%{_libdir}/%{name}.so.%{soname}* + +%files devel +%defattr(0644, root, root, 0755) +%doc design.txt +%{_includedir}/gme +%{_libdir}/%{name}.so +%{_libdir}/pkgconfig/%{name}.pc + +%changelog