Mercurial > hg > xmms-sid
comparison xmms-sid.spec.in @ 335:3ea3e6f7dbcb
Removed some comment lines that broke RPM building on some platforms...
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Thu, 22 Sep 2005 02:20:00 +0000 |
parents | a4865624208f |
children | aa456183b491 |
comparison
equal
deleted
inserted
replaced
334:19c89f9ca2cc | 335:3ea3e6f7dbcb |
---|---|
1 ########################################################### | |
2 %define name @PACKAGE@ | 1 %define name @PACKAGE@ |
3 %define version @VERSION@ | 2 %define version @VERSION@ |
4 %define release 1 | 3 %define release 1 |
5 %define plugindir %(xmms-config --input-plugin-dir) | 4 %define plugindir %(xmms-config --input-plugin-dir) |
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) | |
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) | |
6 | 7 |
7 Summary: A SID-tune (C64 music) input plugin for XMMS | 8 Summary: A SID-tune (C64 music) input plugin for XMMS |
8 Name: %{name} | 9 Name: %{name} |
9 Version: %{version} | 10 Version: %{version} |
10 Release: %{release} | 11 Release: %{release} |
14 Url: http://www.tnsp.org/xmms-sid.php | 15 Url: http://www.tnsp.org/xmms-sid.php |
15 Source: http://www.tnsp.org/xs-files/%{name}-%{version}.tar.gz | 16 Source: http://www.tnsp.org/xs-files/%{name}-%{version}.tar.gz |
16 BuildRoot: %{_tmppath}/%{name}-%{version}-root | 17 BuildRoot: %{_tmppath}/%{name}-%{version}-root |
17 BuildRequires: xmms-devel >= @XMMS_VERSION@ | 18 BuildRequires: xmms-devel >= @XMMS_VERSION@ |
18 Requires: gtk+ >= 1.2.5, glib >= 1.2.5, xmms >= @XMMS_VERSION@ | 19 Requires: gtk+ >= 1.2.5, glib >= 1.2.5, xmms >= @XMMS_VERSION@ |
20 %if %{withSID1} == 1 | |
21 Requires: libsidplay | |
22 %else | |
23 %define optSID1 --without-sidplay1 | |
24 %endif | |
25 %if %{withSID2} == 1 | |
26 Requires: libsidplay2 >= 2.1.1 | |
27 %else | |
28 %define optSID2 --without-sidplay2 | |
29 %endif | |
19 | 30 |
20 ########################################################### | |
21 %description | 31 %description |
22 Input plugin for XMMS to play SID-tunes (Music from Commodore | 32 Input plugin for XMMS to play SID-tunes (Music from Commodore |
23 64 games/demos/etc.). Supports either (or both) libSIDPlay | 33 64 games/demos/etc.). Supports either (or both) libSIDPlay |
24 v1.x or v2.x. Includes extensive configurability (settings for | 34 v1.x or v2.x. Includes extensive configurability (settings for |
25 filters and other SID-emulation parameters, extensive fileinfo), | 35 filters and other SID-emulation parameters, extensive fileinfo), |
31 oder beide. Enthält erweiterte Konfiguriermöglichkeiten, wie | 41 oder beide. Enthält erweiterte Konfiguriermöglichkeiten, wie |
32 Filtereinstellungen, diverse Parameter für die SID-Emulation und | 42 Filtereinstellungen, diverse Parameter für die SID-Emulation und |
33 ausführlichere Fileinformationen), Unterstützung der STIL Datenbank, | 43 ausführlichere Fileinformationen), Unterstützung der STIL Datenbank, |
34 Song-Längen Datenbank und vieles mehr. | 44 Song-Längen Datenbank und vieles mehr. |
35 | 45 |
36 ########################################################### | |
37 %prep | 46 %prep |
38 %setup -q | 47 %setup -q |
39 | 48 |
40 ########################################################### | |
41 %build | 49 %build |
42 export CFLAGS="$RPM_OPT_FLAGS" CPPFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_FLAGS"; | 50 export CFLAGS="$RPM_OPT_FLAGS" CPPFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_FLAGS"; |
43 %configure --libdir=%{plugindir} | 51 %configure --libdir=%{plugindir} %{optSID1} %{optSID2} |
44 make | 52 make |
45 | 53 |
46 ########################################################### | |
47 %install | 54 %install |
48 [ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT | 55 [ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT |
49 %makeinstall libdir=$RPM_BUILD_ROOT/%{plugindir} | 56 %makeinstall libdir=$RPM_BUILD_ROOT/%{plugindir} |
50 | 57 |
51 ########################################################### | |
52 %post -p /sbin/ldconfig | 58 %post -p /sbin/ldconfig |
53 | 59 |
54 ########################################################### | |
55 %postun -p /sbin/ldconfig | 60 %postun -p /sbin/ldconfig |
56 | 61 |
57 ########################################################### | |
58 %clean | 62 %clean |
59 [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT | 63 [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT |
60 | 64 |
61 ########################################################### | |
62 %files | 65 %files |
63 %defattr(-, root, root) | 66 %defattr(-, root, root) |
64 %doc AUTHORS COPYING FAQ NEWS README* THANKS TODO BUGS xmms-1.2.10-songpos.patch | 67 %doc AUTHORS COPYING FAQ NEWS README* THANKS TODO BUGS xmms-1.2.10-songpos.patch |
65 %{plugindir}/libxmmssid.* | 68 %{plugindir}/libxmmssid.* |
66 %{_datadir}/xmms-sid | 69 %{_datadir}/xmms-sid |