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