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