Mercurial > hg > xmms-sid
annotate 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 |
rev | line source |
---|---|
11 | 1 %define name @PACKAGE@ |
2 %define version @VERSION@ | |
3 %define release 1 | |
287 | 4 %define plugindir %(xmms-config --input-plugin-dir) |
335
3ea3e6f7dbcb
Removed some comment lines that broke RPM building on some platforms...
Matti Hamalainen <ccr@tnsp.org>
parents:
317
diff
changeset
|
5 %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) |
3ea3e6f7dbcb
Removed some comment lines that broke RPM building on some platforms...
Matti Hamalainen <ccr@tnsp.org>
parents:
317
diff
changeset
|
6 %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) |
11 | 7 |
93 | 8 Summary: A SID-tune (C64 music) input plugin for XMMS |
11 | 9 Name: %{name} |
10 Version: %{version} | |
11 Release: %{release} | |
12 Copyright: GPL | |
13 Group: Applications/Multimedia | |
268 | 14 Vendor: Matti 'ccr' Hämäläinen <ccr@tnsp.org> |
11 | 15 Url: http://www.tnsp.org/xmms-sid.php |
93 | 16 Source: http://www.tnsp.org/xs-files/%{name}-%{version}.tar.gz |
17 BuildRoot: %{_tmppath}/%{name}-%{version}-root | |
133
79a526595d16
Fixed spec-file generation and errors in the specfile.
Matti Hamalainen <ccr@tnsp.org>
parents:
97
diff
changeset
|
18 BuildRequires: xmms-devel >= @XMMS_VERSION@ |
746 | 19 Requires: gtk+ >= 1.2.10, glib >= 1.2.10, xmms >= @XMMS_VERSION@ |
335
3ea3e6f7dbcb
Removed some comment lines that broke RPM building on some platforms...
Matti Hamalainen <ccr@tnsp.org>
parents:
317
diff
changeset
|
20 %if %{withSID1} == 1 |
3ea3e6f7dbcb
Removed some comment lines that broke RPM building on some platforms...
Matti Hamalainen <ccr@tnsp.org>
parents:
317
diff
changeset
|
21 Requires: libsidplay |
3ea3e6f7dbcb
Removed some comment lines that broke RPM building on some platforms...
Matti Hamalainen <ccr@tnsp.org>
parents:
317
diff
changeset
|
22 %else |
3ea3e6f7dbcb
Removed some comment lines that broke RPM building on some platforms...
Matti Hamalainen <ccr@tnsp.org>
parents:
317
diff
changeset
|
23 %define optSID1 --without-sidplay1 |
3ea3e6f7dbcb
Removed some comment lines that broke RPM building on some platforms...
Matti Hamalainen <ccr@tnsp.org>
parents:
317
diff
changeset
|
24 %endif |
3ea3e6f7dbcb
Removed some comment lines that broke RPM building on some platforms...
Matti Hamalainen <ccr@tnsp.org>
parents:
317
diff
changeset
|
25 %if %{withSID2} == 1 |
3ea3e6f7dbcb
Removed some comment lines that broke RPM building on some platforms...
Matti Hamalainen <ccr@tnsp.org>
parents:
317
diff
changeset
|
26 Requires: libsidplay2 >= 2.1.1 |
3ea3e6f7dbcb
Removed some comment lines that broke RPM building on some platforms...
Matti Hamalainen <ccr@tnsp.org>
parents:
317
diff
changeset
|
27 %else |
3ea3e6f7dbcb
Removed some comment lines that broke RPM building on some platforms...
Matti Hamalainen <ccr@tnsp.org>
parents:
317
diff
changeset
|
28 %define optSID2 --without-sidplay2 |
3ea3e6f7dbcb
Removed some comment lines that broke RPM building on some platforms...
Matti Hamalainen <ccr@tnsp.org>
parents:
317
diff
changeset
|
29 %endif |
11 | 30 |
31 %description | |
93 | 32 Input plugin for XMMS to play SID-tunes (Music from Commodore |
33 64 games/demos/etc.). Supports either (or both) libSIDPlay | |
34 v1.x or v2.x. Includes extensive configurability (settings for | |
35 filters and other SID-emulation parameters, extensive fileinfo), | |
36 has STIL-database support, song-length database support and more. | |
11 | 37 |
414
aa456183b491
Add mention of HVSC in spec-file.
Matti Hamalainen <ccr@tnsp.org>
parents:
335
diff
changeset
|
38 High Voltage SID Collection (HVSC) contains over 30,000 SID-tunes |
aa456183b491
Add mention of HVSC in spec-file.
Matti Hamalainen <ccr@tnsp.org>
parents:
335
diff
changeset
|
39 for your listening pleasure, http://hvsc.c64.org/ |
aa456183b491
Add mention of HVSC in spec-file.
Matti Hamalainen <ccr@tnsp.org>
parents:
335
diff
changeset
|
40 |
93 | 41 %description -l de |
176 | 42 Input-Plugin für XMMS um SID-musiken (Musik aus Commodore64 Spielen, |
93 | 43 Demos, etc) abzuspielen. Unterstützt entweder libSidPlay V1.x, V2.x |
44 oder beide. Enthält erweiterte Konfiguriermöglichkeiten, wie | |
45 Filtereinstellungen, diverse Parameter für die SID-Emulation und | |
46 ausführlichere Fileinformationen), Unterstützung der STIL Datenbank, | |
47 Song-Längen Datenbank und vieles mehr. | |
48 | |
11 | 49 %prep |
50 %setup -q | |
51 | |
52 %build | |
53 export CFLAGS="$RPM_OPT_FLAGS" CPPFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_FLAGS"; | |
335
3ea3e6f7dbcb
Removed some comment lines that broke RPM building on some platforms...
Matti Hamalainen <ccr@tnsp.org>
parents:
317
diff
changeset
|
54 %configure --libdir=%{plugindir} %{optSID1} %{optSID2} |
93 | 55 make |
11 | 56 |
57 %install | |
58 [ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT | |
133
79a526595d16
Fixed spec-file generation and errors in the specfile.
Matti Hamalainen <ccr@tnsp.org>
parents:
97
diff
changeset
|
59 %makeinstall libdir=$RPM_BUILD_ROOT/%{plugindir} |
11 | 60 |
61 %post -p /sbin/ldconfig | |
93 | 62 |
11 | 63 %postun -p /sbin/ldconfig |
64 | |
65 %clean | |
93 | 66 [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT |
11 | 67 |
68 %files | |
69 %defattr(-, root, root) | |
415 | 70 %doc AUTHORS COPYING FAQ NEWS README THANKS TODO BUGS xmms-1.2.10-songpos.patch |
287 | 71 %{plugindir}/libxmmssid.* |
317 | 72 %{_datadir}/xmms-sid |