]> git.pld-linux.org Git - packages/bmpx.git/blob - bmpx.spec
- up to 0.12.2
[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.2
9 Release:        1
10 License:        GPL v2
11 Group:          X11/Applications/Sound
12 Source0:        http://download.berlios.de/bmpx/%{name}-%{version}.tar.bz2
13 # Source0-md5:  840bca5822c90b2812b0fdcf77cae10e
14 Source1:        mp3license
15 Patch0:         %{name}-embedded-images.patch
16 Patch1:         %{name}-desktop.patch
17 URL:            http://bmpx.berlios.de/
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:  libvorbis-devel >= 1:1.0
27 BuildRequires:  rpm-pythonprov
28 BuildRequires:  rpmbuild(macros) >= 1.194
29 BuildRequires:  taglib-devel
30 %if %{with gstreamer}
31 # there is no gstreamer 0.9.x in PLD cvs yet!
32 BuildRequires:  gstreamer-devel >= 0.9.1
33 %else
34 BuildRequires:  xine-lib-devel
35 %endif
36 Requires:       %{name}-libs = %{epoch}:%{version}-%{release}
37 Requires:       %{name}-plugin-container = %{epoch}:%{version}-%{release}
38 Requires:       %{name}-plugin-flow = %{epoch}:%{version}-%{release}
39 Requires:       %{name}-plugin-transport = %{epoch}:%{version}-%{release}
40 Requires:       libhrel = %{epoch}:%{version}-%{release}
41 %if %{with gstreamer}
42 Requires:       gstreamer-audio-effects
43 Requires:       gstreamer-audio-formats
44 Requires:       gstreamer-audiosink
45 %else
46 Requires:       xine-plugin-audio
47 %endif
48 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
49
50 %description
51 BMPx is the follow-up of the BMP project with a codebase rewritten
52 from scratch and aims to maintain a stable audio player foundation,
53 and to provide a player with a consistent and easy to understand usage
54 experience.
55
56 %description -l pl
57 BMPx jest nastêpc± projektu BMP z przepisanym od zera kodem i skupia
58 siê na utrzymaniu stabilnej podstawy odtwarzacza d¼wiêku, aby
59 udostêpniæ odtwarzacz ze spójn± i ³atw± do zrozumienia obs³ug±.
60
61 %package libs
62 Summary:        BMPx player library
63 Summary(pl):    Biblioteka odtwarzacza BMPx
64 Group:          X11/Development/Libraries
65
66 %description libs
67 BMPx player library.
68
69 %description libs -l pl
70 Biblioteka odtwarzacza BMPx.
71
72 %package devel
73 Summary:        Header files for BMPx media player
74 Summary(pl):    Pliki nag³ówkowe odtwarzacza multimedialnego BMPx
75 Group:          X11/Development/Libraries
76 Requires:       %{name}-libs = %{epoch}:%{version}-%{release}
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-curses
134 Summary:        BMPx python status watcher
135 Summary(pl):    Obserwator statusu BMPx w pythonie
136 Group:          X11/Applications/Sound
137 Requires:       %{name} = %{epoch}:%{version}-%{release}
138
139 %description remote-curses
140 BMPx python status watcher (CLI interface).
141
142 %description remote-curses -l pl
143 Obserwator statusu BMPx w pythonie (interfejs CLI).
144
145 %package remote-gtk
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 Requires:       python-dbus
151 Requires:       python-pygtk-glade
152
153 %description remote-gtk
154 BMPx python status watcher (GTK+ interface).
155
156 %description remote-gtk -l pl
157 Obserwator statusu BMPx w pythonie (interfejs GTK+).
158
159 %package -n libhrel
160 Summary:        Holyrel library
161 Summary(pl):    Biblioteka Holyrel
162 Group:          X11/Development/Libraries
163
164 %description -n libhrel
165 Holyrel library.
166
167 %description -n libhrel -l pl
168 Biblioteka Holyrel.
169
170 %package -n libhrel-devel
171 Summary:        Header files for Holyrek library
172 Summary(pl):    Pliki nag³ówkowe biblioteki Holyrel
173 Group:          X11/Development/Libraries
174 Requires:       libhrel = %{epoch}:%{version}-%{release}
175
176 %description -n libhrel-devel
177 Header files fotr Holyrel library.
178
179 %description -n libhrel-devel -l pl
180 Pliki nag³ówkowe biblioteki Holyrel.
181
182 %prep
183 %setup -q
184 %patch0 -p1
185 %patch1 -p1
186
187 %build
188 rm -rf autom4te.cache
189 %{__aclocal} -I m4
190 %{__autoconf}
191 %{__autoheader}
192 %{__automake}
193 %configure \
194 %if %{with gstreamer}
195         --enable-gst \
196         --disable-xine
197 %else
198         --enable-xine \
199 %endif
200         --enable-shared \
201         --enable-static
202 %{__make}
203
204 %install
205 rm -rf $RPM_BUILD_ROOT
206
207 %{__make} install \
208         DESTDIR=$RPM_BUILD_ROOT \
209         m4datadir=%{_aclocaldir}
210
211 rm -f $RPM_BUILD_ROOT%{_datadir}/bmpx/data/GPL.txt
212
213 install -d $RPM_BUILD_ROOT%{_pixmapsdir}
214 mv -f $RPM_BUILD_ROOT%{_iconsdir}/hicolor/48x48/apps/bmpx.png \
215         $RPM_BUILD_ROOT%{_pixmapsdir}
216
217 rm -f $RPM_BUILD_ROOT%{_libdir}/bmpx/plugins/*/*.{a,la}
218
219 %find_lang %{name}
220
221 %clean
222 rm -rf $RPM_BUILD_ROOT
223
224 %post
225 umask 022
226 [ ! -x /usr/bin/update-desktop-database ] || /usr/bin/update-desktop-database >/dev/null 2>&1 ||:
227
228 %if %{with gstreamer}
229 %banner %{name} -e << EOF
230 Remember to install appropriate GStreamer plugins for files
231 you want to play:
232 - gstreamer-flac (for FLAC)
233 - gstreamer-mad (for MP3s)
234 - gstreamer-vorbis (for Ogg Vorbis)
235 EOF
236 %else
237 %banner %{name} -e << EOF
238 Remember to install appropriate xine-decode plugins for files
239 you want to play:
240 - xine-decode-flac (for FLAC)
241 - xine-decode-ogg (for Ogg Vorbis)
242 EOF
243 %endif
244
245 %postun
246 if [ $1 = 0 ]; then
247     umask 022
248     [ ! -x /usr/bin/update-desktop-database ] || /usr/bin/update-desktop-database >/dev/null 2>&1
249 fi
250
251 %post   libs -p /sbin/ldconfig
252 %postun libs -p /sbin/ldconfig
253
254 %files -f %{name}.lang
255 %defattr(644,root,root,755)
256 %doc AUTHORS ChangeLog NEWS README
257 %attr(755,root,root) %{_bindir}/bmpx
258 %attr(755,root,root) %{_bindir}/bmp-dbus-*
259 %dir %{_libdir}/bmpx
260 %dir %{_libdir}/bmpx/plugins
261 %{_mandir}/man*/*
262 %{_datadir}/bmpx
263 %{_desktopdir}/*
264 %{_pixmapsdir}/*
265
266 %files libs
267 %defattr(644,root,root,755)
268 %attr(755,root,root) %{_libdir}/libskinned.so.*.*.*
269
270 %files devel
271 %defattr(644,root,root,755)
272 %attr(755,root,root) %{_libdir}/libskinned.so
273 %{_libdir}/libskinned.la
274 %{_includedir}/bmpx
275
276 %files static
277 %defattr(644,root,root,755)
278 %{_libdir}/*.a
279
280 %files plugin-container
281 %defattr(644,root,root,755)
282 %dir %{_libdir}/bmpx/plugins/container
283 %attr(755,root,root) %{_libdir}/bmpx/plugins/container/*.so*
284
285 %files plugin-flow
286 %defattr(644,root,root,755)
287 %dir %{_libdir}/bmpx/plugins/flow
288 %attr(755,root,root) %{_libdir}/bmpx/plugins/flow/*.so*
289
290 %files plugin-transport
291 %defattr(644,root,root,755)
292 %dir %{_libdir}/bmpx/plugins/transport
293 %attr(755,root,root) %{_libdir}/bmpx/plugins/transport/*.so*
294
295 %files remote-curses
296 %defattr(644,root,root,755)
297 %attr(755,root,root) %{_bindir}/bmpty
298
299 %files remote-gtk
300 %defattr(644,root,root,755)
301 %attr(755,root,root) %{_bindir}/bmp-remote-pygtk
302 %{_datadir}/bmp-remote
303
304 %files -n libhrel
305 %defattr(644,root,root,755)
306 %attr(755,root,root) %{_libdir}/libhrel.so.*.*.*
307
308 %files -n libhrel-devel
309 %defattr(644,root,root,755)
310 %attr(755,root,root) %{_libdir}/libhrel.so
311 %{_libdir}/libhrel.la
312 %{_pkgconfigdir}/hrel.pc
313 %{_includedir}/libhrel
This page took 0.051228 seconds and 4 git commands to generate.