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