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