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