]> git.pld-linux.org Git - packages/bmpx.git/blob - bmpx.spec
- there is shared libhrel - created libhrel-static subpackage
[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 = %{version}-%{release}
40 Requires:       %{name}-plugin-container = %{version}-%{release}
41 Requires:       %{name}-plugin-flow = %{version}-%{release}
42 Requires:       %{name}-plugin-transport = %{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/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 = %{version}-%{release}
80 Requires:       libhrel-devel = 0.1-2
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 = %{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} = %{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} = %{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} = %{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} = %{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} = %{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} = %{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 Version:        0.1
179 Release:        2
180 Group:          X11/Libraries
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 Version:        0.1
192 Release:        2
193 Group:          X11/Development/Libraries
194 Requires:       libhrel = 0.1-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 %package -n libhrel-static
203 Summary:        Static Holyrel library
204 Summary(pl):    Statyczna biblioteka Holyrel
205 Version:        0.1
206 Release:        2
207 Group:          X11/Development/Libraries
208 Requires:       libhrel-devel = 0.1-2
209
210 %prep
211 %setup -q
212 %patch0 -p1
213 %patch1 -p1
214
215 %build
216 %{__libtoolize}
217 %{__aclocal} -I m4
218 %{__autoconf}
219 %{__autoheader}
220 %{__automake}
221 %configure \
222 %if %{with gstreamer}
223         --enable-gst \
224         --disable-xine
225 %else
226         --enable-xine \
227 %endif
228         --enable-shared \
229         --enable-static
230 %{__make}
231
232 %install
233 rm -rf $RPM_BUILD_ROOT
234
235 %{__make} install \
236         DESTDIR=$RPM_BUILD_ROOT \
237         m4datadir=%{_aclocaldir}
238
239 rm -f $RPM_BUILD_ROOT%{_datadir}/bmpx/data/GPL.txt
240
241 install -d $RPM_BUILD_ROOT%{_pixmapsdir}
242 mv -f $RPM_BUILD_ROOT%{_iconsdir}/hicolor/48x48/apps/bmpx.png \
243         $RPM_BUILD_ROOT%{_pixmapsdir}
244
245 rm -f $RPM_BUILD_ROOT%{_libdir}/bmpx/plugins/*/*.{a,la}
246 rm -f $RPM_BUILD_ROOT%{_bindir}/{ctt,hash_*,hrel-demo}
247
248 %find_lang %{name}
249
250 %clean
251 rm -rf $RPM_BUILD_ROOT
252
253 %post
254 umask 022
255 [ ! -x /usr/bin/update-desktop-database ] || /usr/bin/update-desktop-database >/dev/null 2>&1 ||:
256
257 %if %{with gstreamer}
258 %banner %{name} -e << EOF
259 Remember to install appropriate GStreamer plugins for files
260 you want to play:
261 - gstreamer-flac (for FLAC)
262 - gstreamer-mad (for MP3s)
263 - gstreamer-vorbis (for Ogg Vorbis)
264 EOF
265 %else
266 %banner %{name} -e << EOF
267 Remember to install appropriate xine-decode plugins for files
268 you want to play:
269 - xine-decode-flac (for FLAC)
270 - xine-decode-ogg (for Ogg Vorbis)
271 EOF
272 %endif
273
274 %postun
275 if [ $1 = 0 ]; then
276     umask 022
277     [ ! -x /usr/bin/update-desktop-database ] || /usr/bin/update-desktop-database >/dev/null 2>&1
278 fi
279
280 %post   libs -p /sbin/ldconfig
281 %postun libs -p /sbin/ldconfig
282
283 %post   -n libhrel -p /sbin/ldconfig
284 %postun -n libhrel -p /sbin/ldconfig
285
286 %files -f %{name}.lang
287 %defattr(644,root,root,755)
288 %doc AUTHORS ChangeLog NEWS README
289 %attr(755,root,root) %{_bindir}/bmpx
290 %attr(755,root,root) %{_bindir}/bmpx-dbus-*
291 %dir %{_libdir}/bmpx
292 %dir %{_libdir}/bmpx/plugins
293 %dir %{_datadir}/bmpx-clients
294 %{_mandir}/man*/*
295 %{_datadir}/bmpx
296 %{_desktopdir}/*
297 %{_pixmapsdir}/*
298
299 %files libs
300 %defattr(644,root,root,755)
301 %attr(755,root,root) %{_libdir}/libskinned.so.*.*.*
302
303 %files devel
304 %defattr(644,root,root,755)
305 %attr(755,root,root) %{_libdir}/libskinned.so
306 %{_libdir}/libskinned.la
307 %{_libdir}/libgoa.a
308 %{_includedir}/bmpx
309 %{_includedir}/libskinned
310
311 %files static
312 %defattr(644,root,root,755)
313 %{_libdir}/libskinned.a
314
315 %files plugin-container
316 %defattr(644,root,root,755)
317 %dir %{_libdir}/bmpx/plugins/container
318 %attr(755,root,root) %{_libdir}/bmpx/plugins/container/*.so*
319
320 %files plugin-flow
321 %defattr(644,root,root,755)
322 %dir %{_libdir}/bmpx/plugins/flow
323 %attr(755,root,root) %{_libdir}/bmpx/plugins/flow/*.so*
324
325 %files plugin-transport
326 %defattr(644,root,root,755)
327 %dir %{_libdir}/bmpx/plugins/transport
328 %attr(755,root,root) %{_libdir}/bmpx/plugins/transport/*.so*
329
330 %files remote
331 %defattr(644,root,root,755)
332 %attr(755,root,root) %{_bindir}/bmpx-remote
333
334 %files remote-curses
335 %defattr(644,root,root,755)
336 %attr(755,root,root) %{_bindir}/bmpty
337
338 %files remote-gtk
339 %defattr(644,root,root,755)
340 %attr(755,root,root) %{_bindir}/bmpx-client-pygtk
341 %{_datadir}/bmpx-clients/pygtk
342
343 %files -n libhrel
344 %defattr(644,root,root,755)
345 %attr(755,root,root) %{_libdir}/libhrel.so.*.*.*
346
347 %files -n libhrel-devel
348 %defattr(644,root,root,755)
349 %attr(755,root,root) %{_libdir}/libhrel.so
350 %{_libdir}/libhrel.la
351 %{_pkgconfigdir}/hrel.pc
352 %{_includedir}/libhrel
353
354 %files -n libhrel-static
355 %defattr(644,root,root,755)
356 %{_libdir}/libhrel.a
This page took 0.100763 seconds and 3 git commands to generate.