1 Summary: Bluetooth utilities
2 Summary(pl.UTF-8): Narzędzia Bluetooth
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: 4629236517df280be321f009917a52be
12 Source2: %{name}.sysconfig
13 Source3: %{name}-udev.rules
14 Source4: %{name}-udev.script
15 Patch0: %{name}-etc_dir.patch
16 Patch1: %{name}-udev-path.patch
17 Patch2: %{name}-null-session.patch
18 Patch3: %{name}-bt_cancel_discovery.patch
19 URL: http://www.bluez.org/
20 BuildRequires: alsa-lib-devel >= 1.0.10-1
21 BuildRequires: autoconf >= 2.50
22 BuildRequires: automake
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
28 BuildRequires: libnl-devel
29 BuildRequires: libsndfile-devel
30 BuildRequires: libtool
31 BuildRequires: libusb-compat-devel
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}
37 Obsoletes: bluez-hciemu
40 Obsoletes: bluez-utils
41 Obsoletes: bluez-utils-init
42 Conflicts: bluez-bluefw
43 Provides: bluez-utils = %{epoch}:%{version}-%{release}
44 ExcludeArch: s390 s390x
45 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
47 # currently lib, not %{_lib} (see cups.spec)
48 %define cupsdir /usr/lib/cups/backend
49 %define udevdir /lib/udev
63 - PCMCIA configuration files
65 The BLUETOOTH trademarks are owned by Bluetooth SIG, Inc., U.S.A.
67 %description -l pl.UTF-8
78 - skrypty startowe (PLD)
79 - pliki konfiguracji PCMCIA
81 Znaki towarowe BLUETOOTH są własnością Bluetooth SIG, Inc. z USA.
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
87 # bluetoothd + audio service
88 Requires: %{name} = %{epoch}:%{version}-%{release}
89 Requires: alsa-lib >= 1.0.10-1
91 %description -n alsa-plugins-bluetooth
92 ALSA plugins for Bluetooth audio devices.
94 %description -n alsa-plugins-bluetooth -l pl.UTF-8
95 Wtyczki systemu ALSA dla urządzeń dźwiękowych Bluetooth.
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}
104 %description -n cups-backend-bluetooth
105 Bluetooth backend for CUPS.
107 %description -n cups-backend-bluetooth -l pl.UTF-8
108 Backend Bluetooth dla CUPS-a.
110 %package -n gstreamer-bluetooth
111 Summary: Bluetooth support for gstreamer
112 Summary(pl.UTF-8): Obsługa Bluetooth dla gstreamera
114 Requires: bluez-libs >= %{epoch}:%{version}-%{release}
115 Requires: gstreamer >= 0.10
116 Requires: gstreamer-plugins-base >= 0.10
118 %description -n gstreamer-bluetooth
119 Bluetooth support for gstreamer.
121 %description -n gstreamer-bluetooth -l pl.UTF-8
122 Obsługa Bluetooth dla gstreamera.
125 Summary: Bluetooth libraries
126 Summary(pl.UTF-8): Biblioteki Bluetooth
127 Group: Development/Libraries
131 Libraries for use in Bluetooth applications.
133 The BLUETOOTH trademarks are owned by Bluetooth SIG, Inc., U.S.A.
135 %description libs -l pl.UTF-8
136 Biblioteki do używania w aplikacjach Bluetooth.
138 Znaki towarowe BLUETOOTH są własnością Bluetooth SIG, Inc. z USA.
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
147 %description libs-devel
148 bluez-libs-devel contains header files for use in Bluetooth
151 %description libs-devel -l pl.UTF-8
152 Ten pakiet zawiera pliki nagłówkowe do używania w aplikacjach
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
162 %description libs-static
163 bluez-libs-static contains development static libraries for use in
164 Bluetooth applications.
166 %description libs-static -l pl.UTF-8
167 Ten pakiet zawiera biblioteki statyczne, których można używać do
189 --enable-configfiles \
201 --enable-pcmciarules \
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}}
216 DESTDIR=$RPM_BUILD_ROOT \
221 install audio/audio.conf $RPM_BUILD_ROOT%{_sysconfdir}/bluetooth
222 install input/input.conf $RPM_BUILD_ROOT%{_sysconfdir}/bluetooth
223 install network/network.conf $RPM_BUILD_ROOT%{_sysconfdir}/bluetooth
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
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
234 rm -rf $RPM_BUILD_ROOT
237 /sbin/chkconfig --add bluetooth
238 %service bluetooth restart
241 if [ "$1" = "0" ]; then
242 %service bluetooth stop
243 /sbin/chkconfig --del bluetooth
246 %post libs -p /sbin/ldconfig
247 %postun libs -p /sbin/ldconfig
250 %defattr(644,root,root,755)
251 %doc AUTHORS ChangeLog README
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
258 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bluetooth/audio.conf
259 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bluetooth/input.conf
260 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bluetooth/main.conf
261 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bluetooth/network.conf
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
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
273 %files -n alsa-plugins-bluetooth
274 %defattr(644,root,root,755)
275 %{_sysconfdir}/alsa/bluetooth.conf
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
279 %files -n cups-backend-bluetooth
280 %defattr(644,root,root,755)
281 %attr(755,root,root) %{_prefix}/lib/cups/backend/bluetooth
283 %files -n gstreamer-bluetooth
284 %defattr(644,root,root,755)
285 %attr(755,root,root) %{_libdir}/gstreamer*/libgstbluetooth.so
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]
293 %defattr(644,root,root,755)
294 %attr(755,root,root) %{_libdir}/libbluetooth.so
295 %{_libdir}/libbluetooth.la
296 %{_includedir}/bluetooth
297 %{_pkgconfigdir}/bluez.pc
300 %defattr(644,root,root,755)
301 %{_libdir}/libbluetooth.a