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