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