]>
Commit | Line | Data |
---|---|---|
1 | # | |
2 | # Conditional build: | |
3 | %bcond_without sid # build without sid support | |
4 | # | |
5 | Summary: Sound player with the WinAmp GUI, for Unix-based systems for GTK+ | |
6 | Summary(pl.UTF-8): Odtwarzacz dźwięku z interfejsem WinAmpa dla GTK+ | |
7 | Name: bmpx | |
8 | Version: 0.40.14 | |
9 | Release: 3 | |
10 | License: GPL v2 | |
11 | Group: X11/Applications/Sound | |
12 | Source0: http://files.backtrace.info/releases/0.40/%{name}-%{version}.tar.bz2 | |
13 | # Source0-md5: c741e05a82a82b14b6775d44a7c93c15 | |
14 | Patch0: %{name}-lib64.patch | |
15 | Patch1: %{name}-libsoup24.patch | |
16 | Patch2: %{name}-invalid-conversion.patch | |
17 | Patch3: %{name}-sidplay.patch | |
18 | URL: http://bmpx.backtrace.info/ | |
19 | BuildRequires: alsa-lib-devel >= 1.0.9 | |
20 | BuildRequires: autoconf >= 2.60 | |
21 | BuildRequires: automake >= 1:1.8 | |
22 | BuildRequires: boost-devel >= 1.35.0 | |
23 | BuildRequires: cairomm-devel >= 0.6.0 | |
24 | BuildRequires: cdparanoia-III-devel | |
25 | BuildRequires: dbus-glib-devel >= 0.62 | |
26 | BuildRequires: docbook-style-xsl | |
27 | BuildRequires: gcc-c++ >= 5:4.0.0 | |
28 | BuildRequires: gettext-devel | |
29 | BuildRequires: gstreamer-plugins-base-devel >= 0.10.10 | |
30 | BuildRequires: gtkmm-devel >= 2.10.0 | |
31 | BuildRequires: hal-devel >= 0.5.7.1 | |
32 | BuildRequires: intltool >= 0.35.0 | |
33 | BuildRequires: libglademm-devel >= 2.6.0 | |
34 | BuildRequires: libmodplug-devel >= 0.7 | |
35 | BuildRequires: libofa-devel >= 0.9.3 | |
36 | BuildRequires: librsvg-devel >= 1:2.14.0 | |
37 | BuildRequires: libsexymm-devel >= 0.1.9 | |
38 | %{?with_sid:BuildRequires: libsidplay-devel} | |
39 | BuildRequires: libsigc++-devel >= 2.0.0 | |
40 | BuildRequires: libsoup-devel >= 2.4.0 | |
41 | BuildRequires: libtool | |
42 | BuildRequires: libxml2-devel >= 1:2.6.26 | |
43 | BuildRequires: libxslt-progs | |
44 | BuildRequires: pkgconfig | |
45 | BuildRequires: rpmbuild(macros) >= 1.311 | |
46 | BuildRequires: sqlite3-devel >= 3.3.11 | |
47 | BuildRequires: startup-notification-devel >= 0.8 | |
48 | BuildRequires: taglib-devel >= 1.4-2 | |
49 | BuildRequires: unzip | |
50 | BuildRequires: xorg-lib-libSM-devel | |
51 | BuildRequires: zip | |
52 | Requires(post,postun): desktop-file-utils | |
53 | Requires(post,postun): gtk+2 >= 2:2.10.0 | |
54 | Requires(post,postun): hicolor-icon-theme | |
55 | Requires: gstreamer-audio-effects-base | |
56 | Requires: gstreamer-audiosink | |
57 | Suggests: gstreamer-aac | |
58 | Suggests: gstreamer-audio-formats >= 0.10.3 | |
59 | Suggests: gstreamer-cdparanoia | |
60 | Suggests: gstreamer-ffmpeg | |
61 | Suggests: gstreamer-flac | |
62 | Suggests: gstreamer-mad | |
63 | Suggests: gstreamer-mms | |
64 | Suggests: gstreamer-musepack | |
65 | Suggests: gstreamer-plugins-bad | |
66 | Suggests: gstreamer-sid | |
67 | Suggests: gstreamer-vorbis | |
68 | Obsoletes: bmpx-curses | |
69 | Obsoletes: bmpx-libs | |
70 | Obsoletes: bmpx-plugin-container | |
71 | Obsoletes: bmpx-plugin-flow | |
72 | Obsoletes: bmpx-plugin-transport | |
73 | Obsoletes: bmpx-plugins-base | |
74 | Obsoletes: bmpx-remote | |
75 | Obsoletes: bmpx-remote-gtk | |
76 | Obsoletes: bmpx-static | |
77 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
78 | ||
79 | %define _iceweaseldir %{_datadir}/iceweasel | |
80 | %define _chromedir %{_iceweaseldir}/chrome | |
81 | ||
82 | %description | |
83 | BMPx is the follow-up of the BMP project with a codebase rewritten | |
84 | from scratch and aims to maintain a stable audio player foundation, | |
85 | and to provide a player with a consistent and easy to understand usage | |
86 | experience. | |
87 | ||
88 | %description -l pl.UTF-8 | |
89 | BMPx jest następcą projektu BMP z przepisanym od zera kodem i skupia | |
90 | się na utrzymaniu stabilnej podstawy odtwarzacza dźwięku, aby | |
91 | udostępnić odtwarzacz ze spójną i łatwą do zrozumienia obsługą. | |
92 | ||
93 | %package devel | |
94 | Summary: Header files for BMPx media player | |
95 | Summary(pl.UTF-8): Pliki nagłówkowe odtwarzacza multimedialnego BMPx | |
96 | Group: X11/Development/Libraries | |
97 | Requires: dbus-glib-devel >= 0.62 | |
98 | Obsoletes: libchroma-devel | |
99 | Obsoletes: libhrel-devel | |
100 | ||
101 | %description devel | |
102 | Header files required for compiling BMPx media player plugins. | |
103 | ||
104 | %description devel -l pl.UTF-8 | |
105 | Pliki nagłówkowe potrzebne do kompilowania wtyczek odtwarzacza | |
106 | multimedialnego BMPx. | |
107 | ||
108 | %package -n iceweasel-extension-bmpx | |
109 | Summary: Iceweasel extension - BMPx | |
110 | Summary(pl.UTF-8): Rozszerzenie dla przeglądarki Iceweasel - BMPx | |
111 | Group: X11/Applications | |
112 | Requires: %{name} = %{version}-%{release} | |
113 | Requires: iceweasel | |
114 | Provides: mozilla-firefox-plugin-bmpx | |
115 | Obsoletes: mozilla-firefox-plugin-bmpx | |
116 | ||
117 | %description -n iceweasel-extension-bmpx | |
118 | Iceweasel extension which registers the lastfm:// protocol to BMPx. | |
119 | ||
120 | %description -n iceweasel-extension-bmpx -l pl.UTF-8 | |
121 | Rozszerzenie dla przeglądarki Iceweasel, które rejestruje protokół | |
122 | lastfm:// do BMPx. | |
123 | ||
124 | %prep | |
125 | %setup -q | |
126 | %patch0 -p1 | |
127 | %patch1 -p1 | |
128 | %patch2 -p1 | |
129 | %patch3 -p1 | |
130 | ||
131 | %build | |
132 | %{__libtoolize} | |
133 | %{__aclocal} -I m4 | |
134 | %{__autoconf} | |
135 | %{__autoheader} | |
136 | %{__automake} | |
137 | %configure \ | |
138 | --enable-hal \ | |
139 | --enable-modplug \ | |
140 | %{?with_sid:--enable-sid} \ | |
141 | --with-dbus-services-dir=%{_datadir}/dbus-1/services | |
142 | %{__make} | |
143 | ||
144 | %install | |
145 | rm -rf $RPM_BUILD_ROOT | |
146 | install -d $RPM_BUILD_ROOT%{_chromedir} | |
147 | ||
148 | %{__make} install \ | |
149 | DESTDIR=$RPM_BUILD_ROOT | |
150 | ||
151 | unzip -q -o xpi/bmp.xpi -d $RPM_BUILD_ROOT%{_iceweaseldir} | |
152 | sed -e 's@chrome/bmp\.jar@bmp\.jar@' $RPM_BUILD_ROOT%{_iceweaseldir}/chrome.manifest \ | |
153 | > $RPM_BUILD_ROOT%{_chromedir}/bmp.manifest | |
154 | ||
155 | rm -f $RPM_BUILD_ROOT%{_iceweaseldir}/{install.rdf,chrome.manifest} | |
156 | rm -f $RPM_BUILD_ROOT%{_libdir}/*.la | |
157 | rm -f $RPM_BUILD_ROOT%{_libdir}/bmpx/plugins/{taglib,vfs/container,vfs/transport}/*.la | |
158 | mv -f $RPM_BUILD_ROOT%{_datadir}/locale/{th_TH,th} | |
159 | ||
160 | %find_lang %{name} | |
161 | ||
162 | %clean | |
163 | rm -rf $RPM_BUILD_ROOT | |
164 | ||
165 | %post | |
166 | /sbin/ldconfig | |
167 | %update_desktop_database_post | |
168 | %update_icon_cache hicolor | |
169 | ||
170 | %postun | |
171 | /sbin/ldconfig | |
172 | %update_desktop_database_postun | |
173 | %update_icon_cache hicolor | |
174 | ||
175 | %files -f %{name}.lang | |
176 | %defattr(644,root,root,755) | |
177 | %doc AUTHORS ChangeLog NEWS README | |
178 | %attr(755,root,root) %{_bindir}/bmp2 | |
179 | %attr(755,root,root) %{_bindir}/beep-media-player-2 | |
180 | %attr(755,root,root) %{_bindir}/bmp-play-files-2.0 | |
181 | %attr(755,root,root) %{_bindir}/bmp-play-uris-2.0 | |
182 | %attr(755,root,root) %{_libexecdir}/beep-media-player-2-bin | |
183 | %attr(755,root,root) %{_libexecdir}/beep-media-player-2-sentinel | |
184 | ||
185 | %dir %{_libdir}/bmpx | |
186 | %dir %{_libdir}/bmpx/plugins | |
187 | %dir %{_libdir}/bmpx/plugins/taglib | |
188 | %dir %{_libdir}/bmpx/plugins/vfs | |
189 | %dir %{_libdir}/bmpx/plugins/vfs/container | |
190 | %dir %{_libdir}/bmpx/plugins/vfs/transport | |
191 | %attr(755,root,root) %{_libdir}/bmpx/plugins/taglib/*.so* | |
192 | %attr(755,root,root) %{_libdir}/bmpx/plugins/vfs/container/*.so* | |
193 | %attr(755,root,root) %{_libdir}/bmpx/plugins/vfs/transport/*.so* | |
194 | %{_docdir}/bmpx | |
195 | %{_datadir}/bmpx | |
196 | %{_datadir}/dbus-1/services/*.service | |
197 | %{_mandir}/man*/* | |
198 | %{_desktopdir}/*.desktop | |
199 | %{_iconsdir}/hicolor/*/*/*.png | |
200 | ||
201 | %files devel | |
202 | %defattr(644,root,root,755) | |
203 | %{_includedir}/bmp-2.0 | |
204 | %{_pkgconfigdir}/*.pc | |
205 | ||
206 | %files -n iceweasel-extension-bmpx | |
207 | %defattr(644,root,root,755) | |
208 | %{_chromedir}/bmp.jar | |
209 | %{_chromedir}/bmp.manifest |