]> git.pld-linux.org Git - packages/bluez.git/blame - bluez.spec
up to 5.60
[packages/bluez.git] / bluez.spec
CommitLineData
886fa953
JB
1# TODO:
2# - verify/update bluetooth init script
d358118c 3# - separate obex?
b7b1b136
JB
4#
5# Conditional build:
6%bcond_without deprecated # deprecated tools (ciptool,hciattach,hciconfig,hcidump,hcitool,rfcomm,sdptool)
7#
8e2aef6c
AM
8Summary: Bluetooth utilities
9Summary(pl.UTF-8): Narzędzia Bluetooth
10Name: bluez
1fd34b8a 11Version: 5.60
dc831a02 12Release: 1
8e2aef6c
AM
13License: GPL v2+
14Group: Applications/System
6feb4e6d 15Source0: https://www.kernel.org/pub/linux/bluetooth/%{name}-%{version}.tar.xz
1fd34b8a 16# Source0-md5: 4e1a35c08410354cf4969a46a8f5d4fd
8e2aef6c
AM
17Source1: %{name}.init
18Source2: %{name}.sysconfig
477801c9
JR
19# Scripts for automatically btattach-ing serial ports connected to Broadcom HCIs
20# as found on some Atom based x86 hardware
21Source3: 69-btattach-bcm.rules
22Source4: btattach-bcm@.service
23Source5: btattach-bcm-service.sh
24Patch0: 0001-obex-Use-GLib-helper-function-to-manipulate-paths.patch
8e2aef6c 25URL: http://www.bluez.org/
b7b1b136 26BuildRequires: alsa-lib-devel >= 1.0
b0a62422 27BuildRequires: autoconf >= 2.60
8e2aef6c 28BuildRequires: automake
f288002d 29BuildRequires: check-devel >= 0.9.6
477801c9 30BuildRequires: cups-devel
a5b81081 31BuildRequires: dbus-devel >= 1.6
649d5a09 32BuildRequires: docutils
41be8c17 33BuildRequires: ell-devel >= 0.39
0ff69826 34BuildRequires: glib2-devel >= 1:2.28
f072e9cd 35BuildRequires: json-c-devel >= 0.13
886fa953 36BuildRequires: libical-devel
8e2aef6c 37BuildRequires: libtool
8e2aef6c 38BuildRequires: pkgconfig >= 1:0.9.0
9980fdad 39BuildRequires: readline-devel
d358118c 40BuildRequires: rpmbuild(macros) >= 1.682
477801c9 41BuildRequires: systemd-devel
886fa953 42BuildRequires: tar >= 1:1.22
e4a249a5 43BuildRequires: udev-devel >= 1:172
886fa953 44BuildRequires: xz
e01e2ec1 45Requires(post,preun,postun): systemd-units >= 38
bfe3d974 46Requires: %{name}-libs = %{version}-%{release}
a5b81081 47Requires: dbus-libs >= 1.6
41be8c17 48Requires: ell >= 0.39
0ff69826 49Requires: glib2 >= 1:2.28
0416a3b3 50Requires: hwdata >= 0.225
f072e9cd 51Requires: json-c >= 0.13
9b3fd779 52Requires: rc-scripts
e01e2ec1 53Requires: systemd-units >= 38
e4a249a5 54Requires: udev >= 1:172
886fa953 55Provides: bluez-hcidump = %{version}
bfe3d974 56Provides: bluez-utils = %{version}-%{release}
886fa953 57Provides: obexd = %{version}
c8deab5a
JR
58Provides: dbus(org.openobex.client)
59Provides: obex-data-server = %{version}
886fa953
JB
60# moved somewhere or dropped?
61#Obsoletes: alsa-plugins-bluetooth
62Obsoletes: bluez-hcidump
8e2aef6c
AM
63Obsoletes: bluez-hciemu
64Obsoletes: bluez-pan
65Obsoletes: bluez-sdp
6acdd90b 66Obsoletes: bluez-systemd
5e8dfcdf 67Obsoletes: bluez-utils
8e2aef6c 68Obsoletes: bluez-utils-init
886fa953 69Obsoletes: obexd
c8deab5a 70Obsoletes: obex-data-server
886fa953
JB
71# moved somewhere or dropped?
72#Obsoletes: gstreamer-bluetooth < 4.101-3
73#Obsoletes: gstreamer0.10-bluetooth < 5
8e2aef6c
AM
74Conflicts: bluez-bluefw
75ExcludeArch: s390 s390x
76BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
77
78# currently lib, not %{_lib} (see cups.spec)
79%define cupsdir /usr/lib/cups/backend
d80dfd39 80%define udevdir /lib/udev
8e2aef6c
AM
81
82%description
83Bluetooth utilities:
d8eef2ef 84 - bluetoothd
8e2aef6c
AM
85 - hciattach
86 - hciconfig
886fa953
JB
87 - hcidump
88 - hcitool
8e2aef6c 89 - l2ping
8e2aef6c 90 - start scripts (PLD)
8e2aef6c
AM
91
92The BLUETOOTH trademarks are owned by Bluetooth SIG, Inc., U.S.A.
93
94%description -l pl.UTF-8
95Narzędzia Bluetooth:
d8eef2ef 96 - bluetoothd
8e2aef6c
AM
97 - hciattach
98 - hciconfig
886fa953
JB
99 - hcidump
100 - hcitool
8e2aef6c 101 - l2ping
8e2aef6c 102 - skrypty startowe (PLD)
8e2aef6c
AM
103
104Znaki towarowe BLUETOOTH są własnością Bluetooth SIG, Inc. z USA.
105
8e2aef6c
AM
106%package -n cups-backend-bluetooth
107Summary: Bluetooth backend for CUPS
108Summary(pl.UTF-8): Backend Bluetooth dla CUPS-a
109Group: Applications/Printing
42ca9004 110Requires: %{name}-libs = %{version}-%{release}
8e2aef6c
AM
111Requires: cups
112
113%description -n cups-backend-bluetooth
114Bluetooth backend for CUPS.
115
116%description -n cups-backend-bluetooth -l pl.UTF-8
117Backend Bluetooth dla CUPS-a.
118
42ca9004
JB
119%package -n zsh-completion-bluez
120Summary: Zsh completion for bluez commands
121Summary(pl.UTF-8): Dopełnianie parametrów w zsh dla poleceń z pakietu bluez
122Group: Applications/Shells
123Requires: %{name} = %{version}-%{release}
124Requires: zsh
125
126%description -n zsh-completion-bluez
127Zsh completion for bluez commands (bluezctl utility).
128
129%description -n zsh-completion-bluez -l pl.UTF-8
130Dopełnianie parametrów w zsh dla poleceń z pakietu bluez (narzędzia
131bluezctl).
132
8e2aef6c
AM
133%package libs
134Summary: Bluetooth libraries
135Summary(pl.UTF-8): Biblioteki Bluetooth
ce95dcac 136Group: Libraries
8e2aef6c
AM
137Obsoletes: bluez-sdp
138
139%description libs
140Libraries for use in Bluetooth applications.
141
142The BLUETOOTH trademarks are owned by Bluetooth SIG, Inc., U.S.A.
143
144%description libs -l pl.UTF-8
145Biblioteki do używania w aplikacjach Bluetooth.
146
147Znaki towarowe BLUETOOTH są własnością Bluetooth SIG, Inc. z USA.
148
149%package libs-devel
150Summary: Header files for Bluetooth applications
151Summary(pl.UTF-8): Pliki nagłówkowe dla aplikacji Bluetooth
152Group: Development/Libraries
bfe3d974 153Requires: %{name}-libs = %{version}-%{release}
8e2aef6c
AM
154Obsoletes: bluez-sdp-devel
155
156%description libs-devel
157bluez-libs-devel contains header files for use in Bluetooth
158applications.
159
160%description libs-devel -l pl.UTF-8
161Ten pakiet zawiera pliki nagłówkowe do używania w aplikacjach
162Bluetooth.
163
164%package libs-static
165Summary: Static Bluetooth libraries
166Summary(pl.UTF-8): Biblioteki statyczne Bluetooth
167Group: Development/Libraries
bfe3d974 168Requires: %{name}-libs-devel = %{version}-%{release}
8e2aef6c
AM
169Obsoletes: bluez-sdp-static
170
171%description libs-static
172bluez-libs-static contains development static libraries for use in
173Bluetooth applications.
174
175%description libs-static -l pl.UTF-8
176Ten pakiet zawiera biblioteki statyczne, których można używać do
177aplikacji Bluetooth.
178
179%prep
180%setup -q
477801c9 181%patch0 -p1
8e2aef6c 182
0d05b843
JB
183# external ell is broken if ell/ell.h is in place due to deps generation and Makefile.am rules
184%{__rm} -r ell
185
8e2aef6c
AM
186%build
187%{__libtoolize}
188%{__aclocal}
189%{__autoconf}
190%{__autoheader}
191%{__automake}
192%configure \
b0a62422 193 --disable-silent-rules \
2686afe6 194 --enable-btpclient \
42ca9004 195 %{?with_deprecated:--enable-deprecated} \
d358118c 196 --enable-experimental \
42ca9004 197 --enable-external-ell \
b7b1b136 198 --enable-health \
dc831a02 199 --enable-hid2hci \
886fa953 200 --enable-library \
477801c9
JR
201 --enable-tools \
202 --enable-cups \
203 --enable-testing \
2686afe6 204 --enable-mesh \
b7b1b136
JB
205 --enable-midi \
206 --enable-nfc \
207 --enable-sap \
d358118c
JB
208 --enable-sixaxis \
209 --enable-static \
dc831a02 210 --with-udevdir=%{udevdir} \
d358118c
JB
211 --with-systemdsystemunitdir=%{systemdunitdir} \
212 --with-systemduserunitdir=%{systemduserunitdir}
8e2aef6c 213
284a9eb9 214%{__make} \
dc831a02 215 cupsdir=%{cupsdir}
8e2aef6c
AM
216
217%install
218rm -rf $RPM_BUILD_ROOT
f8fe27de 219install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig} \
d358118c 220 $RPM_BUILD_ROOT{%{_libdir}/{bluetooth,obex}/plugins,%{_sysconfdir}/bluetooth}
8e2aef6c
AM
221
222%{__make} install \
223 DESTDIR=$RPM_BUILD_ROOT \
224 cupsdir=%{cupsdir} \
2b38a1f3 225 rulesdir=%{udevdir}/rules.d \
b0a62422 226 udevdir=%{udevdir}
8e2aef6c 227
8e2aef6c
AM
228install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/bluetooth
229install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/bluetooth
9a71d017 230
886fa953
JB
231install profiles/input/*.conf $RPM_BUILD_ROOT%{_sysconfdir}/bluetooth
232install profiles/network/*.conf $RPM_BUILD_ROOT%{_sysconfdir}/bluetooth
16869a45 233
477801c9 234#serial port connected Broadcom HCIs scripts
dc831a02
JB
235install %{SOURCE3} $RPM_BUILD_ROOT%{udevdir}/rules.d
236install %{SOURCE4} $RPM_BUILD_ROOT%{systemdunitdir}
237install %{SOURCE5} $RPM_BUILD_ROOT%{_libexecdir}/bluetooth
477801c9
JR
238
239# Install the HCI emulator, useful for testing
dc831a02 240install emulator/btvirt $RPM_BUILD_ROOT%{_libexecdir}/bluetooth
477801c9 241
886fa953 242%{__rm} $RPM_BUILD_ROOT%{_libdir}/libbluetooth.la
477801c9 243%{__rm} $RPM_BUILD_ROOT%{_libdir}/bluetooth/plugins/*.{la,a}
8e2aef6c
AM
244
245%clean
246rm -rf $RPM_BUILD_ROOT
247
248%post
249/sbin/chkconfig --add bluetooth
250%service bluetooth restart
bfe3d974 251%systemd_post bluetooth.service
8e2aef6c
AM
252
253%preun
254if [ "$1" = "0" ]; then
255 %service bluetooth stop
256 /sbin/chkconfig --del bluetooth
257fi
c7fd41e3
BZ
258%systemd_preun bluetooth.service
259
bfe3d974 260%postun
ef6d37ba 261%systemd_reload
c7fd41e3 262
bfe3d974
JR
263%triggerpostun -- bluez < 4.98-3
264%systemd_trigger bluetooth.service
265
d358118c
JB
266%triggerpostun -- bluez < 5.13-1
267%service rfcomm stop
268/sbin/chkconfig --del rfcomm
269
bfe3d974
JR
270%post libs -p /sbin/ldconfig
271%postun libs -p /sbin/ldconfig
272
8e2aef6c
AM
273%files
274%defattr(644,root,root,755)
f7f17420 275%doc AUTHORS ChangeLog README
a5b81081 276%attr(755,root,root) %{_bindir}/bluemoon
886fa953 277%attr(755,root,root) %{_bindir}/bluetoothctl
a9cb60b8 278%attr(755,root,root) %{_bindir}/btattach
886fa953 279%attr(755,root,root) %{_bindir}/btmon
05f769ed 280%attr(755,root,root) %{_bindir}/hex2hcd
3aca1cde 281%attr(755,root,root) %{_bindir}/l2ping
886fa953 282%attr(755,root,root) %{_bindir}/l2test
f072e9cd 283%attr(755,root,root) %{_bindir}/mesh-cfgclient
14465098 284%attr(755,root,root) %{_bindir}/mesh-cfgtest
2686afe6 285%attr(755,root,root) %{_bindir}/meshctl
e4a249a5 286%attr(755,root,root) %{_bindir}/mpris-proxy
886fa953 287%attr(755,root,root) %{_bindir}/rctest
b7b1b136
JB
288%if %{with deprecated}
289%attr(755,root,root) %{_bindir}/ciptool
290%attr(755,root,root) %{_bindir}/hciattach
291%attr(755,root,root) %{_bindir}/hciconfig
292%attr(755,root,root) %{_bindir}/hcidump
293%attr(755,root,root) %{_bindir}/hcitool
3aca1cde
JB
294%attr(755,root,root) %{_bindir}/rfcomm
295%attr(755,root,root) %{_bindir}/sdptool
b7b1b136 296%endif
2686afe6 297%if "%{_libexecdir}" != "%{_libdir}"
749521e9 298%dir %{_libexecdir}/bluetooth
2686afe6 299%endif
42ca9004 300%attr(755,root,root) %{_libexecdir}/bluetooth/bluetooth-meshd
749521e9 301%attr(755,root,root) %{_libexecdir}/bluetooth/bluetoothd
477801c9
JR
302%attr(755,root,root) %{_libexecdir}/bluetooth/btattach-bcm-service.sh
303%attr(755,root,root) %{_libexecdir}/bluetooth/btvirt
749521e9 304%attr(755,root,root) %{_libexecdir}/bluetooth/obexd
8e2aef6c
AM
305%dir %{_libdir}/bluetooth
306%dir %{_libdir}/bluetooth/plugins
d358118c 307%attr(755,root,root) %{_libdir}/bluetooth/plugins/sixaxis.so
049dc700 308%dir %{_libdir}/obex
d358118c 309%dir %{_libdir}/obex/plugins
8e2aef6c 310%dir %{_sysconfdir}/bluetooth
886fa953
JB
311%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bluetooth/input.conf
312%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bluetooth/network.conf
8e2aef6c
AM
313%attr(754,root,root) /etc/rc.d/init.d/bluetooth
314%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/bluetooth
315%config(noreplace) %verify(not md5 mtime size) /etc/dbus-1/system.d/bluetooth.conf
42ca9004 316%config(noreplace) %verify(not md5 mtime size) /etc/dbus-1/system.d/bluetooth-mesh.conf
bfe3d974 317%{systemdunitdir}/bluetooth.service
42ca9004 318%{systemdunitdir}/bluetooth-mesh.service
477801c9 319%{systemdunitdir}/btattach-bcm@.service
d358118c 320%{systemduserunitdir}/obex.service
886fa953 321%{_datadir}/dbus-1/services/org.bluez.obex.service
d358118c 322%{_datadir}/dbus-1/system-services/org.bluez.service
42ca9004 323%{_datadir}/dbus-1/system-services/org.bluez.mesh.service
9b2d7208 324%attr(755,root,root) %{udevdir}/hid2hci
477801c9 325%{udevdir}/rules.d/69-btattach-bcm.rules
886fa953 326%{udevdir}/rules.d/97-hid2hci.rules
a9cb60b8 327%{_mandir}/man1/btattach.1*
14465098 328%{_mandir}/man1/btmon.1*
b7b1b136
JB
329%{_mandir}/man1/hid2hci.1*
330%{_mandir}/man1/l2ping.1*
331%{_mandir}/man1/rctest.1*
332%if %{with deprecated}
3aca1cde 333%{_mandir}/man1/ciptool.1*
886fa953
JB
334%{_mandir}/man1/hciattach.1*
335%{_mandir}/man1/hciconfig.1*
336%{_mandir}/man1/hcidump.1*
3aca1cde 337%{_mandir}/man1/hcitool.1*
3aca1cde
JB
338%{_mandir}/man1/rfcomm.1*
339%{_mandir}/man1/sdptool.1*
b7b1b136 340%endif
14465098 341%{_mandir}/man8/bluetooth-meshd.8*
3aca1cde 342%{_mandir}/man8/bluetoothd.8*
8e2aef6c
AM
343
344%files -n cups-backend-bluetooth
345%defattr(644,root,root,755)
346%attr(755,root,root) %{_prefix}/lib/cups/backend/bluetooth
347
42ca9004
JB
348%files -n zsh-completion-bluez
349%defattr(644,root,root,755)
350%{zsh_compdir}/_bluetoothctl
351
8e2aef6c
AM
352%files libs
353%defattr(644,root,root,755)
354%attr(755,root,root) %{_libdir}/libbluetooth.so.*.*.*
3aca1cde 355%attr(755,root,root) %ghost %{_libdir}/libbluetooth.so.3
8e2aef6c
AM
356
357%files libs-devel
358%defattr(644,root,root,755)
359%attr(755,root,root) %{_libdir}/libbluetooth.so
8e2aef6c 360%{_includedir}/bluetooth
8e2aef6c
AM
361%{_pkgconfigdir}/bluez.pc
362
363%files libs-static
364%defattr(644,root,root,755)
365%{_libdir}/libbluetooth.a
This page took 0.144838 seconds and 4 git commands to generate.