]>
Commit | Line | Data |
---|---|---|
714f06cb | 1 | # TODO: use system libuuid instead of included one |
ad13b315 | 2 | # TODO: use browser-plugins if plugin works with something else than firefox (e.g. seamonkey) |
e427c036 JB |
3 | # |
4 | # Conditional build: | |
d10296b6 | 5 | %bcond_without gaim # build without D-BUS gaim support |
6 | %bcond_without sid # build without sid support | |
7 | %bcond_without ofa # build without MusicIP support | |
e427c036 | 8 | # |
e4d8b263 | 9 | Summary: Sound player with the WinAmp GUI, for Unix-based systems for GTK+ |
89d88d2f | 10 | Summary(pl.UTF-8): Odtwarzacz dźwięku z interfejsem WinAmpa dla GTK+ |
88230824 | 11 | Name: bmpx |
6e50f888 | 12 | Version: 0.36.1 |
ea0630ea | 13 | Release: 3 |
940e2328 | 14 | License: GPL v2 |
f9221af7 | 15 | Group: X11/Applications/Sound |
586ea09e | 16 | Source0: http://files.beep-media-player.org/releases/0.36/%{name}-%{version}.tar.bz2 |
6e50f888 | 17 | # Source0-md5: 03a55f8b5b3899f03d71ca9dd681545d |
88230824 | 18 | Source1: mp3license |
cedf22f1 | 19 | Patch0: %{name}-desktop.patch |
b4c533a1 | 20 | URL: http://beep-media-player.org/ |
88230824 PZ |
21 | BuildRequires: autoconf |
22 | BuildRequires: automake | |
35681038 | 23 | BuildRequires: bison |
0d0016c7 | 24 | BuildRequires: boost-bind-devel |
25 | BuildRequires: boost-call_traits-devel | |
26 | BuildRequires: boost-devel | |
27 | BuildRequires: boost-filesystem-devel | |
d7e83581 | 28 | BuildRequires: boost-regex-devel |
b99b86a0 | 29 | BuildRequires: cdparanoia-III-devel |
88230824 | 30 | BuildRequires: curl-devel |
0d0016c7 | 31 | BuildRequires: dbus-glib-devel >= 0.62 |
88230824 | 32 | BuildRequires: esound-devel >= 0.2.8 |
0d0016c7 | 33 | BuildRequires: fam-devel |
35681038 | 34 | BuildRequires: flex |
c5c1c7ff | 35 | %{?with_gaim:BuildRequires: gaim-devel} |
6e50f888 | 36 | BuildRequires: gcc-c++ >= 5:4.0.0 |
94963d53 | 37 | BuildRequires: gstreamer-plugins-base-devel >= 0.10.10 |
0d0016c7 | 38 | BuildRequires: gtkmm-devel >= 2.9.8 |
39 | BuildRequires: hal-devel >= 0.5.7 | |
40 | BuildRequires: libglademm-devel >= 2.6.2 | |
41 | BuildRequires: libnotify-devel >= 0.4.2 | |
9be612c0 | 42 | BuildRequires: libmusicbrainz-devel >= 2.1.1 |
c5c1c7ff | 43 | %{?with_ofa:BuildRequires: libofa-devel >= 0.9.3} |
f957346d | 44 | BuildRequires: librsvg-devel >= 1:2.14.0 |
c5c1c7ff | 45 | %{?with_sid:BuildRequires: libsidplay-devel} |
247a510e | 46 | BuildRequires: libtool |
714f06cb | 47 | #BuildRequires: libuuid-devel |
3bca481c | 48 | BuildRequires: libvorbis-devel >= 1:1.0 |
0d0016c7 | 49 | BuildRequires: libxml2-devel >= 1:2.6.26 |
c5c1c7ff | 50 | BuildRequires: mpeg4ip-devel |
9be612c0 | 51 | BuildRequires: neon-devel >= 0.25.5 |
95d89bdd | 52 | BuildRequires: rpmbuild(macros) >= 1.311 |
cedf22f1 | 53 | BuildRequires: rpm-pythonprov |
9be612c0 | 54 | BuildRequires: startup-notification-devel >= 0.8 |
94963d53 | 55 | BuildRequires: taglib-devel >= 1.4-2 |
98b0afa9 | 56 | BuildRequires: unzip |
0d0016c7 | 57 | Requires(post,postun): desktop-file-utils |
95d89bdd MB |
58 | Requires(post,postun): gtk+2 >= 2:2.10.0 |
59 | Requires(post,postun): hicolor-icon-theme | |
0d0016c7 | 60 | Requires(post,postun): shared-mime-info |
94963d53 | 61 | Requires: gstreamer-audio-effects-base >= 0.10.10 |
0d0016c7 | 62 | Requires: gstreamer-audio-formats >= 0.10.3 |
e4d8b263 | 63 | Requires: gstreamer-audiosink |
df2f92b7 | 64 | Obsoletes: bmpx-curses |
0d0016c7 | 65 | Obsoletes: bmpx-libs |
66 | Obsoletes: bmpx-plugin-container | |
67 | Obsoletes: bmpx-plugin-flow | |
68 | Obsoletes: bmpx-plugins-base | |
69 | Obsoletes: bmpx-plugin-transport | |
df2f92b7 | 70 | Obsoletes: bmpx-remote |
71 | Obsoletes: bmpx-remote-gtk | |
0d0016c7 | 72 | Obsoletes: bmpx-static |
88230824 PZ |
73 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
74 | ||
98b0afa9 MB |
75 | %define _firefoxdir %{_libdir}/mozilla-firefox |
76 | %define _chromedir %{_firefoxdir}/chrome | |
77 | ||
88230824 | 78 | %description |
0839fab6 MC |
79 | BMPx is the follow-up of the BMP project with a codebase rewritten |
80 | from scratch and aims to maintain a stable audio player foundation, | |
81 | and to provide a player with a consistent and easy to understand usage | |
82 | experience. | |
88230824 | 83 | |
bf8182a4 JR |
84 | %description -l pl.UTF-8 |
85 | BMPx jest następcą projektu BMP z przepisanym od zera kodem i skupia | |
86 | się na utrzymaniu stabilnej podstawy odtwarzacza dźwięku, aby | |
87 | udostępnić odtwarzacz ze spójną i łatwą do zrozumienia obsługą. | |
88230824 | 88 | |
940e2328 MC |
89 | %package devel |
90 | Summary: Header files for BMPx media player | |
89d88d2f | 91 | Summary(pl.UTF-8): Pliki nagłówkowe odtwarzacza multimedialnego BMPx |
940e2328 | 92 | Group: X11/Development/Libraries |
0d0016c7 | 93 | Requires: dbus-glib-devel >= 0.62 |
9be612c0 | 94 | Obsoletes: libchroma-devel |
95 | Obsoletes: libhrel-devel | |
940e2328 MC |
96 | |
97 | %description devel | |
98 | Header files required for compiling BMPx media player plugins. | |
99 | ||
bf8182a4 JR |
100 | %description devel -l pl.UTF-8 |
101 | Pliki nagłówkowe potrzebne do kompilowania wtyczek odtwarzacza | |
940e2328 MC |
102 | multimedialnego BMPx. |
103 | ||
98b0afa9 MB |
104 | %package -n mozilla-firefox-plugin-bmpx |
105 | Summary: BMPx plugin for Mozilla Firefox | |
89d88d2f | 106 | Summary(pl.UTF-8): Wtyczka BMPx dla Mozilli Firefox |
98b0afa9 | 107 | Group: X11/Applications |
ad13b315 | 108 | Requires: %{name} = %{version}-%{release} |
98b0afa9 MB |
109 | Requires: mozilla-firefox |
110 | ||
111 | %description -n mozilla-firefox-plugin-bmpx | |
112 | This plugin registers the lastfm:// protocol to BMPx. | |
113 | ||
bf8182a4 JR |
114 | %description -n mozilla-firefox-plugin-bmpx -l pl.UTF-8 |
115 | Ta wtyczka rejestruje protokół lastfm:// do BMPx. | |
98b0afa9 | 116 | |
88230824 | 117 | %prep |
68dab5e3 | 118 | %setup -q |
247a510e | 119 | %patch0 -p1 |
88230824 PZ |
120 | |
121 | %build | |
247a510e | 122 | %{__libtoolize} |
88230824 PZ |
123 | %{__aclocal} -I m4 |
124 | %{__autoconf} | |
125 | %{__autoheader} | |
126 | %{__automake} | |
127 | %configure \ | |
40f7c8fb | 128 | --enable-hal \ |
c5c1c7ff | 129 | --enable-gamin \ |
130 | --enable-libnotify \ | |
131 | --enable-mp4v2 \ | |
132 | %{?with_ofa:--enable-ofa} \ | |
133 | %{?with_sid:--enable-sid} \ | |
163d47a3 | 134 | --enable-shared \ |
c5c1c7ff | 135 | %{?with_gaim:--enable-gaim} \ |
9be612c0 | 136 | --with-dbus-services-dir=%{_datadir}/dbus-1/services |
88230824 PZ |
137 | %{__make} |
138 | ||
139 | %install | |
140 | rm -rf $RPM_BUILD_ROOT | |
98b0afa9 | 141 | install -d $RPM_BUILD_ROOT%{_chromedir} |
88230824 PZ |
142 | |
143 | %{__make} install \ | |
144 | DESTDIR=$RPM_BUILD_ROOT \ | |
145 | m4datadir=%{_aclocaldir} | |
146 | ||
98b0afa9 MB |
147 | unzip xpi/bmp.xpi -d $RPM_BUILD_ROOT%{_firefoxdir} |
148 | sed -e 's@chrome/bmp\.jar@bmp\.jar@' $RPM_BUILD_ROOT%{_firefoxdir}/chrome.manifest \ | |
149 | > $RPM_BUILD_ROOT%{_chromedir}/bmp.manifest | |
150 | ||
151 | rm -f $RPM_BUILD_ROOT%{_firefoxdir}/{install.rdf,chrome.manifest} | |
163d47a3 | 152 | rm -f $RPM_BUILD_ROOT%{_datadir}/bmpx/data/GPL.txt |
714f06cb | 153 | rm -f $RPM_BUILD_ROOT%{_libdir}/bmpx/plugins/{taglib,vfs/container,vfs/transport}/*.la |
0d0016c7 | 154 | rm -rf $RPM_BUILD_ROOT%{_datadir}/locale/th_TH |
3f593018 | 155 | |
88230824 PZ |
156 | %find_lang %{name} |
157 | ||
158 | %clean | |
159 | rm -rf $RPM_BUILD_ROOT | |
160 | ||
161 | %post | |
40f7c8fb | 162 | %update_desktop_database_post |
95d89bdd MB |
163 | %update_mime_database |
164 | %update_icon_cache hicolor | |
b9c3f977 | 165 | |
e4d8b263 | 166 | %banner %{name} -e << EOF |
167 | Remember to install appropriate GStreamer plugins for files | |
168 | you want to play: | |
0d0016c7 | 169 | - gstreamer-cdparanoia (for Audio-CD) |
e4d8b263 | 170 | - gstreamer-flac (for FLAC) |
171 | - gstreamer-mad (for MP3s) | |
172 | - gstreamer-vorbis (for Ogg Vorbis) | |
173 | EOF | |
0839fab6 | 174 | |
88230824 | 175 | %postun |
40f7c8fb | 176 | %update_desktop_database_postun |
95d89bdd MB |
177 | %update_mime_database |
178 | %update_icon_cache hicolor | |
0839fab6 | 179 | |
88230824 PZ |
180 | %files -f %{name}.lang |
181 | %defattr(644,root,root,755) | |
940e2328 | 182 | %doc AUTHORS ChangeLog NEWS README |
cedf22f1 | 183 | %attr(755,root,root) %{_bindir}/beep-media-player-2 |
184 | %attr(755,root,root) %{_bindir}/bmp-enqueue-files-2.0 | |
185 | %attr(755,root,root) %{_bindir}/bmp-enqueue-uris-2.0 | |
186 | %attr(755,root,root) %{_bindir}/bmp-play-files-2.0 | |
482d01dd | 187 | %attr(755,root,root) %{_bindir}/bmp-play-lastfm-2.0 |
cedf22f1 | 188 | %attr(755,root,root) %{_libexecdir}/beep-media-player-2-bin |
1bbd746c | 189 | %attr(755,root,root) %{_libexecdir}/beep-media-player-2-sentinel |
0d0016c7 | 190 | |
191 | %dir %{_libdir}/bmpx | |
192 | %dir %{_libdir}/bmpx/plugins | |
586ea09e | 193 | %dir %{_libdir}/bmpx/plugins/taglib |
0d0016c7 | 194 | %dir %{_libdir}/bmpx/plugins/vfs |
195 | %dir %{_libdir}/bmpx/plugins/vfs/container | |
196 | %dir %{_libdir}/bmpx/plugins/vfs/transport | |
586ea09e | 197 | %attr(755,root,root) %{_libdir}/bmpx/plugins/taglib/*.so* |
0d0016c7 | 198 | %attr(755,root,root) %{_libdir}/bmpx/plugins/vfs/container/*.so* |
199 | %attr(755,root,root) %{_libdir}/bmpx/plugins/vfs/transport/*.so* | |
200 | ||
88230824 | 201 | %{_datadir}/bmpx |
9be612c0 | 202 | %{_datadir}/dbus-1/services/*.service |
cedf22f1 | 203 | %{_mandir}/man*/* |
e0ee8290 | 204 | %{_desktopdir}/*.desktop |
0d0016c7 | 205 | %{_iconsdir}/hicolor/*/*/*.png |
2b5caf92 | 206 | |
940e2328 MC |
207 | %files devel |
208 | %defattr(644,root,root,755) | |
cedf22f1 | 209 | %{_includedir}/bmp-2.0 |
9be612c0 | 210 | %{_pkgconfigdir}/*.pc |
98b0afa9 MB |
211 | |
212 | %files -n mozilla-firefox-plugin-bmpx | |
213 | %defattr(644,root,root,755) | |
214 | %{_chromedir}/bmp.jar | |
215 | %{_chromedir}/bmp.manifest |