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