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