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