From 4a1063965e70f4925bb82b624f27c7724500e82b903f2dda0674b5fdbcf926be Mon Sep 17 00:00:00 2001 From: Cristian Morales Vega Date: Tue, 3 May 2011 20:24:43 +0000 Subject: [PATCH] - 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