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