view xmms-sid.spec.in @ 673:537240c47d18

It was the dawn of the third age of SID-kind, several years after the XMMS-BMP War. The Unified Audacious+XMMS-SID Project was a dream given form. Its goal: to prevent another war by creating a SID-plugin which would be functional for both worlds, where Audacious and XMMS -related code could work out their differences peacefully. It's a port of call, home away from home for coders, users, entrepreneurs, and wanderers. Humans and aliens wrapped in two million, five hundred thousand tons of spinning code, all alone in the night. It can be a dangerous place, but it's our last, best hope for peace. This is the story of the last of the XMMS-SID releases. The year is 2008. The name of the place is XMMS-SID 0.8.0rc2.
author Matti Hamalainen <ccr@tnsp.org>
date Mon, 21 Apr 2008 18:53:55 +0300
parents 22f7d703c9d2
children 5d97c21eea42
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.5, glib >= 1.2.5, 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