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
This commit is contained in:
Ismail Dönmez 2015-12-23 13:50:16 +00:00 committed by Git OBS Bridge
parent 2bfcc0c8ec
commit 7520ae6bb8
2 changed files with 15 additions and 17 deletions

View File

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

View File

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