]>
Commit | Line | Data |
---|---|---|
1 | Summary: Bluetooth utilities | |
2 | Summary(pl.UTF-8): Narzędzia Bluetooth | |
3 | Name: bluez | |
4 | Version: 4.98 | |
5 | Release: 1 | |
6 | License: GPL v2+ | |
7 | Group: Applications/System | |
8 | #Source0Download: http://www.bluez.org/download.html | |
9 | Source0: http://www.kernel.org/pub/linux/bluetooth/%{name}-%{version}.tar.bz2 | |
10 | # Source0-md5: 4aca8a0929250212e9a75fb60dd75b05 | |
11 | Source1: %{name}.init | |
12 | Source2: %{name}.sysconfig | |
13 | Source3: dund.init | |
14 | Source4: pand.init | |
15 | Source5: rfcomm.init | |
16 | Patch0: %{name}-etc_dir.patch | |
17 | Patch1: %{name}-wacom-mode-2.patch | |
18 | Patch2: %{name}-systemd.patch | |
19 | URL: http://www.bluez.org/ | |
20 | BuildRequires: alsa-lib-devel >= 1.0.10-1 | |
21 | BuildRequires: autoconf >= 2.60 | |
22 | BuildRequires: automake | |
23 | BuildRequires: bison | |
24 | BuildRequires: check-devel >= 0.9.4 | |
25 | BuildRequires: dbus-devel >= 1.0 | |
26 | BuildRequires: glib2-devel >= 1:2.16 | |
27 | BuildRequires: gstreamer-devel >= 0.10.30 | |
28 | BuildRequires: gstreamer-plugins-base-devel >= 0.10 | |
29 | BuildRequires: libcap-ng-devel | |
30 | BuildRequires: libsndfile-devel | |
31 | BuildRequires: libtool | |
32 | BuildRequires: libusb-compat-devel | |
33 | BuildRequires: pkgconfig >= 1:0.9.0 | |
34 | BuildRequires: readline-devel | |
35 | BuildRequires: rpmbuild(macros) >= 1.626 | |
36 | BuildRequires: udev-devel | |
37 | Requires: %{name}-libs = %{epoch}:%{version}-%{release} | |
38 | Requires: glib2 >= 1:2.16 | |
39 | Requires: hwdata >= 0.225 | |
40 | Requires: rc-scripts | |
41 | Provides: bluez-utils = %{epoch}:%{version}-%{release} | |
42 | Obsoletes: bluez-hciemu | |
43 | Obsoletes: bluez-pan | |
44 | Obsoletes: bluez-sdp | |
45 | Obsoletes: bluez-utils | |
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 | |
53 | %define udevdir /lib/udev | |
54 | ||
55 | %description | |
56 | Bluetooth utilities: | |
57 | - bluetoothd | |
58 | - dund | |
59 | - hcitool | |
60 | - hciattach | |
61 | - hciconfig | |
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: | |
73 | - bluetoothd | |
74 | - dund | |
75 | - hcitool | |
76 | - hciattach | |
77 | - hciconfig | |
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} | |
119 | Requires: gstreamer >= 0.10.30 | |
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 | ||
174 | %package systemd | |
175 | Summary: systemd units for bluez | |
176 | Summary(pl.UTF-8): Jednostki systemd dla pakietu bluez | |
177 | Group: Base | |
178 | Requires: %{name} = %{epoch}:%{version}-%{release} | |
179 | Requires: systemd-units >= 37-0.10 | |
180 | ||
181 | %description systemd | |
182 | systemd units for bluez. | |
183 | ||
184 | %description systemd -l pl.UTF-8 | |
185 | Jednostki systemd dla pakietu bluez. | |
186 | ||
187 | %prep | |
188 | %setup -q | |
189 | %patch0 -p1 | |
190 | %patch1 -p1 | |
191 | %patch2 -p1 | |
192 | ||
193 | %build | |
194 | %{__libtoolize} | |
195 | %{__aclocal} | |
196 | %{__autoconf} | |
197 | %{__autoheader} | |
198 | %{__automake} | |
199 | %configure \ | |
200 | --with-ouifile=%{_datadir}/hwdata/oui.txt \ | |
201 | --with-systemdsystemunitdir=%{systemdunitdir} \ | |
202 | --disable-silent-rules \ | |
203 | --enable-shared \ | |
204 | --enable-static \ | |
205 | --enable-alsa \ | |
206 | --enable-audio \ | |
207 | --enable-bccmd \ | |
208 | --enable-capng \ | |
209 | --enable-cups \ | |
210 | --enable-dbusoob \ | |
211 | --enable-dfutool \ | |
212 | --enable-dund \ | |
213 | --enable-gstreamer \ | |
214 | --enable-health \ | |
215 | --enable-hid2hci \ | |
216 | --enable-hidd \ | |
217 | --enable-input \ | |
218 | --enable-network \ | |
219 | --enable-pand \ | |
220 | --enable-pcmcia \ | |
221 | --enable-pnat \ | |
222 | --enable-serial \ | |
223 | --enable-thermometer \ | |
224 | --enable-tools \ | |
225 | --enable-usb \ | |
226 | --enable-wiimote | |
227 | ||
228 | %{__make} \ | |
229 | cupsdir=%{cupsdir} \ | |
230 | rulesdir=%{udevdir}/rules.d \ | |
231 | udevdir=%{udevdir} | |
232 | ||
233 | %install | |
234 | rm -rf $RPM_BUILD_ROOT | |
235 | install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig} | |
236 | ||
237 | %{__make} install \ | |
238 | DESTDIR=$RPM_BUILD_ROOT \ | |
239 | cupsdir=%{cupsdir} \ | |
240 | rulesdir=%{udevdir}/rules.d \ | |
241 | udevdir=%{udevdir} | |
242 | ||
243 | install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/bluetooth | |
244 | install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/bluetooth | |
245 | install %{SOURCE3} $RPM_BUILD_ROOT/etc/rc.d/init.d/dund | |
246 | install %{SOURCE4} $RPM_BUILD_ROOT/etc/rc.d/init.d/pand | |
247 | install %{SOURCE5} $RPM_BUILD_ROOT/etc/rc.d/init.d/rfcomm | |
248 | ||
249 | install audio/*.conf $RPM_BUILD_ROOT%{_sysconfdir}/bluetooth | |
250 | install input/*.conf $RPM_BUILD_ROOT%{_sysconfdir}/bluetooth | |
251 | install network/*.conf $RPM_BUILD_ROOT%{_sysconfdir}/bluetooth | |
252 | install serial/*.conf $RPM_BUILD_ROOT%{_sysconfdir}/bluetooth | |
253 | ||
254 | mv -fT $RPM_BUILD_ROOT{%{_datadir},%{_sysconfdir}}/alsa | |
255 | ||
256 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/{alsa-lib/*.{la,a},gstreamer*/libgstbluetooth.{la,a},libbluetooth.la} | |
257 | ||
258 | %clean | |
259 | rm -rf $RPM_BUILD_ROOT | |
260 | ||
261 | %post | |
262 | /sbin/chkconfig --add bluetooth | |
263 | /sbin/chkconfig --add dund | |
264 | /sbin/chkconfig --add pand | |
265 | /sbin/chkconfig --add rfcomm | |
266 | %service bluetooth restart | |
267 | %service dund restart | |
268 | %service pand restart | |
269 | %service rfcomm restart | |
270 | ||
271 | %preun | |
272 | if [ "$1" = "0" ]; then | |
273 | %service bluetooth stop | |
274 | %service dund stop | |
275 | %service pand stop | |
276 | %service rfcomm stop | |
277 | /sbin/chkconfig --del bluetooth | |
278 | /sbin/chkconfig --del dund | |
279 | /sbin/chkconfig --del pand | |
280 | /sbin/chkconfig --del rfcomm | |
281 | fi | |
282 | ||
283 | %post libs -p /sbin/ldconfig | |
284 | %postun libs -p /sbin/ldconfig | |
285 | ||
286 | %post systemd | |
287 | %systemd_post bluetooth.service | |
288 | ||
289 | %preun systemd | |
290 | %systemd_preun bluetooth.service | |
291 | ||
292 | %postun systemd | |
293 | %systemd_reload | |
294 | ||
295 | %files | |
296 | %defattr(644,root,root,755) | |
297 | %doc AUTHORS ChangeLog README | |
298 | %attr(755,root,root) %{_bindir}/ciptool | |
299 | %attr(755,root,root) %{_bindir}/dfutool | |
300 | %attr(755,root,root) %{_bindir}/dund | |
301 | %attr(755,root,root) %{_bindir}/gatttool | |
302 | %attr(755,root,root) %{_bindir}/hcitool | |
303 | %attr(755,root,root) %{_bindir}/hidd | |
304 | %attr(755,root,root) %{_bindir}/l2ping | |
305 | %attr(755,root,root) %{_bindir}/pand | |
306 | %attr(755,root,root) %{_bindir}/rfcomm | |
307 | %attr(755,root,root) %{_bindir}/sdptool | |
308 | %attr(755,root,root) %{_sbindir}/bccmd | |
309 | %attr(755,root,root) %{_sbindir}/bluetoothd | |
310 | %attr(755,root,root) %{_sbindir}/hciattach | |
311 | %attr(755,root,root) %{_sbindir}/hciconfig | |
312 | %dir %{_libdir}/bluetooth | |
313 | %dir %{_libdir}/bluetooth/plugins | |
314 | %dir %{_sysconfdir}/bluetooth | |
315 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bluetooth/*.conf | |
316 | %attr(754,root,root) /etc/rc.d/init.d/bluetooth | |
317 | %attr(754,root,root) /etc/rc.d/init.d/dund | |
318 | %attr(754,root,root) /etc/rc.d/init.d/pand | |
319 | %attr(754,root,root) /etc/rc.d/init.d/rfcomm | |
320 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/bluetooth | |
321 | %config(noreplace) %verify(not md5 mtime size) /etc/dbus-1/system.d/bluetooth.conf | |
322 | %attr(755,root,root) %{udevdir}/bluetooth_serial | |
323 | %attr(755,root,root) %{udevdir}/hid2hci | |
324 | %{udevdir}/rules.d/97-bluetooth.rules | |
325 | %{udevdir}/rules.d/97-bluetooth-hid2hci.rules | |
326 | %{udevdir}/rules.d/97-bluetooth-serial.rules | |
327 | %{_mandir}/man1/ciptool.1* | |
328 | %{_mandir}/man1/dfutool.1* | |
329 | %{_mandir}/man1/dund.1* | |
330 | %{_mandir}/man1/hcitool.1* | |
331 | %{_mandir}/man1/hidd.1* | |
332 | %{_mandir}/man1/pand.1* | |
333 | %{_mandir}/man1/rfcomm.1* | |
334 | %{_mandir}/man1/sdptool.1* | |
335 | %{_mandir}/man8/bccmd.8* | |
336 | %{_mandir}/man8/bluetoothd.8* | |
337 | %{_mandir}/man8/hciattach.8* | |
338 | %{_mandir}/man8/hciconfig.8* | |
339 | %{_mandir}/man8/hid2hci.8* | |
340 | %{_mandir}/man8/l2ping.8* | |
341 | ||
342 | %files -n alsa-plugins-bluetooth | |
343 | %defattr(644,root,root,755) | |
344 | %{_sysconfdir}/alsa/bluetooth.conf | |
345 | %attr(755,root,root) %{_libdir}/alsa-lib/libasound_module_ctl_bluetooth.so | |
346 | %attr(755,root,root) %{_libdir}/alsa-lib/libasound_module_pcm_bluetooth.so | |
347 | ||
348 | %files -n cups-backend-bluetooth | |
349 | %defattr(644,root,root,755) | |
350 | %attr(755,root,root) %{_prefix}/lib/cups/backend/bluetooth | |
351 | ||
352 | %files -n gstreamer-bluetooth | |
353 | %defattr(644,root,root,755) | |
354 | %attr(755,root,root) %{_libdir}/gstreamer*/libgstbluetooth.so | |
355 | ||
356 | %files libs | |
357 | %defattr(644,root,root,755) | |
358 | %attr(755,root,root) %{_libdir}/libbluetooth.so.*.*.* | |
359 | %attr(755,root,root) %ghost %{_libdir}/libbluetooth.so.3 | |
360 | ||
361 | %files libs-devel | |
362 | %defattr(644,root,root,755) | |
363 | %attr(755,root,root) %{_libdir}/libbluetooth.so | |
364 | %{_includedir}/bluetooth | |
365 | %{_pkgconfigdir}/bluez.pc | |
366 | ||
367 | %files libs-static | |
368 | %defattr(644,root,root,755) | |
369 | %{_libdir}/libbluetooth.a | |
370 | ||
371 | %files systemd | |
372 | %defattr(644,root,root,755) | |
373 | %{systemdunitdir}/bluetooth.service | |
374 | %{_datadir}/dbus-1/system-services/org.bluez.service |