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