]>
Commit | Line | Data |
---|---|---|
8e2aef6c AM |
1 | Summary: Bluetooth utilities |
2 | Summary(pl.UTF-8): Narzędzia Bluetooth | |
3 | Name: bluez | |
3c5bed28 | 4 | Version: 4.101 |
d2ef3071 | 5 | Release: 3 |
8e2aef6c AM |
6 | License: GPL v2+ |
7 | Group: Applications/System | |
8 | #Source0Download: http://www.bluez.org/download.html | |
68f03ff6 | 9 | Source0: http://www.kernel.org/pub/linux/bluetooth/%{name}-%{version}.tar.bz2 |
3c5bed28 | 10 | # Source0-md5: 902b390af95c6c5d6d1a17d94c8344ab |
8e2aef6c AM |
11 | Source1: %{name}.init |
12 | Source2: %{name}.sysconfig | |
829382b7 AM |
13 | Source3: dund.init |
14 | Source4: pand.init | |
15 | Source5: rfcomm.init | |
8e2aef6c | 16 | Patch0: %{name}-etc_dir.patch |
16869a45 | 17 | Patch1: %{name}-wacom-mode-2.patch |
3c5bed28 | 18 | Patch2: %{name}-audio_socket.patch |
8e2aef6c AM |
19 | URL: http://www.bluez.org/ |
20 | BuildRequires: alsa-lib-devel >= 1.0.10-1 | |
b0a62422 | 21 | BuildRequires: autoconf >= 2.60 |
8e2aef6c AM |
22 | BuildRequires: automake |
23 | BuildRequires: bison | |
f288002d | 24 | BuildRequires: check-devel >= 0.9.6 |
0ff69826 JB |
25 | BuildRequires: dbus-devel >= 1.4 |
26 | BuildRequires: glib2-devel >= 1:2.28 | |
d2ef3071 JR |
27 | BuildRequires: gstreamer0.10-devel >= 0.10.30 |
28 | BuildRequires: gstreamer0.10-plugins-base-devel >= 0.10 | |
2b38a1f3 | 29 | BuildRequires: libcap-ng-devel |
8e2aef6c AM |
30 | BuildRequires: libsndfile-devel |
31 | BuildRequires: libtool | |
8743dbe7 | 32 | BuildRequires: libusb-compat-devel |
8e2aef6c | 33 | BuildRequires: pkgconfig >= 1:0.9.0 |
9980fdad | 34 | BuildRequires: readline-devel |
ef6d37ba | 35 | BuildRequires: rpmbuild(macros) >= 1.626 |
9b3fd779 | 36 | BuildRequires: udev-devel |
e01e2ec1 | 37 | Requires(post,preun,postun): systemd-units >= 38 |
bfe3d974 | 38 | Requires: %{name}-libs = %{version}-%{release} |
0ff69826 JB |
39 | Requires: dbus-libs >= 1.4 |
40 | Requires: glib2 >= 1:2.28 | |
0416a3b3 | 41 | Requires: hwdata >= 0.225 |
9b3fd779 | 42 | Requires: rc-scripts |
e01e2ec1 | 43 | Requires: systemd-units >= 38 |
bfe3d974 | 44 | Provides: bluez-utils = %{version}-%{release} |
8e2aef6c AM |
45 | Obsoletes: bluez-hciemu |
46 | Obsoletes: bluez-pan | |
47 | Obsoletes: bluez-sdp | |
6acdd90b | 48 | Obsoletes: bluez-systemd |
5e8dfcdf | 49 | Obsoletes: bluez-utils |
8e2aef6c AM |
50 | Obsoletes: bluez-utils-init |
51 | Conflicts: bluez-bluefw | |
52 | ExcludeArch: s390 s390x | |
53 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
54 | ||
55 | # currently lib, not %{_lib} (see cups.spec) | |
56 | %define cupsdir /usr/lib/cups/backend | |
d80dfd39 | 57 | %define udevdir /lib/udev |
8e2aef6c AM |
58 | |
59 | %description | |
60 | Bluetooth utilities: | |
d8eef2ef TP |
61 | - bluetoothd |
62 | - dund | |
8e2aef6c AM |
63 | - hcitool |
64 | - hciattach | |
65 | - hciconfig | |
8e2aef6c AM |
66 | - hciemu |
67 | - hidd | |
68 | - l2ping | |
69 | - pand | |
70 | - start scripts (PLD) | |
71 | - PCMCIA configuration files | |
72 | ||
73 | The BLUETOOTH trademarks are owned by Bluetooth SIG, Inc., U.S.A. | |
74 | ||
75 | %description -l pl.UTF-8 | |
76 | Narzędzia Bluetooth: | |
d8eef2ef TP |
77 | - bluetoothd |
78 | - dund | |
8e2aef6c AM |
79 | - hcitool |
80 | - hciattach | |
81 | - hciconfig | |
8e2aef6c AM |
82 | - hciemu |
83 | - hidd | |
84 | - l2ping | |
85 | - pand | |
86 | - skrypty startowe (PLD) | |
87 | - pliki konfiguracji PCMCIA | |
88 | ||
89 | Znaki towarowe BLUETOOTH są własnością Bluetooth SIG, Inc. z USA. | |
90 | ||
91 | %package -n alsa-plugins-bluetooth | |
92 | Summary: ALSA plugins for Bluetooth audio devices | |
93 | Summary(pl.UTF-8): Wtyczki systemu ALSA dla urządzeń dźwiękowych Bluetooth | |
94 | Group: Libraries | |
95 | # bluetoothd + audio service | |
bfe3d974 | 96 | Requires: %{name} = %{version}-%{release} |
8e2aef6c AM |
97 | Requires: alsa-lib >= 1.0.10-1 |
98 | ||
99 | %description -n alsa-plugins-bluetooth | |
100 | ALSA plugins for Bluetooth audio devices. | |
101 | ||
102 | %description -n alsa-plugins-bluetooth -l pl.UTF-8 | |
103 | Wtyczki systemu ALSA dla urządzeń dźwiękowych Bluetooth. | |
104 | ||
105 | %package -n cups-backend-bluetooth | |
106 | Summary: Bluetooth backend for CUPS | |
107 | Summary(pl.UTF-8): Backend Bluetooth dla CUPS-a | |
108 | Group: Applications/Printing | |
bfe3d974 | 109 | Requires: bluez-libs >= %{version}-%{release} |
8e2aef6c AM |
110 | Requires: cups |
111 | ||
112 | %description -n cups-backend-bluetooth | |
113 | Bluetooth backend for CUPS. | |
114 | ||
115 | %description -n cups-backend-bluetooth -l pl.UTF-8 | |
116 | Backend Bluetooth dla CUPS-a. | |
117 | ||
d2ef3071 | 118 | %package -n gstreamer0.10-bluetooth |
8e2aef6c AM |
119 | Summary: Bluetooth support for gstreamer |
120 | Summary(pl.UTF-8): Obsługa Bluetooth dla gstreamera | |
121 | Group: Libraries | |
bfe3d974 | 122 | Requires: bluez-libs >= %{version}-%{release} |
d2ef3071 JR |
123 | Requires: gstreamer0.10 >= 0.10.30 |
124 | Requires: gstreamer0.10-plugins-base >= 0.10 | |
125 | Obsoletes: gstreamer-bluetooth < 4.101-3 | |
8e2aef6c | 126 | |
d2ef3071 | 127 | %description -n gstreamer0.10-bluetooth |
8e2aef6c AM |
128 | Bluetooth support for gstreamer. |
129 | ||
d2ef3071 | 130 | %description -n gstreamer0.10-bluetooth -l pl.UTF-8 |
8e2aef6c AM |
131 | Obsługa Bluetooth dla gstreamera. |
132 | ||
133 | %package libs | |
134 | Summary: Bluetooth libraries | |
135 | Summary(pl.UTF-8): Biblioteki Bluetooth | |
ce95dcac | 136 | Group: Libraries |
8e2aef6c AM |
137 | Obsoletes: bluez-sdp |
138 | ||
139 | %description libs | |
140 | Libraries for use in Bluetooth applications. | |
141 | ||
142 | The BLUETOOTH trademarks are owned by Bluetooth SIG, Inc., U.S.A. | |
143 | ||
144 | %description libs -l pl.UTF-8 | |
145 | Biblioteki do używania w aplikacjach Bluetooth. | |
146 | ||
147 | Znaki towarowe BLUETOOTH są własnością Bluetooth SIG, Inc. z USA. | |
148 | ||
149 | %package libs-devel | |
150 | Summary: Header files for Bluetooth applications | |
151 | Summary(pl.UTF-8): Pliki nagłówkowe dla aplikacji Bluetooth | |
152 | Group: Development/Libraries | |
bfe3d974 | 153 | Requires: %{name}-libs = %{version}-%{release} |
8e2aef6c AM |
154 | Obsoletes: bluez-sdp-devel |
155 | ||
156 | %description libs-devel | |
157 | bluez-libs-devel contains header files for use in Bluetooth | |
158 | applications. | |
159 | ||
160 | %description libs-devel -l pl.UTF-8 | |
161 | Ten pakiet zawiera pliki nagłówkowe do używania w aplikacjach | |
162 | Bluetooth. | |
163 | ||
164 | %package libs-static | |
165 | Summary: Static Bluetooth libraries | |
166 | Summary(pl.UTF-8): Biblioteki statyczne Bluetooth | |
167 | Group: Development/Libraries | |
bfe3d974 | 168 | Requires: %{name}-libs-devel = %{version}-%{release} |
8e2aef6c AM |
169 | Obsoletes: bluez-sdp-static |
170 | ||
171 | %description libs-static | |
172 | bluez-libs-static contains development static libraries for use in | |
173 | Bluetooth applications. | |
174 | ||
175 | %description libs-static -l pl.UTF-8 | |
176 | Ten pakiet zawiera biblioteki statyczne, których można używać do | |
177 | aplikacji Bluetooth. | |
178 | ||
179 | %prep | |
180 | %setup -q | |
181 | %patch0 -p1 | |
0416a3b3 | 182 | %patch1 -p1 |
7fec19c2 | 183 | %patch2 -p1 |
8e2aef6c AM |
184 | |
185 | %build | |
186 | %{__libtoolize} | |
187 | %{__aclocal} | |
188 | %{__autoconf} | |
189 | %{__autoheader} | |
190 | %{__automake} | |
191 | %configure \ | |
16869a45 | 192 | --with-ouifile=%{_datadir}/hwdata/oui.txt \ |
0ff69826 | 193 | --with-systemdunitdir=%{systemdunitdir} \ |
b0a62422 | 194 | --disable-silent-rules \ |
8e2aef6c AM |
195 | --enable-shared \ |
196 | --enable-static \ | |
197 | --enable-alsa \ | |
8e2aef6c AM |
198 | --enable-audio \ |
199 | --enable-bccmd \ | |
b0a62422 | 200 | --enable-capng \ |
8e2aef6c | 201 | --enable-cups \ |
c150cb86 | 202 | --enable-dbusoob \ |
8e2aef6c AM |
203 | --enable-dfutool \ |
204 | --enable-dund \ | |
0ff69826 | 205 | --enable-gatt \ |
8e2aef6c | 206 | --enable-gstreamer \ |
c150cb86 | 207 | --enable-health \ |
8e2aef6c AM |
208 | --enable-hid2hci \ |
209 | --enable-hidd \ | |
210 | --enable-input \ | |
8e2aef6c AM |
211 | --enable-network \ |
212 | --enable-pand \ | |
5be4f75f | 213 | --enable-pcmcia \ |
c150cb86 | 214 | --enable-pnat \ |
8e2aef6c | 215 | --enable-serial \ |
ab22d2c3 | 216 | --enable-thermometer \ |
8e2aef6c | 217 | --enable-tools \ |
5be4f75f | 218 | --enable-usb \ |
68f03ff6 | 219 | --enable-wiimote |
8e2aef6c | 220 | |
284a9eb9 | 221 | %{__make} \ |
8e2aef6c | 222 | cupsdir=%{cupsdir} \ |
2b38a1f3 | 223 | rulesdir=%{udevdir}/rules.d \ |
b0a62422 | 224 | udevdir=%{udevdir} |
8e2aef6c AM |
225 | |
226 | %install | |
227 | rm -rf $RPM_BUILD_ROOT | |
f8fe27de JR |
228 | install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig} \ |
229 | $RPM_BUILD_ROOT%{_libdir}/bluetooth/plugins | |
8e2aef6c AM |
230 | |
231 | %{__make} install \ | |
232 | DESTDIR=$RPM_BUILD_ROOT \ | |
233 | cupsdir=%{cupsdir} \ | |
2b38a1f3 | 234 | rulesdir=%{udevdir}/rules.d \ |
b0a62422 | 235 | udevdir=%{udevdir} |
8e2aef6c | 236 | |
8e2aef6c AM |
237 | install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/bluetooth |
238 | install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/bluetooth | |
829382b7 AM |
239 | install %{SOURCE3} $RPM_BUILD_ROOT/etc/rc.d/init.d/dund |
240 | install %{SOURCE4} $RPM_BUILD_ROOT/etc/rc.d/init.d/pand | |
241 | install %{SOURCE5} $RPM_BUILD_ROOT/etc/rc.d/init.d/rfcomm | |
9a71d017 BZ |
242 | |
243 | install audio/*.conf $RPM_BUILD_ROOT%{_sysconfdir}/bluetooth | |
244 | install input/*.conf $RPM_BUILD_ROOT%{_sysconfdir}/bluetooth | |
245 | install network/*.conf $RPM_BUILD_ROOT%{_sysconfdir}/bluetooth | |
246 | install serial/*.conf $RPM_BUILD_ROOT%{_sysconfdir}/bluetooth | |
247 | ||
16869a45 | 248 | mv -fT $RPM_BUILD_ROOT{%{_datadir},%{_sysconfdir}}/alsa |
249 | ||
0859c749 | 250 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/{alsa-lib/*.{la,a},gstreamer*/libgstbluetooth.{la,a},libbluetooth.la} |
8e2aef6c AM |
251 | |
252 | %clean | |
253 | rm -rf $RPM_BUILD_ROOT | |
254 | ||
255 | %post | |
256 | /sbin/chkconfig --add bluetooth | |
829382b7 AM |
257 | /sbin/chkconfig --add dund |
258 | /sbin/chkconfig --add pand | |
259 | /sbin/chkconfig --add rfcomm | |
8e2aef6c | 260 | %service bluetooth restart |
829382b7 AM |
261 | %service dund restart |
262 | %service pand restart | |
263 | %service rfcomm restart | |
bfe3d974 | 264 | %systemd_post bluetooth.service |
8e2aef6c AM |
265 | |
266 | %preun | |
267 | if [ "$1" = "0" ]; then | |
268 | %service bluetooth stop | |
829382b7 AM |
269 | %service dund stop |
270 | %service pand stop | |
271 | %service rfcomm stop | |
8e2aef6c | 272 | /sbin/chkconfig --del bluetooth |
829382b7 AM |
273 | /sbin/chkconfig --del dund |
274 | /sbin/chkconfig --del pand | |
275 | /sbin/chkconfig --del rfcomm | |
8e2aef6c | 276 | fi |
c7fd41e3 BZ |
277 | %systemd_preun bluetooth.service |
278 | ||
bfe3d974 | 279 | %postun |
ef6d37ba | 280 | %systemd_reload |
c7fd41e3 | 281 | |
bfe3d974 JR |
282 | %triggerpostun -- bluez < 4.98-3 |
283 | %systemd_trigger bluetooth.service | |
284 | ||
285 | %post libs -p /sbin/ldconfig | |
286 | %postun libs -p /sbin/ldconfig | |
287 | ||
8e2aef6c AM |
288 | %files |
289 | %defattr(644,root,root,755) | |
f7f17420 | 290 | %doc AUTHORS ChangeLog README |
3aca1cde JB |
291 | %attr(755,root,root) %{_bindir}/ciptool |
292 | %attr(755,root,root) %{_bindir}/dfutool | |
293 | %attr(755,root,root) %{_bindir}/dund | |
c150cb86 | 294 | %attr(755,root,root) %{_bindir}/gatttool |
3aca1cde JB |
295 | %attr(755,root,root) %{_bindir}/hcitool |
296 | %attr(755,root,root) %{_bindir}/hidd | |
297 | %attr(755,root,root) %{_bindir}/l2ping | |
298 | %attr(755,root,root) %{_bindir}/pand | |
299 | %attr(755,root,root) %{_bindir}/rfcomm | |
300 | %attr(755,root,root) %{_bindir}/sdptool | |
301 | %attr(755,root,root) %{_sbindir}/bccmd | |
302 | %attr(755,root,root) %{_sbindir}/bluetoothd | |
303 | %attr(755,root,root) %{_sbindir}/hciattach | |
304 | %attr(755,root,root) %{_sbindir}/hciconfig | |
8e2aef6c AM |
305 | %dir %{_libdir}/bluetooth |
306 | %dir %{_libdir}/bluetooth/plugins | |
8e2aef6c | 307 | %dir %{_sysconfdir}/bluetooth |
9a71d017 | 308 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bluetooth/*.conf |
8e2aef6c | 309 | %attr(754,root,root) /etc/rc.d/init.d/bluetooth |
829382b7 AM |
310 | %attr(754,root,root) /etc/rc.d/init.d/dund |
311 | %attr(754,root,root) /etc/rc.d/init.d/pand | |
312 | %attr(754,root,root) /etc/rc.d/init.d/rfcomm | |
8e2aef6c AM |
313 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/bluetooth |
314 | %config(noreplace) %verify(not md5 mtime size) /etc/dbus-1/system.d/bluetooth.conf | |
bfe3d974 JR |
315 | %{systemdunitdir}/bluetooth.service |
316 | %{_datadir}/dbus-1/system-services/org.bluez.service | |
8e2aef6c | 317 | %attr(755,root,root) %{udevdir}/bluetooth_serial |
9b2d7208 | 318 | %attr(755,root,root) %{udevdir}/hid2hci |
8240ea13 ER |
319 | %{udevdir}/rules.d/97-bluetooth-hid2hci.rules |
320 | %{udevdir}/rules.d/97-bluetooth-serial.rules | |
3aca1cde JB |
321 | %{_mandir}/man1/ciptool.1* |
322 | %{_mandir}/man1/dfutool.1* | |
323 | %{_mandir}/man1/dund.1* | |
324 | %{_mandir}/man1/hcitool.1* | |
325 | %{_mandir}/man1/hidd.1* | |
326 | %{_mandir}/man1/pand.1* | |
327 | %{_mandir}/man1/rfcomm.1* | |
328 | %{_mandir}/man1/sdptool.1* | |
329 | %{_mandir}/man8/bccmd.8* | |
330 | %{_mandir}/man8/bluetoothd.8* | |
331 | %{_mandir}/man8/hciattach.8* | |
332 | %{_mandir}/man8/hciconfig.8* | |
333 | %{_mandir}/man8/hid2hci.8* | |
334 | %{_mandir}/man8/l2ping.8* | |
8e2aef6c AM |
335 | |
336 | %files -n alsa-plugins-bluetooth | |
337 | %defattr(644,root,root,755) | |
31ae8b61 | 338 | %{_sysconfdir}/alsa/bluetooth.conf |
0ff69826 | 339 | %attr(755,root,root) %{_libdir}/alsa-lib/libasound_module_ctl_bluetooth.so* |
8e2aef6c AM |
340 | %attr(755,root,root) %{_libdir}/alsa-lib/libasound_module_pcm_bluetooth.so |
341 | ||
342 | %files -n cups-backend-bluetooth | |
343 | %defattr(644,root,root,755) | |
344 | %attr(755,root,root) %{_prefix}/lib/cups/backend/bluetooth | |
345 | ||
d2ef3071 | 346 | %files -n gstreamer0.10-bluetooth |
8e2aef6c AM |
347 | %defattr(644,root,root,755) |
348 | %attr(755,root,root) %{_libdir}/gstreamer*/libgstbluetooth.so | |
349 | ||
350 | %files libs | |
351 | %defattr(644,root,root,755) | |
352 | %attr(755,root,root) %{_libdir}/libbluetooth.so.*.*.* | |
3aca1cde | 353 | %attr(755,root,root) %ghost %{_libdir}/libbluetooth.so.3 |
8e2aef6c AM |
354 | |
355 | %files libs-devel | |
356 | %defattr(644,root,root,755) | |
357 | %attr(755,root,root) %{_libdir}/libbluetooth.so | |
8e2aef6c | 358 | %{_includedir}/bluetooth |
8e2aef6c AM |
359 | %{_pkgconfigdir}/bluez.pc |
360 | ||
361 | %files libs-static | |
362 | %defattr(644,root,root,755) | |
363 | %{_libdir}/libbluetooth.a |