]> git.pld-linux.org Git - packages/bmpx.git/blob - bmpx.spec
f536ba8cd515324b1675762d8787a97854ff3a47
[packages/bmpx.git] / bmpx.spec
1 #
2 # Conditional build:
3 %bcond_with     gstreamer       # build with GStreamer support (instead of XINE)
4 #
5 Summary:        Sound player with the WinAmp GUI, for Unix-based systems for GTK+
6 Summary(pl):    Odtwarzacz d¼wiêku z interfejsem WinAmpa dla GTK+
7 Name:           bmpx
8 Version:        0.12.4
9 Release:        1
10 License:        GPL v2
11 Group:          X11/Applications/Sound
12 Source0:        http://bmpx.kicks-ass.net/downloads/0.12/%{name}-%{version}.tar.bz2
13 # Source0-md5:  6fbe6047ed4f658c602cae2b17222438
14 Source1:        mp3license
15 Patch1:         %{name}-desktop.patch
16 URL:            http://bmpx.berlios.de/
17 BuildRequires:  autoconf
18 BuildRequires:  automake
19 BuildRequires:  curl-devel
20 BuildRequires:  dbus-glib-devel
21 BuildRequires:  esound-devel >= 0.2.8
22 BuildRequires:  fam-devel
23 BuildRequires:  gtk+2-devel >= 2:2.8.0
24 BuildRequires:  libglade2-devel >= 1:2.5.1
25 BuildRequires:  libvorbis-devel >= 1:1.0
26 BuildRequires:  rpm-pythonprov
27 BuildRequires:  rpmbuild(macros) >= 1.194
28 BuildRequires:  taglib-devel
29 %if %{with gstreamer}
30 # there is no gstreamer 0.9.x in PLD cvs yet!
31 BuildRequires:  gstreamer-devel >= 0.9.1
32 %else
33 BuildRequires:  xine-lib-devel
34 %endif
35 Requires:       %{name}-libs = %{epoch}:%{version}-%{release}
36 Requires:       %{name}-plugin-container = %{epoch}:%{version}-%{release}
37 Requires:       %{name}-plugin-flow = %{epoch}:%{version}-%{release}
38 Requires:       %{name}-plugin-transport = %{epoch}:%{version}-%{release}
39 Requires:       libhrel = 0.1-%{release}
40 %if %{with gstreamer}
41 Requires:       gstreamer-audio-effects
42 Requires:       gstreamer-audio-formats
43 Requires:       gstreamer-audiosink
44 %else
45 Requires:       xine-plugin-audio
46 %endif
47 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
48
49 %description
50 BMPx is the follow-up of the BMP project with a codebase rewritten
51 from scratch and aims to maintain a stable audio player foundation,
52 and to provide a player with a consistent and easy to understand usage
53 experience.
54
55 %description -l pl
56 BMPx jest nastêpc± projektu BMP z przepisanym od zera kodem i skupia
57 siê na utrzymaniu stabilnej podstawy odtwarzacza d¼wiêku, aby
58 udostêpniæ odtwarzacz ze spójn± i ³atw± do zrozumienia obs³ug±.
59
60 %package libs
61 Summary:        BMPx player library
62 Summary(pl):    Biblioteka odtwarzacza BMPx
63 Group:          X11/Development/Libraries
64
65 %description libs
66 BMPx player library.
67
68 %description libs -l pl
69 Biblioteka odtwarzacza BMPx.
70
71 %package devel
72 Summary:        Header files for BMPx media player
73 Summary(pl):    Pliki nag³ówkowe odtwarzacza multimedialnego BMPx
74 Group:          X11/Development/Libraries
75 Requires:       %{name}-libs = %{epoch}:%{version}-%{release}
76 Requires:       libchroma-devel
77 Requires:       libhrel-devel
78
79 %description devel
80 Header files required for compiling BMPx media player plugins.
81
82 %description devel -l pl
83 Pliki nag³ówkowe potrzebne do kompilowania wtyczek odtwarzacza
84 multimedialnego BMPx.
85
86 %package static
87 Summary:        Static BMPx library
88 Summary(pl):    Statyczna biblioteka BMPx
89 Group:          X11/Development/Libraries
90 Requires:       %{name}-devel = %{epoch}:%{version}-%{release}
91
92 %description static
93 Static BMPx library.
94
95 %description static -l pl
96 Statyczna biblioteka BMPx.
97
98 %package plugin-container
99 Summary:        Container plugin for BMPx
100 Summary(pl):    Wtyczka Container dla BMPx
101 Group:          X11/Applications/Sound
102 Requires:       %{name} = %{epoch}:%{version}-%{release}
103
104 %description plugin-container
105 Plugin providing support for folders, m3u & pls playlist files, etc.
106
107 %description plugin-container -l pl
108 Wtyczka dodaj±ca obs³ugê folderów, playlist w formacie m3u i pls, itp.
109
110 %package plugin-flow
111 Summary:        Flow plugin for BMPx
112 Summary(pl):    Wtyczka Flow dla BMPx
113 Group:          X11/Applications/Sound
114 Requires:       %{name} = %{epoch}:%{version}-%{release}
115
116 %description plugin-flow
117 Flow plugin for BMPx.
118
119 %description plugin-flow -l pl
120 Wtyczka Flow dla BMPx.
121
122 %package plugin-transport
123 Summary:        Transport plugin for BMPx
124 Summary(pl):    Wtyczka Transport dla BMPx
125 Group:          X11/Applications/Sound
126 Requires:       %{name} = %{epoch}:%{version}-%{release}
127
128 %description plugin-transport
129 Transport plugin for BMPx.
130
131 %description plugin-transport -l pl
132 Wtyczka Transport dla BMPx.
133
134 %package remote-curses
135 Summary:        BMPx python status watcher
136 Summary(pl):    Obserwator statusu BMPx w pythonie
137 Group:          X11/Applications/Sound
138 Requires:       %{name} = %{epoch}:%{version}-%{release}
139
140 %description remote-curses
141 BMPx python status watcher (CLI interface).
142
143 %description remote-curses -l pl
144 Obserwator statusu BMPx w pythonie (interfejs CLI).
145
146 %package remote-gtk
147 Summary:        BMPx python status watcher
148 Summary(pl):    Obserwator statusu BMPx w pythonie
149 Group:          X11/Applications/Sound
150 Requires:       %{name} = %{epoch}:%{version}-%{release}
151 Requires:       python-dbus
152 Requires:       python-pygtk-glade
153
154 %description remote-gtk
155 BMPx python status watcher (GTK+ interface).
156
157 %description remote-gtk -l pl
158 Obserwator statusu BMPx w pythonie (interfejs GTK+).
159
160 %package -n libchroma
161 Summary:        Chroma library
162 Summary(pl):    Biblioteka Chroma
163 Group:          X11/Development/Libraries
164 Version:        0.1
165
166 %description -n libchroma
167 Chroma library.
168
169 %description -n libchroma -l pl
170 Biblioteka Chroma.
171
172 %package -n libchroma-devel
173 Summary:        Header files for Chroma library
174 Summary(pl):    Pliki nag³ówkowe biblioteki Chroma
175 Group:          X11/Development/Libraries
176 Requires:       libchroma = %{epoch}:%{version}-%{release}
177 Version:        0.1
178
179 %description -n libchroma-devel
180 Header files for Chroma library.
181
182 %description -n libchroma-devel -l pl
183 Pliki nag³ówkowe biblioteki Chroma.
184
185 %package -n libhrel
186 Summary:        Holyrel library
187 Summary(pl):    Biblioteka Holyrel
188 Group:          X11/Development/Libraries
189 Version:        0.1
190
191 %description -n libhrel
192 Holyrel library.
193
194 %description -n libhrel -l pl
195 Biblioteka Holyrel.
196
197 %package -n libhrel-devel
198 Summary:        Header files for Holyrel library
199 Summary(pl):    Pliki nag³ówkowe biblioteki Holyrel
200 Group:          X11/Development/Libraries
201 Requires:       libhrel = %{epoch}:%{version}-%{release}
202 Version:        0.1
203
204 %description -n libhrel-devel
205 Header files for Holyrel library.
206
207 %description -n libhrel-devel -l pl
208 Pliki nag³ówkowe biblioteki Holyrel.
209
210 %prep
211 %setup -q
212 %patch1 -p1
213
214 %build
215 rm -rf autom4te.cache
216 %{__aclocal} -I m4
217 %{__autoconf}
218 %{__autoheader}
219 %{__automake}
220 %configure \
221 %if %{with gstreamer}
222         --enable-gst \
223         --disable-xine
224 %else
225         --enable-xine \
226 %endif
227         --enable-shared \
228         --enable-static
229 %{__make}
230
231 %install
232 rm -rf $RPM_BUILD_ROOT
233
234 %{__make} install \
235         DESTDIR=$RPM_BUILD_ROOT \
236         m4datadir=%{_aclocaldir}
237
238 rm -f $RPM_BUILD_ROOT%{_datadir}/bmpx/data/GPL.txt
239
240 install -d $RPM_BUILD_ROOT%{_pixmapsdir}
241 mv -f $RPM_BUILD_ROOT%{_iconsdir}/hicolor/48x48/apps/bmpx.png \
242         $RPM_BUILD_ROOT%{_pixmapsdir}
243
244 rm -f $RPM_BUILD_ROOT%{_libdir}/bmpx/plugins/*/*.{a,la}
245 rm -f $RPM_BUILD_ROOT%{_bindir}/{ctt,hash_*,hrel-demo}
246
247 %find_lang %{name}
248
249 %clean
250 rm -rf $RPM_BUILD_ROOT
251
252 %post
253 umask 022
254 [ ! -x /usr/bin/update-desktop-database ] || /usr/bin/update-desktop-database >/dev/null 2>&1 ||:
255
256 %if %{with gstreamer}
257 %banner %{name} -e << EOF
258 Remember to install appropriate GStreamer plugins for files
259 you want to play:
260 - gstreamer-flac (for FLAC)
261 - gstreamer-mad (for MP3s)
262 - gstreamer-vorbis (for Ogg Vorbis)
263 EOF
264 %else
265 %banner %{name} -e << EOF
266 Remember to install appropriate xine-decode plugins for files
267 you want to play:
268 - xine-decode-flac (for FLAC)
269 - xine-decode-ogg (for Ogg Vorbis)
270 EOF
271 %endif
272
273 %postun
274 if [ $1 = 0 ]; then
275     umask 022
276     [ ! -x /usr/bin/update-desktop-database ] || /usr/bin/update-desktop-database >/dev/null 2>&1
277 fi
278
279 %post   libs -p /sbin/ldconfig
280 %postun libs -p /sbin/ldconfig
281
282 %post   -n libchroma -p /sbin/ldconfig
283 %postun -n libchroma -p /sbin/ldconfig
284
285 %post   -n libhrel -p /sbin/ldconfig
286 %postun -n libhrel -p /sbin/ldconfig
287
288 %files -f %{name}.lang
289 %defattr(644,root,root,755)
290 %doc AUTHORS ChangeLog NEWS README
291 %attr(755,root,root) %{_bindir}/bmpx
292 %attr(755,root,root) %{_bindir}/bmp-dbus-*
293 %dir %{_libdir}/bmpx
294 %dir %{_libdir}/bmpx/plugins
295 %{_mandir}/man*/*
296 %{_datadir}/bmpx
297 %{_desktopdir}/*
298 %{_pixmapsdir}/*
299
300 %files libs
301 %defattr(644,root,root,755)
302 %attr(755,root,root) %{_libdir}/libskinned.so.*.*.*
303
304 %files devel
305 %defattr(644,root,root,755)
306 %attr(755,root,root) %{_libdir}/libskinned.so
307 %{_libdir}/libskinned.la
308 %{_includedir}/bmpx
309
310 %files static
311 %defattr(644,root,root,755)
312 %{_libdir}/*.a
313
314 %files plugin-container
315 %defattr(644,root,root,755)
316 %dir %{_libdir}/bmpx/plugins/container
317 %attr(755,root,root) %{_libdir}/bmpx/plugins/container/*.so*
318
319 %files plugin-flow
320 %defattr(644,root,root,755)
321 %dir %{_libdir}/bmpx/plugins/flow
322 %attr(755,root,root) %{_libdir}/bmpx/plugins/flow/*.so*
323
324 %files plugin-transport
325 %defattr(644,root,root,755)
326 %dir %{_libdir}/bmpx/plugins/transport
327 %attr(755,root,root) %{_libdir}/bmpx/plugins/transport/*.so*
328
329 %files remote-curses
330 %defattr(644,root,root,755)
331 %attr(755,root,root) %{_bindir}/bmpty
332
333 %files remote-gtk
334 %defattr(644,root,root,755)
335 %attr(755,root,root) %{_bindir}/bmp-remote-pygtk
336 %{_datadir}/bmp-remote
337
338 %files -n libchroma
339 %defattr(644,root,root,755)
340 %attr(755,root,root) %{_libdir}/libchroma.so.*.*.*
341
342 %files -n libchroma-devel
343 %defattr(644,root,root,755)
344 %attr(755,root,root) %{_libdir}/libchroma.so
345 %{_libdir}/libchroma.la
346 %{_includedir}/libchroma
347
348 %files -n libhrel
349 %defattr(644,root,root,755)
350 %attr(755,root,root) %{_libdir}/libhrel.so.*.*.*
351
352 %files -n libhrel-devel
353 %defattr(644,root,root,755)
354 %attr(755,root,root) %{_libdir}/libhrel.so
355 %{_libdir}/libhrel.la
356 %{_pkgconfigdir}/hrel.pc
357 %{_includedir}/libhrel
This page took 0.0530310000000001 seconds and 2 git commands to generate.