view xmms-sid.spec.in @ 957:0e60e5d56fdd

Change how the backend emulator library is initialized for libSIDPlay2 and FP, as it seems the engine configuration has some persistence despite reconfiguration between loaded files if same engine object is retained. This caused, for example, 2SID stereo tunes being played "mono" if played after a normal 1-SID tune. Duh.
author Matti Hamalainen <ccr@tnsp.org>
date Tue, 20 Nov 2012 22:13:48 +0200
parents 5d97c21eea42
children
line wrap: on
line source

%define	name	@PACKAGE@
%define	version	@VERSION@
%define	release	1
%define plugindir %(xmms-config --input-plugin-dir)
%define withSID1 %(if test -z "`rpm -q --whatprovides libsidplay.so.1 2>/dev/null | grep -v '^no package provides'`"; then echo 0; else echo 1; fi)
%define withSID2 %(if test -z "`rpm -q --whatprovides libsidplay2.so.1 2>/dev/null | grep -v '^no package provides'`" ; then echo 0; else echo 1; fi)

Summary:	A SID-tune (C64 music) input plugin for XMMS
Name:		%{name}
Version:	%{version}
Release:	%{release}
Copyright:	GPL
Group:		Applications/Multimedia
Vendor:		Matti 'ccr' Hämäläinen <ccr@tnsp.org>
Url:		http://www.tnsp.org/xmms-sid.php
Source:		http://www.tnsp.org/xs-files/%{name}-%{version}.tar.gz
BuildRoot:	%{_tmppath}/%{name}-%{version}-root
BuildRequires:	xmms-devel >= @XMMS_VERSION@
Requires:	gtk+ >= 1.2.10, glib >= 1.2.10, xmms >= @XMMS_VERSION@
%if %{withSID1} == 1
Requires:	libsidplay
%else
%define optSID1 --without-sidplay1
%endif
%if %{withSID2} == 1
Requires:	libsidplay2 >= 2.1.1
%else
%define optSID2 --without-sidplay2
%endif

%description
Input plugin for XMMS to play SID-tunes (Music from Commodore
64 games/demos/etc.). Supports either (or both) libSIDPlay
v1.x or v2.x. Includes extensive configurability (settings for
filters and other SID-emulation parameters, extensive fileinfo),
has STIL-database support, song-length database support and more.

High Voltage SID Collection (HVSC) contains over 30,000 SID-tunes
for your listening pleasure, http://hvsc.c64.org/

%description -l de
Input-Plugin für XMMS um SID-musiken (Musik aus Commodore64 Spielen,
Demos, etc) abzuspielen. Unterstützt entweder libSidPlay V1.x, V2.x
oder beide. Enthält erweiterte Konfiguriermöglichkeiten, wie
Filtereinstellungen, diverse Parameter für die SID-Emulation und
ausführlichere Fileinformationen), Unterstützung der STIL Datenbank,
Song-Längen Datenbank und vieles mehr.

%prep
%setup -q

%build
export CFLAGS="$RPM_OPT_FLAGS" CPPFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_FLAGS";
%configure --libdir=%{plugindir} %{optSID1} %{optSID2}
make

%install
[ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT
%makeinstall libdir=$RPM_BUILD_ROOT/%{plugindir}

%post	-p /sbin/ldconfig

%postun -p /sbin/ldconfig

%clean
[ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT

%files
%defattr(-, root, root)
%doc AUTHORS COPYING FAQ NEWS README THANKS TODO BUGS xmms-1.2.10-songpos.patch
%{plugindir}/libxmmssid.*
%{_datadir}/xmms-sid