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