]> git.pld-linux.org Git - packages/bmpx.git/blob - bmpx.spec
- fixed libhrel version
[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 = 0.1-%{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 Version:        0.1
164
165 %description -n libhrel
166 Holyrel library.
167
168 %description -n libhrel -l pl
169 Biblioteka Holyrel.
170
171 %package -n libhrel-devel
172 Summary:        Header files for Holyrek library
173 Summary(pl):    Pliki nag³ówkowe biblioteki Holyrel
174 Group:          X11/Development/Libraries
175 Requires:       libhrel = %{epoch}:%{version}-%{release}
176
177 %description -n libhrel-devel
178 Header files fotr Holyrel library.
179
180 %description -n libhrel-devel -l pl
181 Pliki nag³ówkowe biblioteki Holyrel.
182
183 %prep
184 %setup -q
185 %patch0 -p1
186 %patch1 -p1
187
188 %build
189 rm -rf autom4te.cache
190 %{__aclocal} -I m4
191 %{__autoconf}
192 %{__autoheader}
193 %{__automake}
194 %configure \
195 %if %{with gstreamer}
196         --enable-gst \
197         --disable-xine
198 %else
199         --enable-xine \
200 %endif
201         --enable-shared \
202         --enable-static
203 %{__make}
204
205 %install
206 rm -rf $RPM_BUILD_ROOT
207
208 %{__make} install \
209         DESTDIR=$RPM_BUILD_ROOT \
210         m4datadir=%{_aclocaldir}
211
212 rm -f $RPM_BUILD_ROOT%{_datadir}/bmpx/data/GPL.txt
213
214 install -d $RPM_BUILD_ROOT%{_pixmapsdir}
215 mv -f $RPM_BUILD_ROOT%{_iconsdir}/hicolor/48x48/apps/bmpx.png \
216         $RPM_BUILD_ROOT%{_pixmapsdir}
217
218 rm -f $RPM_BUILD_ROOT%{_libdir}/bmpx/plugins/*/*.{a,la}
219
220 %find_lang %{name}
221
222 %clean
223 rm -rf $RPM_BUILD_ROOT
224
225 %post
226 umask 022
227 [ ! -x /usr/bin/update-desktop-database ] || /usr/bin/update-desktop-database >/dev/null 2>&1 ||:
228
229 %if %{with gstreamer}
230 %banner %{name} -e << EOF
231 Remember to install appropriate GStreamer plugins for files
232 you want to play:
233 - gstreamer-flac (for FLAC)
234 - gstreamer-mad (for MP3s)
235 - gstreamer-vorbis (for Ogg Vorbis)
236 EOF
237 %else
238 %banner %{name} -e << EOF
239 Remember to install appropriate xine-decode plugins for files
240 you want to play:
241 - xine-decode-flac (for FLAC)
242 - xine-decode-ogg (for Ogg Vorbis)
243 EOF
244 %endif
245
246 %postun
247 if [ $1 = 0 ]; then
248     umask 022
249     [ ! -x /usr/bin/update-desktop-database ] || /usr/bin/update-desktop-database >/dev/null 2>&1
250 fi
251
252 %post   libs -p /sbin/ldconfig
253 %postun libs -p /sbin/ldconfig
254
255 %files -f %{name}.lang
256 %defattr(644,root,root,755)
257 %doc AUTHORS ChangeLog NEWS README
258 %attr(755,root,root) %{_bindir}/bmpx
259 %attr(755,root,root) %{_bindir}/bmp-dbus-*
260 %dir %{_libdir}/bmpx
261 %dir %{_libdir}/bmpx/plugins
262 %{_mandir}/man*/*
263 %{_datadir}/bmpx
264 %{_desktopdir}/*
265 %{_pixmapsdir}/*
266
267 %files libs
268 %defattr(644,root,root,755)
269 %attr(755,root,root) %{_libdir}/libskinned.so.*.*.*
270
271 %files devel
272 %defattr(644,root,root,755)
273 %attr(755,root,root) %{_libdir}/libskinned.so
274 %{_libdir}/libskinned.la
275 %{_includedir}/bmpx
276
277 %files static
278 %defattr(644,root,root,755)
279 %{_libdir}/*.a
280
281 %files plugin-container
282 %defattr(644,root,root,755)
283 %dir %{_libdir}/bmpx/plugins/container
284 %attr(755,root,root) %{_libdir}/bmpx/plugins/container/*.so*
285
286 %files plugin-flow
287 %defattr(644,root,root,755)
288 %dir %{_libdir}/bmpx/plugins/flow
289 %attr(755,root,root) %{_libdir}/bmpx/plugins/flow/*.so*
290
291 %files plugin-transport
292 %defattr(644,root,root,755)
293 %dir %{_libdir}/bmpx/plugins/transport
294 %attr(755,root,root) %{_libdir}/bmpx/plugins/transport/*.so*
295
296 %files remote-curses
297 %defattr(644,root,root,755)
298 %attr(755,root,root) %{_bindir}/bmpty
299
300 %files remote-gtk
301 %defattr(644,root,root,755)
302 %attr(755,root,root) %{_bindir}/bmp-remote-pygtk
303 %{_datadir}/bmp-remote
304
305 %files -n libhrel
306 %defattr(644,root,root,755)
307 %attr(755,root,root) %{_libdir}/libhrel.so.*.*.*
308
309 %files -n libhrel-devel
310 %defattr(644,root,root,755)
311 %attr(755,root,root) %{_libdir}/libhrel.so
312 %{_libdir}/libhrel.la
313 %{_pkgconfigdir}/hrel.pc
314 %{_includedir}/libhrel
This page took 0.087806 seconds and 4 git commands to generate.