From 2bfcc0c8ec3bf41ca410a060083c08b1f7120cfcdbf9c70d45614b5cfc468b81 Mon Sep 17 00:00:00 2001 From: Olaf Hering Date: Wed, 16 Dec 2015 09:17:35 +0000 Subject: [PATCH 1/2] Accepting request 349113 from home:olh:branches:multimedia:libs - Add BuildRoot: for SLE_11 OBS-URL: https://build.opensuse.org/request/show/349113 OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/libgme?expand=0&rev=11 --- libgme.changes | 5 +++++ libgme.spec | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/libgme.changes b/libgme.changes index c65a85d..bb04d49 100644 --- a/libgme.changes +++ b/libgme.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Dec 16 08:52:37 UTC 2015 - olaf@aepfle.de + +- Add BuildRoot: for SLE_11 + ------------------------------------------------------------------- Sun Mar 17 09:26:23 UTC 2013 - reddwarf@opensuse.org diff --git a/libgme.spec b/libgme.spec index c78888d..f5f41fa 100644 --- a/libgme.spec +++ b/libgme.spec @@ -1,7 +1,7 @@ # # spec file for package libgme # -# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -29,6 +29,7 @@ Source0: http://game-music-emu.googlecode.com/files/game-music-emu-%{vers # PATCH-FIX-UPSTREAM libgme-0.6.0-pkgconfig_path.patch http://code.google.com/p/game-music-emu/issues/detail?id=19 reddwarf@opensuse.org -- Fix .pc installation path Patch0: libgme-0.6.0-pkgconfig_path.patch # See http://code.google.com/p/game-music-emu/issues/detail?id=19 for the overflow/underflow warnings +BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: cmake BuildRequires: gcc-c++ BuildRequires: pkg-config From 7520ae6bb8bbd9d279dab2ba5251a33ff7d29e56761e48040d6565ae6bf34310 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ismail=20D=C3=B6nmez?= Date: Wed, 23 Dec 2015 13:50:16 +0000 Subject: [PATCH 2/2] Accepting request 350533 from home:pluskalm:branches:multimedia:libs OBS-URL: https://build.opensuse.org/request/show/350533 OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/libgme?expand=0&rev=12 --- libgme.changes | 8 ++++++++ libgme.spec | 24 +++++++----------------- 2 files changed, 15 insertions(+), 17 deletions(-) diff --git a/libgme.changes b/libgme.changes index bb04d49..c51bc45 100644 --- a/libgme.changes +++ b/libgme.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Wed Dec 23 13:09:47 UTC 2015 - mpluskal@suse.com + +- Mention baselibs.conf as source +- Use cmake macros +- Cleanup spec file with spec-cleaner +- Update project url and download location + ------------------------------------------------------------------- Wed Dec 16 08:52:37 UTC 2015 - olaf@aepfle.de diff --git a/libgme.spec b/libgme.spec index f5f41fa..c830bc2 100644 --- a/libgme.spec +++ b/libgme.spec @@ -17,22 +17,21 @@ %define soname 0 - Name: libgme Version: 0.6.0 Release: 0 Summary: Collection of video game music file emulators License: LGPL-2.1+ Group: System/Libraries -Url: http://code.google.com/p/game-music-emu/ -Source0: http://game-music-emu.googlecode.com/files/game-music-emu-%{version}.tar.bz2 +Url: https://bitbucket.org/mpyne/game-music-emu/wiki/Home +Source0: https://bitbucket.org/mpyne/game-music-emu/downloads/game-music-emu-%{version}.tar.bz2 +Source1: baselibs.conf # PATCH-FIX-UPSTREAM libgme-0.6.0-pkgconfig_path.patch http://code.google.com/p/game-music-emu/issues/detail?id=19 reddwarf@opensuse.org -- Fix .pc installation path Patch0: libgme-0.6.0-pkgconfig_path.patch -# See http://code.google.com/p/game-music-emu/issues/detail?id=19 for the overflow/underflow warnings -BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: cmake BuildRequires: gcc-c++ BuildRequires: pkg-config +BuildRoot: %{_tmppath}/%{name}-%{version}-build %description Game_Music_Emu is a collection of video game music file emulators that support @@ -48,7 +47,6 @@ the following formats and systems: - VGM/VGZ: Sega Master System/Mark III, Sega Genesis/Mega Drive,BBC Micro %package -n libgme%{soname} - Summary: Collection of video game music file emulators Group: System/Libraries @@ -80,19 +78,11 @@ which use libgme. 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 +%cmake +make %{?_smp_mflags} %install -cd build -%make_install +%cmake_install %post -n libgme%{soname} -p /sbin/ldconfig