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