]> git.pld-linux.org Git - packages/bmpx.git/blob - bmpx.spec
- adaterized and sorted
[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.1
9 Release:        1
10 License:        GPL v2
11 Group:          X11/Applications/Sound
12 Source0:        http://download.berlios.de/bmpx/%{name}-%{version}.tar.gz
13 # Source0-md5:  40965fe0e9707a49a773c91eff777fb2
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 %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
77 %description devel
78 Header files required for compiling BMPx media player plugins.
79
80 %description devel -l pl
81 Pliki nag³ówkowe potrzebne do kompilowania wtyczek odtwarzacza
82 multimedialnego BMPx.
83
84 %package static
85 Summary:        Static BMPx library
86 Summary(pl):    Statyczna biblioteka BMPx
87 Group:          X11/Development/Libraries
88 Requires:       %{name}-devel = %{epoch}:%{version}-%{release}
89
90 %description static
91 Static BMPx library.
92
93 %description static -l pl
94 Statyczna biblioteka BMPx.
95
96 %package plugin-container
97 Summary:        Container plugin for BMPx
98 Summary(pl):    Wtyczka Container dla BMPx
99 Group:          X11/Applications/Sound
100 Requires:       %{name} = %{epoch}:%{version}-%{release}
101
102 %description plugin-container
103 Plugin providing support for folders, m3u & pls playlist files, etc.
104
105 %description plugin-container -l pl
106 Wtyczka dodaj±ca obs³ugê folderów, playlist w formacie m3u i pls, itp.
107
108 %package plugin-flow
109 Summary:        Flow plugin for BMPx
110 Summary(pl):    Wtyczka Flow dla BMPx
111 Group:          X11/Applications/Sound
112 Requires:       %{name} = %{epoch}:%{version}-%{release}
113
114 %description plugin-flow
115 Flow plugin for BMPx.
116
117 %description plugin-flow -l pl
118 Wtyczka Flow dla BMPx.
119
120 %package plugin-transport
121 Summary:        Transport plugin for BMPx
122 Summary(pl):    Wtyczka Transport dla BMPx
123 Group:          X11/Applications/Sound
124 Requires:       %{name} = %{epoch}:%{version}-%{release}
125
126 %description plugin-transport
127 Transport plugin for BMPx.
128
129 %description plugin-transport -l pl
130 Wtyczka Transport dla BMPx.
131
132 %package remote-curses
133 Summary:        BMPx python status watcher
134 Summary(pl):    Obserwator statusu BMPx w pythonie
135 Group:          X11/Applications/Sound
136 Requires:       %{name} = %{epoch}:%{version}-%{release}
137
138 %description remote-curses
139 BMPx python status watcher (CLI interface).
140
141 %description remote-curses -l pl
142 Obserwator statusu BMPx w pythonie (interfejs CLI).
143
144 %package remote-gtk
145 Summary:        BMPx python status watcher
146 Summary(pl):    Obserwator statusu BMPx w pythonie
147 Group:          X11/Applications/Sound
148 Requires:       %{name} = %{epoch}:%{version}-%{release}
149 Requires:       python-pygtk-glade
150
151 %description remote-gtk
152 BMPx python status watcher (GTK+ interface).
153
154 %description remote-gtk -l pl
155 Obserwator statusu BMPx w pythonie (interfejs GTK+).
156
157 %prep
158 %setup -q
159 %patch0 -p1
160 %patch1 -p1
161
162 %build
163 rm -rf autom4te.cache
164 %{__aclocal} -I m4
165 %{__autoconf}
166 %{__autoheader}
167 %{__automake}
168 %configure \
169 %if %{with gstreamer}
170         --enable-gst \
171         --disable-xine
172 %else
173         --enable-xine \
174 %endif
175         --enable-shared \
176         --enable-static
177 %{__make}
178
179 %install
180 rm -rf $RPM_BUILD_ROOT
181
182 %{__make} install \
183         DESTDIR=$RPM_BUILD_ROOT \
184         m4datadir=%{_aclocaldir}
185
186 rm -f $RPM_BUILD_ROOT%{_datadir}/bmpx/data/GPL.txt
187
188 install -d $RPM_BUILD_ROOT%{_pixmapsdir}
189 mv -f $RPM_BUILD_ROOT%{_iconsdir}/hicolor/48x48/apps/bmpx.png \
190         $RPM_BUILD_ROOT%{_pixmapsdir}
191
192 rm -f $RPM_BUILD_ROOT%{_libdir}/bmpx/plugins/*/*.{a,la}
193
194 %find_lang %{name}
195
196 %clean
197 rm -rf $RPM_BUILD_ROOT
198
199 %post
200 umask 022
201 [ ! -x /usr/bin/update-desktop-database ] || /usr/bin/update-desktop-database >/dev/null 2>&1 ||:
202
203 %if %{with gstreamer}
204 %banner %{name} -e << EOF
205 Remember to install appropriate GStreamer plugins for files
206 you want to play:
207 - gstreamer-flac (for FLAC)
208 - gstreamer-mad (for MP3s)
209 - gstreamer-vorbis (for Ogg Vorbis)
210 EOF
211 %else
212 %banner %{name} -e << EOF
213 Remember to install appropriate xine-decode plugins for files
214 you want to play:
215 - xine-decode-flac (for FLAC)
216 - xine-decode-ogg (for Ogg Vorbis)
217 EOF
218 %endif
219
220 %postun
221 if [ $1 = 0 ]; then
222     umask 022
223     [ ! -x /usr/bin/update-desktop-database ] || /usr/bin/update-desktop-database >/dev/null 2>&1
224 fi
225
226 %post   libs -p /sbin/ldconfig
227 %postun libs -p /sbin/ldconfig
228
229 %files -f %{name}.lang
230 %defattr(644,root,root,755)
231 %doc AUTHORS ChangeLog NEWS README
232 %attr(755,root,root) %{_bindir}/bmpx
233 %attr(755,root,root) %{_bindir}/bmp-dbus-*
234 %dir %{_libdir}/bmpx
235 %dir %{_libdir}/bmpx/plugins
236 %{_mandir}/man*/*
237 %{_datadir}/bmpx
238 %{_desktopdir}/*
239 %{_pixmapsdir}/*
240
241 %files libs
242 %defattr(644,root,root,755)
243 %attr(755,root,root) %{_libdir}/libskinned.so.*.*.*
244
245 %files devel
246 %defattr(644,root,root,755)
247 %attr(755,root,root) %{_libdir}/libskinned.so
248 %{_libdir}/libskinned.la
249 %{_includedir}/bmpx
250
251 %files static
252 %defattr(644,root,root,755)
253 %{_libdir}/*.a
254
255 %files plugin-container
256 %defattr(644,root,root,755)
257 %dir %{_libdir}/bmpx/plugins/container
258 %attr(755,root,root) %{_libdir}/bmpx/plugins/container/*.so*
259
260 %files plugin-flow
261 %defattr(644,root,root,755)
262 %dir %{_libdir}/bmpx/plugins/flow
263 %attr(755,root,root) %{_libdir}/bmpx/plugins/flow/*.so*
264
265 %files plugin-transport
266 %defattr(644,root,root,755)
267 %dir %{_libdir}/bmpx/plugins/transport
268 %attr(755,root,root) %{_libdir}/bmpx/plugins/transport/*.so*
269
270 %files remote-curses
271 %defattr(644,root,root,755)
272 %attr(755,root,root) %{_bindir}/bmpty
273
274 %files remote-gtk
275 %defattr(644,root,root,755)
276 %attr(755,root,root) %{_bindir}/bmp-remote-pygtk
277 %{_datadir}/bmp-remote
This page took 0.056662 seconds and 4 git commands to generate.