Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37047833
en ru br
Репозитории ALT
S:0.6.3-alt2
5.1: 0.5.5-alt0.M51.1
www.altlinux.org/Changes

Группа :: Система/Библиотеки
Пакет: libgme

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

%define srcname game-music-emu
%def_with player

Summary: Game Music Emulators library
Name: libgme
Version: 0.6.3
Release: alt2
Source0: http://game-music-emu.googlecode.com/files/%{srcname}-%{version}.tbz2
License: LGPLv2+
Group: System/Libraries
#Url: http://code.google.com/p/game-music-emu/
URL:            https://bitbucket.org/mpyne/game-music-emu/wiki/Home
Packager: Motsyo Gennadi <drool at altlinux.ru>

# Automatically added by buildreq on Sun Sep 26 2010 (-bi)

BuildRequires: cmake gcc-c++ libSDL2-devel

%description
This is a collection of video game music file emulators that supports a
variety of 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 (does not 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-devel
Group: Development/C++
Summary: Game Music Emulators development library
Requires: %name = %version-%release
Provides: %name-devel = %version-%release

%description -n %name-devel
This is a collection of video game music file emulators that supports a
variety of formats and systems.

%if_with player
%package -n game-music-emu-player
Summary: Demo player utilizing Game_Music_Emu
Group: Sound
License: MIT
BuildRequires: libSDL-devel

%description -n game-music-emu-player
This package contains the demo player for files supported by Game_Music_Emu.
%endif

%prep
%setup -n %srcname-%version
%if_with player
# add install rule for the player
echo -e "\ninstall(TARGETS gme_player RUNTIME DESTINATION %{_bindir})" >> player/CMakeLists.txt
%endif

%build
cmake \
-DCMAKE_INSTALL_PREFIX=%prefix \
-DCMAKE_CXX_FLAGS:STRING="%optflags" \
%ifarch %mips riscv64
-DENABLE_UBSAN=OFF \
%endif
-DCMAKE_C_FLAGS:STRING="%optflags"
%make_build
%if_with player
# explicitly build the player as it has EXCLUDE_FROM_ALL set
%make_build gme_player
%endif

%install
%makeinstall_std
%if %_lib != lib
mv %buildroot%_prefix/lib/ %buildroot%_libdir
%endif
%if_with player
# explicitly install the player as it has EXCLUDE_FROM_ALL set
cd player
make install DESTDIR=%{buildroot}
cd ..
%endif

%files
%doc readme.txt gme.txt
%_libdir/%name.so.*

%files -n %name-devel
%doc changes.txt design.txt
%_libdir/%name.so
%_includedir/gme
%_pkgconfigdir/*.pc

%if_with player
%files -n game-music-emu-player
%{_bindir}/gme_player
%endif


%changelog

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin