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