]>
Commit | Line | Data |
---|---|---|
8e2aef6c AM |
1 | Summary: Bluetooth utilities |
2 | Summary(pl.UTF-8): Narzędzia Bluetooth | |
3 | Name: bluez | |
4 | Version: 4.2 | |
5 | Release: 0.1 | |
6 | Epoch: 0 | |
7 | License: GPL v2+ | |
8 | Group: Applications/System | |
9 | #Source0Download: http://www.bluez.org/download.html | |
10 | Source0: http://www.kernel.org/pub/linux/bluetooth/%{name}-%{version}.tar.gz | |
11 | # Source0-md5: 60344bd096fda1742e4dbd603b1a06e9 | |
12 | Source1: %{name}.init | |
13 | Source2: %{name}.sysconfig | |
14 | Source3: %{name}-udev.rules | |
15 | Source4: %{name}-udev.script | |
16 | Patch0: %{name}-etc_dir.patch | |
17 | URL: http://www.bluez.org/ | |
18 | BuildRequires: alsa-lib-devel >= 1.0.10-1 | |
19 | BuildRequires: autoconf >= 2.50 | |
20 | BuildRequires: automake | |
21 | BuildRequires: bison | |
22 | BuildRequires: dbus-glib-devel >= 0.60 | |
23 | BuildRequires: glib2-devel >= 2.0 | |
24 | BuildRequires: gstreamer-devel >= 0.10 | |
25 | BuildRequires: gstreamer-plugins-base-devel >= 0.10 | |
26 | BuildRequires: libsndfile-devel | |
27 | BuildRequires: libtool | |
28 | BuildRequires: libusb-devel | |
29 | BuildRequires: openobex-devel >= 1.1 | |
30 | BuildRequires: pkgconfig >= 1:0.9.0 | |
31 | BuildRequires: rpmbuild(macros) >= 1.268 | |
32 | Requires: %{name}-libs = %{epoch}:%{version}-%{release} | |
33 | Requires: rc-scripts | |
34 | Obsoletes: bluez-hciemu | |
35 | Obsoletes: bluez-pan | |
36 | Obsoletes: bluez-sdp | |
37 | Obsoletes: bluez-utils-init | |
38 | Conflicts: bluez-bluefw | |
39 | ExcludeArch: s390 s390x | |
40 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
41 | ||
42 | # currently lib, not %{_lib} (see cups.spec) | |
43 | %define cupsdir /usr/lib/cups/backend | |
44 | %define udevdir /%{_lib}/udev | |
45 | ||
46 | %description | |
47 | Bluetooth utilities: | |
48 | - hcitool | |
49 | - hciattach | |
50 | - hciconfig | |
51 | - hcid | |
52 | - hciemu | |
53 | - hidd | |
54 | - l2ping | |
55 | - pand | |
56 | - start scripts (PLD) | |
57 | - PCMCIA configuration files | |
58 | ||
59 | The BLUETOOTH trademarks are owned by Bluetooth SIG, Inc., U.S.A. | |
60 | ||
61 | %description -l pl.UTF-8 | |
62 | Narzędzia Bluetooth: | |
63 | - hcitool | |
64 | - hciattach | |
65 | - hciconfig | |
66 | - hcid | |
67 | - hciemu | |
68 | - hidd | |
69 | - l2ping | |
70 | - pand | |
71 | - skrypty startowe (PLD) | |
72 | - pliki konfiguracji PCMCIA | |
73 | ||
74 | Znaki towarowe BLUETOOTH są własnością Bluetooth SIG, Inc. z USA. | |
75 | ||
76 | %package -n alsa-plugins-bluetooth | |
77 | Summary: ALSA plugins for Bluetooth audio devices | |
78 | Summary(pl.UTF-8): Wtyczki systemu ALSA dla urządzeń dźwiękowych Bluetooth | |
79 | Group: Libraries | |
80 | # bluetoothd + audio service | |
81 | Requires: %{name} = %{epoch}:%{version}-%{release} | |
82 | Requires: alsa-lib >= 1.0.10-1 | |
83 | ||
84 | %description -n alsa-plugins-bluetooth | |
85 | ALSA plugins for Bluetooth audio devices. | |
86 | ||
87 | %description -n alsa-plugins-bluetooth -l pl.UTF-8 | |
88 | Wtyczki systemu ALSA dla urządzeń dźwiękowych Bluetooth. | |
89 | ||
90 | %package -n cups-backend-bluetooth | |
91 | Summary: Bluetooth backend for CUPS | |
92 | Summary(pl.UTF-8): Backend Bluetooth dla CUPS-a | |
93 | Group: Applications/Printing | |
94 | Requires: bluez-libs >= %{epoch}:%{version}-%{release} | |
95 | Requires: cups | |
96 | ||
97 | %description -n cups-backend-bluetooth | |
98 | Bluetooth backend for CUPS. | |
99 | ||
100 | %description -n cups-backend-bluetooth -l pl.UTF-8 | |
101 | Backend Bluetooth dla CUPS-a. | |
102 | ||
103 | %package -n gstreamer-bluetooth | |
104 | Summary: Bluetooth support for gstreamer | |
105 | Summary(pl.UTF-8): Obsługa Bluetooth dla gstreamera | |
106 | Group: Libraries | |
107 | Requires: bluez-libs >= %{epoch}:%{version}-%{release} | |
108 | Requires: gstreamer >= 0.10 | |
109 | Requires: gstreamer-plugins-base >= 0.10 | |
110 | ||
111 | %description -n gstreamer-bluetooth | |
112 | Bluetooth support for gstreamer. | |
113 | ||
114 | %description -n gstreamer-bluetooth -l pl.UTF-8 | |
115 | Obsługa Bluetooth dla gstreamera. | |
116 | ||
117 | %package libs | |
118 | Summary: Bluetooth libraries | |
119 | Summary(pl.UTF-8): Biblioteki Bluetooth | |
120 | Group: Development/Libraries | |
121 | Obsoletes: bluez-sdp | |
122 | ||
123 | %description libs | |
124 | Libraries for use in Bluetooth applications. | |
125 | ||
126 | The BLUETOOTH trademarks are owned by Bluetooth SIG, Inc., U.S.A. | |
127 | ||
128 | %description libs -l pl.UTF-8 | |
129 | Biblioteki do używania w aplikacjach Bluetooth. | |
130 | ||
131 | Znaki towarowe BLUETOOTH są własnością Bluetooth SIG, Inc. z USA. | |
132 | ||
133 | %package libs-devel | |
134 | Summary: Header files for Bluetooth applications | |
135 | Summary(pl.UTF-8): Pliki nagłówkowe dla aplikacji Bluetooth | |
136 | Group: Development/Libraries | |
137 | Requires: %{name}-libs = %{epoch}:%{version}-%{release} | |
138 | Obsoletes: bluez-sdp-devel | |
139 | ||
140 | %description libs-devel | |
141 | bluez-libs-devel contains header files for use in Bluetooth | |
142 | applications. | |
143 | ||
144 | %description libs-devel -l pl.UTF-8 | |
145 | Ten pakiet zawiera pliki nagłówkowe do używania w aplikacjach | |
146 | Bluetooth. | |
147 | ||
148 | %package libs-static | |
149 | Summary: Static Bluetooth libraries | |
150 | Summary(pl.UTF-8): Biblioteki statyczne Bluetooth | |
151 | Group: Development/Libraries | |
152 | Requires: %{name}-libs-devel = %{epoch}:%{version}-%{release} | |
153 | Obsoletes: bluez-sdp-static | |
154 | ||
155 | %description libs-static | |
156 | bluez-libs-static contains development static libraries for use in | |
157 | Bluetooth applications. | |
158 | ||
159 | %description libs-static -l pl.UTF-8 | |
160 | Ten pakiet zawiera biblioteki statyczne, których można używać do | |
161 | aplikacji Bluetooth. | |
162 | ||
163 | %prep | |
164 | %setup -q | |
165 | %patch0 -p1 | |
166 | ||
167 | %build | |
168 | %{__libtoolize} | |
169 | %{__aclocal} | |
170 | %{__autoconf} | |
171 | %{__autoheader} | |
172 | %{__automake} | |
173 | %configure \ | |
174 | --enable-shared \ | |
175 | --enable-static \ | |
176 | --enable-alsa \ | |
177 | --enable-bccmd \ | |
178 | --enable-configfiles \ | |
179 | --enable-netlink \ | |
180 | --enable-audio \ | |
181 | --enable-bccmd \ | |
182 | --enable-cups \ | |
183 | --enable-dfutool \ | |
184 | --enable-dund \ | |
185 | --enable-gstreamer \ | |
186 | --enable-hid2hci \ | |
187 | --enable-hidd \ | |
188 | --enable-input \ | |
189 | --enable-manpages \ | |
190 | --enable-network \ | |
191 | --enable-pand \ | |
192 | --enable-pcmciarules \ | |
193 | --enable-serial \ | |
194 | --enable-tools \ | |
195 | --enable-test \ | |
196 | --enable-usb | |
197 | ||
198 | %{__make} \ | |
199 | cupsdir=%{cupsdir} \ | |
200 | udevdir=%{udevdir} | |
201 | ||
202 | %install | |
203 | rm -rf $RPM_BUILD_ROOT | |
204 | install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig} | |
205 | install -d $RPM_BUILD_ROOT{/etc/udev/rules.d,%{udevdir}} | |
206 | ||
207 | %{__make} install \ | |
208 | DESTDIR=$RPM_BUILD_ROOT \ | |
209 | cupsdir=%{cupsdir} \ | |
210 | udevdir=%{udevdir} | |
211 | ||
212 | # noinst | |
213 | #install sync/bluetoothd-service-sync $RPM_BUILD_ROOT%{_libdir}/bluetooth | |
214 | ||
215 | install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/bluetooth | |
216 | install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/bluetooth | |
217 | install %{SOURCE3} $RPM_BUILD_ROOT/etc/udev/rules.d/70-bluetooth.rules | |
218 | install %{SOURCE4} $RPM_BUILD_ROOT%{udevdir}/bluetooth.sh | |
219 | install test/passkey-agent $RPM_BUILD_ROOT%{_bindir} | |
220 | mv $RPM_BUILD_ROOT/etc/udev/bluetooth.rules \ | |
221 | $RPM_BUILD_ROOT/etc/udev/rules.d/71-bluetooth.rules | |
222 | ||
223 | rm -f $RPM_BUILD_ROOT%{_libdir}/alsa-lib/*.la | |
224 | rm -f $RPM_BUILD_ROOT%{_libdir}/bluetooth/plugins/*.la | |
225 | rm -f $RPM_BUILD_ROOT%{_libdir}/gstreamer*/libgstbluetooth.la | |
226 | ||
227 | %clean | |
228 | rm -rf $RPM_BUILD_ROOT | |
229 | ||
230 | %post | |
231 | /sbin/chkconfig --add bluetooth | |
232 | %service bluetooth restart | |
233 | ||
234 | %preun | |
235 | if [ "$1" = "0" ]; then | |
236 | %service bluetooth stop | |
237 | /sbin/chkconfig --del bluetooth | |
238 | fi | |
239 | ||
240 | %post libs -p /sbin/ldconfig | |
241 | %postun libs -p /sbin/ldconfig | |
242 | ||
243 | %files | |
244 | %defattr(644,root,root,755) | |
245 | %doc AUTHORS ChangeLog README audio/audio-api.txt input/input-api.txt network/network-api.txt serial/serial-api.txt | |
246 | %attr(755,root,root) %{_bindir}/* | |
247 | %attr(755,root,root) %{_sbindir}/* | |
248 | %dir %{_libdir}/bluetooth | |
249 | %dir %{_libdir}/bluetooth/plugins | |
250 | %attr(755,root,root) %{_libdir}/bluetooth/plugins/*.so | |
251 | %dir %{_sysconfdir}/bluetooth | |
252 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bluetooth/main.conf | |
253 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bluetooth/rfcomm.conf | |
254 | %attr(754,root,root) /etc/rc.d/init.d/bluetooth | |
255 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/bluetooth | |
256 | %config(noreplace) %verify(not md5 mtime size) /etc/dbus-1/system.d/bluetooth.conf | |
257 | %attr(755,root,root) %{udevdir}/bluetooth.sh | |
258 | %attr(755,root,root) %{udevdir}/bluetooth_serial | |
259 | %config(noreplace) %verify(not md5 mtime size) /etc/udev/rules.d/70-bluetooth.rules | |
260 | %config(noreplace) %verify(not md5 mtime size) /etc/udev/rules.d/71-bluetooth.rules | |
261 | %{_mandir}/man[18]/* | |
262 | ||
263 | %files -n alsa-plugins-bluetooth | |
264 | %defattr(644,root,root,755) | |
265 | %attr(755,root,root) %{_libdir}/alsa-lib/libasound_module_ctl_bluetooth.so | |
266 | %attr(755,root,root) %{_libdir}/alsa-lib/libasound_module_pcm_bluetooth.so | |
267 | ||
268 | %files -n cups-backend-bluetooth | |
269 | %defattr(644,root,root,755) | |
270 | %attr(755,root,root) %{_prefix}/lib/cups/backend/bluetooth | |
271 | ||
272 | %files -n gstreamer-bluetooth | |
273 | %defattr(644,root,root,755) | |
274 | %attr(755,root,root) %{_libdir}/gstreamer*/libgstbluetooth.so | |
275 | ||
276 | %files libs | |
277 | %defattr(644,root,root,755) | |
278 | %attr(755,root,root) %{_libdir}/libbluetooth.so.*.*.* | |
279 | %attr(755,root,root) %ghost %{_libdir}/libbluetooth.so.[0-9] | |
280 | ||
281 | %files libs-devel | |
282 | %defattr(644,root,root,755) | |
283 | %attr(755,root,root) %{_libdir}/libbluetooth.so | |
284 | %{_libdir}/libbluetooth.la | |
285 | %{_includedir}/bluetooth | |
286 | %{_aclocaldir}/bluez.m4 | |
287 | %{_pkgconfigdir}/bluez.pc | |
288 | ||
289 | %files libs-static | |
290 | %defattr(644,root,root,755) | |
291 | %{_libdir}/libbluetooth.a |