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] 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