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