]> git.pld-linux.org Git - packages/bmpx.git/blob - bmpx.spec
- updated to 0.12.5
[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.5
9 Release:        1
10 License:        GPL v2
11 Group:          X11/Applications/Sound
12 Source0:        http://dl.sourceforge.net/beepmp/%{name}-%{version}.tar.bz2
13 # Source0-md5:  fc9d1fabd48c5a2d70553603b74363aa
14 Source1:        mp3license
15 Patch1:         %{name}-desktop.patch
16 URL:            http://beep-media-player.org/
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-2
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
135 Summary:        BMPx python status watcher
136 Summary(pl):    Obserwator statusu BMPx
137 Group:          X11/Applications/Sound
138 Requires:       %{name} = %{epoch}:%{version}-%{release}
139
140 %description remote
141 BMPx python status watcher.
142
143 %description remote -l pl
144 Obserwator statusu BMPx.
145
146 %package remote-curses
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
152 %description remote-curses
153 BMPx python status watcher (CLI interface).
154
155 %description remote-curses -l pl
156 Obserwator statusu BMPx w pythonie (interfejs CLI).
157
158 %package remote-gtk
159 Summary:        BMPx python status watcher
160 Summary(pl):    Obserwator statusu BMPx w pythonie
161 Group:          X11/Applications/Sound
162 Requires:       %{name} = %{epoch}:%{version}-%{release}
163 Requires:       python-dbus
164 Requires:       python-pygtk-glade
165
166 %description remote-gtk
167 BMPx python status watcher (GTK+ interface).
168
169 %description remote-gtk -l pl
170 Obserwator statusu BMPx w pythonie (interfejs GTK+).
171
172 %package -n libchroma
173 Summary:        Chroma library
174 Summary(pl):    Biblioteka Chroma
175 Group:          X11/Development/Libraries
176 Version:        0.1
177
178 %description -n libchroma
179 Chroma library.
180
181 %description -n libchroma -l pl
182 Biblioteka Chroma.
183
184 %package -n libchroma-devel
185 Summary:        Header files for Chroma library
186 Summary(pl):    Pliki nag³ówkowe biblioteki Chroma
187 Group:          X11/Development/Libraries
188 Requires:       libchroma = %{epoch}:%{version}-%{release}
189 Version:        0.1
190
191 %description -n libchroma-devel
192 Header files for Chroma library.
193
194 %description -n libchroma-devel -l pl
195 Pliki nag³ówkowe biblioteki Chroma.
196
197 %package -n libhrel
198 Summary:        Holyrel library
199 Summary(pl):    Biblioteka Holyrel
200 Group:          X11/Development/Libraries
201 Version:        0.1
202 Release:        2
203
204 %description -n libhrel
205 Holyrel library.
206
207 %description -n libhrel -l pl
208 Biblioteka Holyrel.
209
210 %package -n libhrel-devel
211 Summary:        Header files for Holyrel library
212 Summary(pl):    Pliki nag³ówkowe biblioteki Holyrel
213 Group:          X11/Development/Libraries
214 Requires:       libhrel = %{epoch}:%{version}-%{release}
215 Version:        0.1
216 Release:        2
217
218 %description -n libhrel-devel
219 Header files for Holyrel library.
220
221 %description -n libhrel-devel -l pl
222 Pliki nag³ówkowe biblioteki Holyrel.
223
224 %prep
225 %setup -q
226 %patch1 -p1
227
228 %build
229 rm -rf autom4te.cache
230 %{__aclocal} -I m4
231 %{__autoconf}
232 %{__autoheader}
233 %{__automake}
234 %configure \
235 %if %{with gstreamer}
236         --enable-gst \
237         --disable-xine
238 %else
239         --enable-xine \
240 %endif
241         --enable-shared \
242         --enable-static
243 %{__make}
244
245 %install
246 rm -rf $RPM_BUILD_ROOT
247
248 %{__make} install \
249         DESTDIR=$RPM_BUILD_ROOT \
250         m4datadir=%{_aclocaldir}
251
252 rm -f $RPM_BUILD_ROOT%{_datadir}/bmpx/data/GPL.txt
253
254 install -d $RPM_BUILD_ROOT%{_pixmapsdir}
255 mv -f $RPM_BUILD_ROOT%{_iconsdir}/hicolor/48x48/apps/bmpx.png \
256         $RPM_BUILD_ROOT%{_pixmapsdir}
257
258 rm -f $RPM_BUILD_ROOT%{_libdir}/bmpx/plugins/*/*.{a,la}
259 rm -f $RPM_BUILD_ROOT%{_bindir}/{ctt,hash_*,hrel-demo}
260
261 %find_lang %{name}
262
263 %clean
264 rm -rf $RPM_BUILD_ROOT
265
266 %post
267 umask 022
268 [ ! -x /usr/bin/update-desktop-database ] || /usr/bin/update-desktop-database >/dev/null 2>&1 ||:
269
270 %if %{with gstreamer}
271 %banner %{name} -e << EOF
272 Remember to install appropriate GStreamer plugins for files
273 you want to play:
274 - gstreamer-flac (for FLAC)
275 - gstreamer-mad (for MP3s)
276 - gstreamer-vorbis (for Ogg Vorbis)
277 EOF
278 %else
279 %banner %{name} -e << EOF
280 Remember to install appropriate xine-decode plugins for files
281 you want to play:
282 - xine-decode-flac (for FLAC)
283 - xine-decode-ogg (for Ogg Vorbis)
284 EOF
285 %endif
286
287 %postun
288 if [ $1 = 0 ]; then
289     umask 022
290     [ ! -x /usr/bin/update-desktop-database ] || /usr/bin/update-desktop-database >/dev/null 2>&1
291 fi
292
293 %post   libs -p /sbin/ldconfig
294 %postun libs -p /sbin/ldconfig
295
296 %post   -n libchroma -p /sbin/ldconfig
297 %postun -n libchroma -p /sbin/ldconfig
298
299 %post   -n libhrel -p /sbin/ldconfig
300 %postun -n libhrel -p /sbin/ldconfig
301
302 %files -f %{name}.lang
303 %defattr(644,root,root,755)
304 %doc AUTHORS ChangeLog NEWS README
305 %attr(755,root,root) %{_bindir}/bmpx
306 %attr(755,root,root) %{_bindir}/bmp-dbus-*
307 %dir %{_libdir}/bmpx
308 %dir %{_libdir}/bmpx/plugins
309 %{_mandir}/man*/*
310 %{_datadir}/bmpx
311 %{_desktopdir}/*
312 %{_pixmapsdir}/*
313
314 %files libs
315 %defattr(644,root,root,755)
316 %attr(755,root,root) %{_libdir}/libskinned.so.*.*.*
317
318 %files devel
319 %defattr(644,root,root,755)
320 %attr(755,root,root) %{_libdir}/libskinned.so
321 %{_libdir}/libskinned.la
322 %{_includedir}/bmpx
323
324 %files static
325 %defattr(644,root,root,755)
326 %{_libdir}/*.a
327
328 %files plugin-container
329 %defattr(644,root,root,755)
330 %dir %{_libdir}/bmpx/plugins/container
331 %attr(755,root,root) %{_libdir}/bmpx/plugins/container/*.so*
332
333 %files plugin-flow
334 %defattr(644,root,root,755)
335 %dir %{_libdir}/bmpx/plugins/flow
336 %attr(755,root,root) %{_libdir}/bmpx/plugins/flow/*.so*
337
338 %files plugin-transport
339 %defattr(644,root,root,755)
340 %dir %{_libdir}/bmpx/plugins/transport
341 %attr(755,root,root) %{_libdir}/bmpx/plugins/transport/*.so*
342
343 %files remote
344 %defattr(644,root,root,755)
345 %attr(755,root,root) %{_bindir}/bmpx-remote
346
347 %files remote-curses
348 %defattr(644,root,root,755)
349 %attr(755,root,root) %{_bindir}/bmpty
350
351 %files remote-gtk
352 %defattr(644,root,root,755)
353 %attr(755,root,root) %{_bindir}/bmp-remote-pygtk
354 %{_datadir}/bmp-remote
355
356 %files -n libchroma
357 %defattr(644,root,root,755)
358 %attr(755,root,root) %{_libdir}/libchroma.so.*.*.*
359
360 %files -n libchroma-devel
361 %defattr(644,root,root,755)
362 %attr(755,root,root) %{_libdir}/libchroma.so
363 %{_libdir}/libchroma.la
364 %{_includedir}/libchroma
365
366 %files -n libhrel
367 %defattr(644,root,root,755)
368 %attr(755,root,root) %{_libdir}/libhrel.so.*.*.*
369
370 %files -n libhrel-devel
371 %defattr(644,root,root,755)
372 %attr(755,root,root) %{_libdir}/libhrel.so
373 %{_libdir}/libhrel.la
374 %{_pkgconfigdir}/hrel.pc
375 %{_includedir}/libhrel
This page took 0.04566 seconds and 3 git commands to generate.