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