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