Mercurial > hg > xmms-sid
annotate xmms-sid.spec.in @ 405:773885f3b723
int -> gint
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Fri, 02 Jun 2006 12:31:04 +0000 |
parents | 3ea3e6f7dbcb |
children | aa456183b491 |
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@ |
165
8713f0017dec
Tweaked required versions of XMMS and Gtk
Matti Hamalainen <ccr@tnsp.org>
parents:
158
diff
changeset
|
19 Requires: gtk+ >= 1.2.5, glib >= 1.2.5, 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 |
93 | 38 %description -l de |
176 | 39 Input-Plugin für XMMS um SID-musiken (Musik aus Commodore64 Spielen, |
93 | 40 Demos, etc) abzuspielen. Unterstützt entweder libSidPlay V1.x, V2.x |
41 oder beide. Enthält erweiterte Konfiguriermöglichkeiten, wie | |
42 Filtereinstellungen, diverse Parameter für die SID-Emulation und | |
43 ausführlichere Fileinformationen), Unterstützung der STIL Datenbank, | |
44 Song-Längen Datenbank und vieles mehr. | |
45 | |
11 | 46 %prep |
47 %setup -q | |
48 | |
49 %build | |
50 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
|
51 %configure --libdir=%{plugindir} %{optSID1} %{optSID2} |
93 | 52 make |
11 | 53 |
54 %install | |
55 [ -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
|
56 %makeinstall libdir=$RPM_BUILD_ROOT/%{plugindir} |
11 | 57 |
58 %post -p /sbin/ldconfig | |
93 | 59 |
11 | 60 %postun -p /sbin/ldconfig |
61 | |
62 %clean | |
93 | 63 [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT |
11 | 64 |
65 %files | |
66 %defattr(-, root, root) | |
158 | 67 %doc AUTHORS COPYING FAQ NEWS README* THANKS TODO BUGS xmms-1.2.10-songpos.patch |
287 | 68 %{plugindir}/libxmmssid.* |
317 | 69 %{_datadir}/xmms-sid |