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