]> git.pld-linux.org Git - packages/bluez.git/blame - bluez.spec
- up to 4.69
[packages/bluez.git] / bluez.spec
CommitLineData
2b38a1f3
KK
1# Conditional build:
2%bcond_with verbose # verbose build (V=1)
3#
8e2aef6c
AM
4Summary: Bluetooth utilities
5Summary(pl.UTF-8): Narzędzia Bluetooth
6Name: bluez
b9ca25a6 7Version: 4.69
390f913c 8Release: 1
8e2aef6c
AM
9License: GPL v2+
10Group: Applications/System
11#Source0Download: http://www.bluez.org/download.html
12Source0: http://www.kernel.org/pub/linux/bluetooth/%{name}-%{version}.tar.gz
b9ca25a6 13# Source0-md5: 986a08fb5c94ebd7d1a4d702e45ee34e
8e2aef6c
AM
14Source1: %{name}.init
15Source2: %{name}.sysconfig
829382b7
AM
16Source3: dund.init
17Source4: pand.init
18Source5: rfcomm.init
8e2aef6c 19Patch0: %{name}-etc_dir.patch
0416a3b3 20Patch1: %{name}-oui.patch
5be4f75f 21Patch2: %{name}-wacom-mode-2.patch
0416a3b3 22Patch3: %{name}-try-utf8-harder.patch
8e2aef6c
AM
23URL: http://www.bluez.org/
24BuildRequires: alsa-lib-devel >= 1.0.10-1
25BuildRequires: autoconf >= 2.50
26BuildRequires: automake
27BuildRequires: bison
28BuildRequires: dbus-glib-devel >= 0.60
29BuildRequires: glib2-devel >= 2.0
30BuildRequires: gstreamer-devel >= 0.10
31BuildRequires: gstreamer-plugins-base-devel >= 0.10
2b38a1f3 32BuildRequires: libcap-ng-devel
2dbefe61 33BuildRequires: libnl-devel
8e2aef6c
AM
34BuildRequires: libsndfile-devel
35BuildRequires: libtool
8743dbe7 36BuildRequires: libusb-compat-devel
8e2aef6c
AM
37BuildRequires: pkgconfig >= 1:0.9.0
38BuildRequires: rpmbuild(macros) >= 1.268
9b3fd779 39BuildRequires: udev-devel
8e2aef6c 40Requires: %{name}-libs = %{epoch}:%{version}-%{release}
0416a3b3 41Requires: hwdata >= 0.225
9b3fd779 42Requires: rc-scripts
43Provides: bluez-utils = %{epoch}:%{version}-%{release}
8e2aef6c
AM
44Obsoletes: bluez-hciemu
45Obsoletes: bluez-pan
46Obsoletes: bluez-sdp
5e8dfcdf 47Obsoletes: bluez-utils
8e2aef6c
AM
48Obsoletes: bluez-utils-init
49Conflicts: bluez-bluefw
50ExcludeArch: s390 s390x
51BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
52
53# currently lib, not %{_lib} (see cups.spec)
54%define cupsdir /usr/lib/cups/backend
d80dfd39 55%define udevdir /lib/udev
8e2aef6c
AM
56
57%description
58Bluetooth utilities:
d8eef2ef
TP
59 - bluetoothd
60 - dund
8e2aef6c
AM
61 - hcitool
62 - hciattach
63 - hciconfig
8e2aef6c
AM
64 - hciemu
65 - hidd
66 - l2ping
67 - pand
68 - start scripts (PLD)
69 - PCMCIA configuration files
70
71The BLUETOOTH trademarks are owned by Bluetooth SIG, Inc., U.S.A.
72
73%description -l pl.UTF-8
74Narzędzia Bluetooth:
d8eef2ef
TP
75 - bluetoothd
76 - dund
8e2aef6c
AM
77 - hcitool
78 - hciattach
79 - hciconfig
8e2aef6c
AM
80 - hciemu
81 - hidd
82 - l2ping
83 - pand
84 - skrypty startowe (PLD)
85 - pliki konfiguracji PCMCIA
86
87Znaki towarowe BLUETOOTH są własnością Bluetooth SIG, Inc. z USA.
88
89%package -n alsa-plugins-bluetooth
90Summary: ALSA plugins for Bluetooth audio devices
91Summary(pl.UTF-8): Wtyczki systemu ALSA dla urządzeń dźwiękowych Bluetooth
92Group: Libraries
93# bluetoothd + audio service
94Requires: %{name} = %{epoch}:%{version}-%{release}
95Requires: alsa-lib >= 1.0.10-1
96
97%description -n alsa-plugins-bluetooth
98ALSA plugins for Bluetooth audio devices.
99
100%description -n alsa-plugins-bluetooth -l pl.UTF-8
101Wtyczki systemu ALSA dla urządzeń dźwiękowych Bluetooth.
102
103%package -n cups-backend-bluetooth
104Summary: Bluetooth backend for CUPS
105Summary(pl.UTF-8): Backend Bluetooth dla CUPS-a
106Group: Applications/Printing
107Requires: bluez-libs >= %{epoch}:%{version}-%{release}
108Requires: cups
109
110%description -n cups-backend-bluetooth
111Bluetooth backend for CUPS.
112
113%description -n cups-backend-bluetooth -l pl.UTF-8
114Backend Bluetooth dla CUPS-a.
115
116%package -n gstreamer-bluetooth
117Summary: Bluetooth support for gstreamer
118Summary(pl.UTF-8): Obsługa Bluetooth dla gstreamera
119Group: Libraries
120Requires: bluez-libs >= %{epoch}:%{version}-%{release}
121Requires: gstreamer >= 0.10
122Requires: gstreamer-plugins-base >= 0.10
123
124%description -n gstreamer-bluetooth
125Bluetooth support for gstreamer.
126
127%description -n gstreamer-bluetooth -l pl.UTF-8
128Obsługa Bluetooth dla gstreamera.
129
130%package libs
131Summary: Bluetooth libraries
132Summary(pl.UTF-8): Biblioteki Bluetooth
133Group: Development/Libraries
134Obsoletes: bluez-sdp
135
136%description libs
137Libraries for use in Bluetooth applications.
138
139The BLUETOOTH trademarks are owned by Bluetooth SIG, Inc., U.S.A.
140
141%description libs -l pl.UTF-8
142Biblioteki do używania w aplikacjach Bluetooth.
143
144Znaki towarowe BLUETOOTH są własnością Bluetooth SIG, Inc. z USA.
145
146%package libs-devel
147Summary: Header files for Bluetooth applications
148Summary(pl.UTF-8): Pliki nagłówkowe dla aplikacji Bluetooth
149Group: Development/Libraries
150Requires: %{name}-libs = %{epoch}:%{version}-%{release}
151Obsoletes: bluez-sdp-devel
152
153%description libs-devel
154bluez-libs-devel contains header files for use in Bluetooth
155applications.
156
157%description libs-devel -l pl.UTF-8
158Ten pakiet zawiera pliki nagłówkowe do używania w aplikacjach
159Bluetooth.
160
161%package libs-static
162Summary: Static Bluetooth libraries
163Summary(pl.UTF-8): Biblioteki statyczne Bluetooth
164Group: Development/Libraries
165Requires: %{name}-libs-devel = %{epoch}:%{version}-%{release}
166Obsoletes: bluez-sdp-static
167
168%description libs-static
169bluez-libs-static contains development static libraries for use in
170Bluetooth applications.
171
172%description libs-static -l pl.UTF-8
173Ten pakiet zawiera biblioteki statyczne, których można używać do
174aplikacji Bluetooth.
175
176%prep
177%setup -q
178%patch0 -p1
0416a3b3 179%patch1 -p1
5be4f75f 180%patch2 -p1
0416a3b3 181%patch3 -p1
8e2aef6c
AM
182
183%build
184%{__libtoolize}
185%{__aclocal}
186%{__autoconf}
187%{__autoheader}
188%{__automake}
189%configure \
190 --enable-shared \
191 --enable-static \
192 --enable-alsa \
8e2aef6c
AM
193 --enable-audio \
194 --enable-bccmd \
ebcc455c 195 --enable-configfiles \
8e2aef6c
AM
196 --enable-cups \
197 --enable-dfutool \
198 --enable-dund \
199 --enable-gstreamer \
200 --enable-hid2hci \
201 --enable-hidd \
202 --enable-input \
ebcc455c 203 --enable-netlink \
8e2aef6c
AM
204 --enable-network \
205 --enable-pand \
5be4f75f 206 --enable-pcmcia \
8e2aef6c
AM
207 --enable-serial \
208 --enable-tools \
5be4f75f 209 --enable-usb \
9b3fd779 210 --enable-udevrules
8e2aef6c 211
284a9eb9 212%{__make} \
8e2aef6c 213 cupsdir=%{cupsdir} \
2b38a1f3
KK
214 rulesdir=%{udevdir}/rules.d \
215 udevdir=%{udevdir} \
216 %{?with_verbose:V=1}
8e2aef6c
AM
217
218%install
219rm -rf $RPM_BUILD_ROOT
220install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig}
8e2aef6c
AM
221
222%{__make} install \
223 DESTDIR=$RPM_BUILD_ROOT \
224 cupsdir=%{cupsdir} \
2b38a1f3
KK
225 rulesdir=%{udevdir}/rules.d \
226 udevdir=%{udevdir} \
227 %{?with_verbose:V=1}
8e2aef6c 228
8e2aef6c
AM
229install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/bluetooth
230install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/bluetooth
829382b7
AM
231install %{SOURCE3} $RPM_BUILD_ROOT/etc/rc.d/init.d/dund
232install %{SOURCE4} $RPM_BUILD_ROOT/etc/rc.d/init.d/pand
233install %{SOURCE5} $RPM_BUILD_ROOT/etc/rc.d/init.d/rfcomm
9a71d017
BZ
234
235install audio/*.conf $RPM_BUILD_ROOT%{_sysconfdir}/bluetooth
236install input/*.conf $RPM_BUILD_ROOT%{_sysconfdir}/bluetooth
237install network/*.conf $RPM_BUILD_ROOT%{_sysconfdir}/bluetooth
238install serial/*.conf $RPM_BUILD_ROOT%{_sysconfdir}/bluetooth
239
1094cbf6
AM
240rm -f $RPM_BUILD_ROOT%{_libdir}/alsa-lib/*.{,l}a
241rm -f $RPM_BUILD_ROOT%{_libdir}/bluetooth/plugins/*.{,l}a
242rm -f $RPM_BUILD_ROOT%{_libdir}/gstreamer*/libgstbluetooth.{,l}a
8e2aef6c
AM
243
244%clean
245rm -rf $RPM_BUILD_ROOT
246
247%post
248/sbin/chkconfig --add bluetooth
829382b7
AM
249/sbin/chkconfig --add dund
250/sbin/chkconfig --add pand
251/sbin/chkconfig --add rfcomm
8e2aef6c 252%service bluetooth restart
829382b7
AM
253%service dund restart
254%service pand restart
255%service rfcomm restart
8e2aef6c
AM
256
257%preun
258if [ "$1" = "0" ]; then
259 %service bluetooth stop
829382b7
AM
260 %service dund stop
261 %service pand stop
262 %service rfcomm stop
8e2aef6c 263 /sbin/chkconfig --del bluetooth
829382b7
AM
264 /sbin/chkconfig --del dund
265 /sbin/chkconfig --del pand
266 /sbin/chkconfig --del rfcomm
8e2aef6c
AM
267fi
268
d8eef2ef 269%post libs -p /sbin/ldconfig
8e2aef6c
AM
270%postun libs -p /sbin/ldconfig
271
272%files
273%defattr(644,root,root,755)
f7f17420 274%doc AUTHORS ChangeLog README
8e2aef6c
AM
275%attr(755,root,root) %{_bindir}/*
276%attr(755,root,root) %{_sbindir}/*
277%dir %{_libdir}/bluetooth
278%dir %{_libdir}/bluetooth/plugins
279%attr(755,root,root) %{_libdir}/bluetooth/plugins/*.so
280%dir %{_sysconfdir}/bluetooth
9a71d017 281%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bluetooth/*.conf
8e2aef6c 282%attr(754,root,root) /etc/rc.d/init.d/bluetooth
829382b7
AM
283%attr(754,root,root) /etc/rc.d/init.d/dund
284%attr(754,root,root) /etc/rc.d/init.d/pand
285%attr(754,root,root) /etc/rc.d/init.d/rfcomm
8e2aef6c
AM
286%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/bluetooth
287%config(noreplace) %verify(not md5 mtime size) /etc/dbus-1/system.d/bluetooth.conf
8e2aef6c 288%attr(755,root,root) %{udevdir}/bluetooth_serial
829382b7
AM
289%config(noreplace) %verify(not md5 mtime size) %{udevdir}/rules.d/97-bluetooth.rules
290%config(noreplace) %verify(not md5 mtime size) %{udevdir}/rules.d/97-bluetooth-hid2hci.rules
291%config(noreplace) %verify(not md5 mtime size) %{udevdir}/rules.d/97-bluetooth-serial.rules
8e2aef6c
AM
292%{_mandir}/man[18]/*
293
294%files -n alsa-plugins-bluetooth
295%defattr(644,root,root,755)
3031dd13 296%dir %{_sysconfdir}/alsa
31ae8b61 297%{_sysconfdir}/alsa/bluetooth.conf
8e2aef6c
AM
298%attr(755,root,root) %{_libdir}/alsa-lib/libasound_module_ctl_bluetooth.so
299%attr(755,root,root) %{_libdir}/alsa-lib/libasound_module_pcm_bluetooth.so
300
301%files -n cups-backend-bluetooth
302%defattr(644,root,root,755)
303%attr(755,root,root) %{_prefix}/lib/cups/backend/bluetooth
304
305%files -n gstreamer-bluetooth
306%defattr(644,root,root,755)
307%attr(755,root,root) %{_libdir}/gstreamer*/libgstbluetooth.so
308
309%files libs
310%defattr(644,root,root,755)
311%attr(755,root,root) %{_libdir}/libbluetooth.so.*.*.*
312%attr(755,root,root) %ghost %{_libdir}/libbluetooth.so.[0-9]
313
314%files libs-devel
315%defattr(644,root,root,755)
316%attr(755,root,root) %{_libdir}/libbluetooth.so
317%{_libdir}/libbluetooth.la
318%{_includedir}/bluetooth
8e2aef6c
AM
319%{_pkgconfigdir}/bluez.pc
320
321%files libs-static
322%defattr(644,root,root,755)
323%{_libdir}/libbluetooth.a
This page took 0.09262 seconds and 4 git commands to generate.