0
|
1 # RPM spec file for BMP
|
|
2
|
|
3 # FIXME: The bmp RPM requires libasound.so.* without --with alsa. Need to
|
|
4 # disable autoreq.
|
|
5
|
|
6 # XMMS legacy
|
|
7 %{?_with_xmmseq: %define xmmseq 1}
|
|
8 %{!?_with_xmmseq: %define xmmseq 0}
|
|
9
|
|
10 # plugins
|
|
11 %{?_with_alsa: %define alsa 1}
|
|
12 %{!?_with_alsa: %define alsa 0}
|
|
13 %{?_with_mp3: %define mp3 1}
|
|
14 %{!?_with_mp3: %define mp3 0}
|
|
15
|
|
16 # GNOME support
|
|
17 %{?_with_gconf: %define gconf 1}
|
|
18 %{!?_with_gconf: %define gconf 0}
|
|
19 %{?_with_gnomevfs: %define gnomevfs 1}
|
|
20 %{!?_with_gnomevfs: %define gnomevfs 0}
|
|
21
|
|
22 Summary: Audacious
|
749
|
23 Name: @PACKAGE_NAME@
|
|
24 Version: @PACKAGE_VERSION@
|
0
|
25 Release: 1
|
|
26 Epoch: 0
|
|
27 License: GPL
|
|
28 Group: Applications/Multimedia
|
|
29 Url: http://audacious.nenolod.net
|
|
30 Source0: %{name}-%{version}.tar.gz
|
|
31 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
32
|
|
33 Requires: unzip
|
|
34 BuildRequires: gtk2-devel >= 2.4.0, libglade2-devel >= 2.3.1
|
|
35
|
|
36 %if %{gconf}
|
|
37 BuildRequires: GConf2-devel >= 2.4.0
|
|
38 %endif
|
|
39
|
|
40 %if %{gnomevfs}
|
|
41 BuildRequires: gnome-vfs2-devel >= 2.4.0
|
|
42 %endif
|
|
43
|
|
44 %description
|
|
45 Audacious is a fork of Beep Media Player(BMP).
|
|
46 Beep Media Player(BMP) is a GTK2 port of the popular X Multimedia
|
|
47 System(XMMS) and more.
|
|
48
|
|
49 Build options:
|
|
50 --with: alsa mp3 gconf gnomevfs xmmseq
|
|
51
|
|
52 %package devel
|
|
53 Summary: BMP - Static libraries and header files.
|
|
54 Group: Applications/Multimedia
|
|
55 Requires: %{name} = %{epoch}:%{version}-%{release}
|
|
56
|
|
57 %description devel
|
|
58 Static libraries and header files required for compiling BMP plugins.
|
|
59
|
|
60 %if %{mp3}
|
|
61 %package mp3
|
|
62 Summary: BMP - MP3 output plugin
|
|
63 Group: Applications/Multimedia
|
|
64 Requires: %{name} = %{epoch}:%{version}-%{release}
|
|
65
|
|
66 %description mp3
|
|
67 MP3 input plugin for BMP.
|
|
68 %endif
|
|
69
|
|
70 %if %{alsa}
|
|
71 %package alsa
|
|
72 Summary: BMP - ALSA output plugin
|
|
73 Group: Applications/Multimedia
|
|
74 Requires: %{name} = %{epoch}:%{version}-%{release}
|
|
75 BuildRequires: alsa-lib-devel >= 1.0.0
|
|
76
|
|
77 %description alsa
|
|
78 Output plugin for BMP to use with the Advanced Linux Sound
|
|
79 Architecture (ALSA).
|
|
80 %endif
|
|
81
|
|
82 %prep
|
|
83 %setup -q
|
|
84
|
|
85 %build
|
|
86 %configure \
|
|
87 --disable-opengl \
|
|
88 %{!?_with_alsa:--disable-alsa} \
|
|
89 %{!?_with_mp3:--disable-mp3} \
|
|
90 %{?_with_gconf:--enable-gconf} \
|
|
91 %{?_with_gnomevfs:--enable-gnome-vfs} \
|
|
92 %{?_with_xmmseq:--with-xmms-eq}
|
|
93 make %{_smp_mflags}
|
|
94
|
|
95 %install
|
|
96 rm -rf $RPM_BUILD_ROOT
|
|
97 make install DESTDIR=$RPM_BUILD_ROOT
|
|
98 %find_lang %{name}
|
|
99
|
|
100 rm -f $RPM_BUILD_ROOT%{_libdir}/bmp/*/*.la
|
|
101
|
|
102 %post -p /sbin/ldconfig
|
|
103 %postun -p /sbin/ldconfig
|
|
104
|
|
105 %clean
|
|
106 rm -rf $RPM_BUILD_ROOT
|
|
107
|
|
108 %files -f %{name}.lang
|
|
109 %defattr(-,root,root,-)
|
|
110 %doc AUTHORS COPYING ChangeLog NEWS README
|
|
111 %{_bindir}/beep-media-player
|
|
112 %{_datadir}/bmp/
|
|
113 %{_datadir}/pixmaps/*
|
|
114 %{_datadir}/applications/bmp.desktop
|
|
115 %{_libdir}/libbeep.so.*
|
|
116 %{_libdir}/bmp/Input/libcdaudio.so
|
|
117 %{_libdir}/bmp/Input/libvorbis.so
|
|
118 %{_libdir}/bmp/Input/libwav.so
|
|
119 %{_libdir}/bmp/Output/libOSS.so
|
|
120 %{_libdir}/bmp/Output/libesdout.so
|
|
121 %{_libdir}/bmp/Visualization/libbscope.so
|
|
122 %{_mandir}/man1/*
|
|
123
|
|
124 %files devel
|
|
125 %defattr(-,root,root,-)
|
|
126 %{_libdir}/pkgconfig/bmp.pc
|
|
127 %{_libdir}/lib*.so
|
|
128 #%{_libdir}/lib*.a
|
|
129 %{_libdir}/lib*.la
|
|
130 %{_includedir}/bmp
|
|
131
|
|
132 %if %{alsa}
|
|
133 %files alsa
|
|
134 %defattr(-,root,root,-)
|
|
135 %{_libdir}/bmp/Output/libALSA.so
|
|
136 %endif
|
|
137
|
|
138 %if %{mp3}
|
|
139 %files mp3
|
|
140 %defattr(-,root,root,-)
|
|
141 %{_libdir}/bmp/Input/libmpg123.so
|
|
142 %endif
|
|
143
|
|
144
|
|
145 %changelog
|
|
146 * Sat Oct 22 2005 Chong Kai Xiong <descender@phreaker.net> - 0:0.9.7.1-1
|
|
147 - Remove .la files instead of using %exclude
|
|
148 - Rename Copyright to License
|
|
149
|
|
150 * Sat Dec 4 2004 Chong Kai Xiong <descender@phreaker.net> - 0:0.9.7-2
|
|
151 - remove duplicate listings in %files
|
|
152 - fix libglade2-devel version requirement
|
|
153 - add option to build with XMMS equalization
|
|
154
|
|
155 * Tue Jul 6 2004 Chong Kai Xiong <descender@phreaker.net> 0:0.9.7-1
|
|
156 - fixed file list to own package-specific directories
|
|
157 - remove vendor, add epoch tag, explicit requires, add unzip to requires
|
|
158 - force version match between plugins and main package
|
|
159 - use %find_lang
|
|
160 - don't install INSTALL
|
|
161
|
|
162 * Thu Jun 24 2004 Chong Kai Xiong <descender@phreaker.net> 0.9.7-3
|
|
163 - added support for GConf and GNOME VFS
|
|
164 - fixed file list
|
|
165
|
|
166 * Fri May 28 2004 Chong Kai Xiong <descender@phreaker.net> 0.9.7-2
|
|
167 - require libglade 2.0
|
|
168
|
|
169 * Sun Apr 05 2004 Chong Kai Xiong <descender@phreaker.net> 0.9.7-1
|
|
170 - require GTK 2.4 and ALSA 1.0
|
|
171
|
|
172 * Tue Jan 13 2004 David Lau <coder_sku@sourceforge.net> 0.9.6-3
|
|
173 - removes plugin .la's
|
|
174
|
|
175 * Wed Dec 24 2003 Chong Kai Xiong <descender@phreaker.net> 0.9.6-2
|
|
176 - first fully usable version
|
|
177
|
|
178 * Tue Nov 29 2003 Chong Kai Xiong <descender@phreaker.net> 0.9.6-1
|
|
179 - added support for --with switches
|
|
180
|
|
181 * Tue Nov 11 2003 Chong Kai Xiong <descender@phreaker.net> 1.0.0pre6
|
|
182 - initial build
|