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