]> git.pld-linux.org Git - packages/bmpx.git/blame - bmpx.spec
- rel 3
[packages/bmpx.git] / bmpx.spec
CommitLineData
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 9Summary: Sound player with the WinAmp GUI, for Unix-based systems for GTK+
89d88d2f 10Summary(pl.UTF-8): Odtwarzacz dźwięku z interfejsem WinAmpa dla GTK+
88230824 11Name: bmpx
6e50f888 12Version: 0.36.1
ea0630ea 13Release: 3
940e2328 14License: GPL v2
f9221af7 15Group: X11/Applications/Sound
586ea09e 16Source0: http://files.beep-media-player.org/releases/0.36/%{name}-%{version}.tar.bz2
6e50f888 17# Source0-md5: 03a55f8b5b3899f03d71ca9dd681545d
88230824 18Source1: mp3license
cedf22f1 19Patch0: %{name}-desktop.patch
b4c533a1 20URL: http://beep-media-player.org/
88230824
PZ
21BuildRequires: autoconf
22BuildRequires: automake
35681038 23BuildRequires: bison
0d0016c7 24BuildRequires: boost-bind-devel
25BuildRequires: boost-call_traits-devel
26BuildRequires: boost-devel
27BuildRequires: boost-filesystem-devel
d7e83581 28BuildRequires: boost-regex-devel
b99b86a0 29BuildRequires: cdparanoia-III-devel
88230824 30BuildRequires: curl-devel
0d0016c7 31BuildRequires: dbus-glib-devel >= 0.62
88230824 32BuildRequires: esound-devel >= 0.2.8
0d0016c7 33BuildRequires: fam-devel
35681038 34BuildRequires: flex
c5c1c7ff 35%{?with_gaim:BuildRequires: gaim-devel}
6e50f888 36BuildRequires: gcc-c++ >= 5:4.0.0
94963d53 37BuildRequires: gstreamer-plugins-base-devel >= 0.10.10
0d0016c7 38BuildRequires: gtkmm-devel >= 2.9.8
39BuildRequires: hal-devel >= 0.5.7
40BuildRequires: libglademm-devel >= 2.6.2
41BuildRequires: libnotify-devel >= 0.4.2
9be612c0 42BuildRequires: libmusicbrainz-devel >= 2.1.1
c5c1c7ff 43%{?with_ofa:BuildRequires: libofa-devel >= 0.9.3}
f957346d 44BuildRequires: librsvg-devel >= 1:2.14.0
c5c1c7ff 45%{?with_sid:BuildRequires: libsidplay-devel}
247a510e 46BuildRequires: libtool
714f06cb 47#BuildRequires: libuuid-devel
3bca481c 48BuildRequires: libvorbis-devel >= 1:1.0
0d0016c7 49BuildRequires: libxml2-devel >= 1:2.6.26
c5c1c7ff 50BuildRequires: mpeg4ip-devel
9be612c0 51BuildRequires: neon-devel >= 0.25.5
95d89bdd 52BuildRequires: rpmbuild(macros) >= 1.311
cedf22f1 53BuildRequires: rpm-pythonprov
9be612c0 54BuildRequires: startup-notification-devel >= 0.8
94963d53 55BuildRequires: taglib-devel >= 1.4-2
98b0afa9 56BuildRequires: unzip
0d0016c7 57Requires(post,postun): desktop-file-utils
95d89bdd
MB
58Requires(post,postun): gtk+2 >= 2:2.10.0
59Requires(post,postun): hicolor-icon-theme
0d0016c7 60Requires(post,postun): shared-mime-info
94963d53 61Requires: gstreamer-audio-effects-base >= 0.10.10
0d0016c7 62Requires: gstreamer-audio-formats >= 0.10.3
e4d8b263 63Requires: gstreamer-audiosink
df2f92b7 64Obsoletes: bmpx-curses
0d0016c7 65Obsoletes: bmpx-libs
66Obsoletes: bmpx-plugin-container
67Obsoletes: bmpx-plugin-flow
68Obsoletes: bmpx-plugins-base
69Obsoletes: bmpx-plugin-transport
df2f92b7 70Obsoletes: bmpx-remote
71Obsoletes: bmpx-remote-gtk
0d0016c7 72Obsoletes: bmpx-static
88230824
PZ
73BuildRoot: %{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
79BMPx is the follow-up of the BMP project with a codebase rewritten
80from scratch and aims to maintain a stable audio player foundation,
81and to provide a player with a consistent and easy to understand usage
82experience.
88230824 83
bf8182a4
JR
84%description -l pl.UTF-8
85BMPx jest następcą projektu BMP z przepisanym od zera kodem i skupia
86się na utrzymaniu stabilnej podstawy odtwarzacza dźwięku, aby
87udostępnić odtwarzacz ze spójną i łatwą do zrozumienia obsługą.
88230824 88
940e2328
MC
89%package devel
90Summary: Header files for BMPx media player
89d88d2f 91Summary(pl.UTF-8): Pliki nagłówkowe odtwarzacza multimedialnego BMPx
940e2328 92Group: X11/Development/Libraries
0d0016c7 93Requires: dbus-glib-devel >= 0.62
9be612c0 94Obsoletes: libchroma-devel
95Obsoletes: libhrel-devel
940e2328
MC
96
97%description devel
98Header files required for compiling BMPx media player plugins.
99
bf8182a4
JR
100%description devel -l pl.UTF-8
101Pliki nagłówkowe potrzebne do kompilowania wtyczek odtwarzacza
940e2328
MC
102multimedialnego BMPx.
103
98b0afa9
MB
104%package -n mozilla-firefox-plugin-bmpx
105Summary: BMPx plugin for Mozilla Firefox
89d88d2f 106Summary(pl.UTF-8): Wtyczka BMPx dla Mozilli Firefox
98b0afa9 107Group: X11/Applications
ad13b315 108Requires: %{name} = %{version}-%{release}
98b0afa9
MB
109Requires: mozilla-firefox
110
111%description -n mozilla-firefox-plugin-bmpx
112This plugin registers the lastfm:// protocol to BMPx.
113
bf8182a4
JR
114%description -n mozilla-firefox-plugin-bmpx -l pl.UTF-8
115Ta 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
140rm -rf $RPM_BUILD_ROOT
98b0afa9 141install -d $RPM_BUILD_ROOT%{_chromedir}
88230824
PZ
142
143%{__make} install \
144 DESTDIR=$RPM_BUILD_ROOT \
145 m4datadir=%{_aclocaldir}
146
98b0afa9
MB
147unzip xpi/bmp.xpi -d $RPM_BUILD_ROOT%{_firefoxdir}
148sed -e 's@chrome/bmp\.jar@bmp\.jar@' $RPM_BUILD_ROOT%{_firefoxdir}/chrome.manifest \
149 > $RPM_BUILD_ROOT%{_chromedir}/bmp.manifest
150
151rm -f $RPM_BUILD_ROOT%{_firefoxdir}/{install.rdf,chrome.manifest}
163d47a3 152rm -f $RPM_BUILD_ROOT%{_datadir}/bmpx/data/GPL.txt
714f06cb 153rm -f $RPM_BUILD_ROOT%{_libdir}/bmpx/plugins/{taglib,vfs/container,vfs/transport}/*.la
0d0016c7 154rm -rf $RPM_BUILD_ROOT%{_datadir}/locale/th_TH
3f593018 155
88230824
PZ
156%find_lang %{name}
157
158%clean
159rm -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
167Remember to install appropriate GStreamer plugins for files
168you 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)
173EOF
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
This page took 0.067323 seconds and 4 git commands to generate.