Summary: Bluetooth utilities
Summary(pl.UTF-8): Narzędzia Bluetooth
Name: bluez
-Version: 4.2
-Release: 0.1
-Epoch: 0
+Version: 4.55
+Release: 1
License: GPL v2+
Group: Applications/System
#Source0Download: http://www.bluez.org/download.html
Source0: http://www.kernel.org/pub/linux/bluetooth/%{name}-%{version}.tar.gz
-# Source0-md5: 60344bd096fda1742e4dbd603b1a06e9
+# Source0-md5: febbbbb512eb5ed9c28aa8008ae952a7
Source1: %{name}.init
Source2: %{name}.sysconfig
-Source3: %{name}-udev.rules
-Source4: %{name}-udev.script
+Source3: dund.init
+Source4: pand.init
+Source5: rfcomm.init
Patch0: %{name}-etc_dir.patch
+Patch1: %{name}-oui.patch
+Patch2: %{name}-wacom-mode-2.patch
+Patch3: %{name}-try-utf8-harder.patch
URL: http://www.bluez.org/
BuildRequires: alsa-lib-devel >= 1.0.10-1
BuildRequires: autoconf >= 2.50
BuildRequires: glib2-devel >= 2.0
BuildRequires: gstreamer-devel >= 0.10
BuildRequires: gstreamer-plugins-base-devel >= 0.10
+BuildRequires: libnl-devel
BuildRequires: libsndfile-devel
BuildRequires: libtool
-BuildRequires: libusb-devel
-BuildRequires: openobex-devel >= 1.1
+BuildRequires: libusb-compat-devel
BuildRequires: pkgconfig >= 1:0.9.0
BuildRequires: rpmbuild(macros) >= 1.268
+BuildRequires: udev-devel
Requires: %{name}-libs = %{epoch}:%{version}-%{release}
+Requires: hwdata >= 0.225
Requires: rc-scripts
+Provides: bluez-utils = %{epoch}:%{version}-%{release}
Obsoletes: bluez-hciemu
Obsoletes: bluez-pan
Obsoletes: bluez-sdp
+Obsoletes: bluez-utils
Obsoletes: bluez-utils-init
Conflicts: bluez-bluefw
ExcludeArch: s390 s390x
# currently lib, not %{_lib} (see cups.spec)
%define cupsdir /usr/lib/cups/backend
-%define udevdir /%{_lib}/udev
+%define udevdir /lib/udev
%description
Bluetooth utilities:
+ - bluetoothd
+ - dund
- hcitool
- hciattach
- hciconfig
- - hcid
- hciemu
- hidd
- l2ping
%description -l pl.UTF-8
Narzędzia Bluetooth:
+ - bluetoothd
+ - dund
- hcitool
- hciattach
- hciconfig
- - hcid
- hciemu
- hidd
- l2ping
%prep
%setup -q
%patch0 -p1
+%patch1 -p1
+%patch2 -p1
+%patch3 -p1
%build
%{__libtoolize}
--enable-shared \
--enable-static \
--enable-alsa \
- --enable-bccmd \
- --enable-configfiles \
- --enable-netlink \
--enable-audio \
--enable-bccmd \
+ --enable-configfiles \
--enable-cups \
--enable-dfutool \
--enable-dund \
--enable-hidd \
--enable-input \
--enable-manpages \
+ --enable-netlink \
--enable-network \
--enable-pand \
- --enable-pcmciarules \
+ --enable-pcmcia \
--enable-serial \
--enable-tools \
- --enable-test \
- --enable-usb
+ --enable-usb \
+ --enable-udevrules
%{__make} \
cupsdir=%{cupsdir} \
%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig}
-install -d $RPM_BUILD_ROOT{/etc/udev/rules.d,%{udevdir}}
%{__make} install \
DESTDIR=$RPM_BUILD_ROOT \
cupsdir=%{cupsdir} \
udevdir=%{udevdir}
-# noinst
-#install sync/bluetoothd-service-sync $RPM_BUILD_ROOT%{_libdir}/bluetooth
-
install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/bluetooth
install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/bluetooth
-install %{SOURCE3} $RPM_BUILD_ROOT/etc/udev/rules.d/70-bluetooth.rules
-install %{SOURCE4} $RPM_BUILD_ROOT%{udevdir}/bluetooth.sh
-install test/passkey-agent $RPM_BUILD_ROOT%{_bindir}
-mv $RPM_BUILD_ROOT/etc/udev/bluetooth.rules \
- $RPM_BUILD_ROOT/etc/udev/rules.d/71-bluetooth.rules
+install %{SOURCE3} $RPM_BUILD_ROOT/etc/rc.d/init.d/dund
+install %{SOURCE4} $RPM_BUILD_ROOT/etc/rc.d/init.d/pand
+install %{SOURCE5} $RPM_BUILD_ROOT/etc/rc.d/init.d/rfcomm
+
+install audio/*.conf $RPM_BUILD_ROOT%{_sysconfdir}/bluetooth
+install input/*.conf $RPM_BUILD_ROOT%{_sysconfdir}/bluetooth
+install network/*.conf $RPM_BUILD_ROOT%{_sysconfdir}/bluetooth
+install serial/*.conf $RPM_BUILD_ROOT%{_sysconfdir}/bluetooth
-rm -f $RPM_BUILD_ROOT%{_libdir}/alsa-lib/*.la
-rm -f $RPM_BUILD_ROOT%{_libdir}/bluetooth/plugins/*.la
-rm -f $RPM_BUILD_ROOT%{_libdir}/gstreamer*/libgstbluetooth.la
+rm -f $RPM_BUILD_ROOT%{_libdir}/alsa-lib/*.{,l}a
+rm -f $RPM_BUILD_ROOT%{_libdir}/bluetooth/plugins/*.{,l}a
+rm -f $RPM_BUILD_ROOT%{_libdir}/gstreamer*/libgstbluetooth.{,l}a
%clean
rm -rf $RPM_BUILD_ROOT
%post
/sbin/chkconfig --add bluetooth
+/sbin/chkconfig --add dund
+/sbin/chkconfig --add pand
+/sbin/chkconfig --add rfcomm
%service bluetooth restart
+%service dund restart
+%service pand restart
+%service rfcomm restart
%preun
if [ "$1" = "0" ]; then
%service bluetooth stop
+ %service dund stop
+ %service pand stop
+ %service rfcomm stop
/sbin/chkconfig --del bluetooth
+ /sbin/chkconfig --del dund
+ /sbin/chkconfig --del pand
+ /sbin/chkconfig --del rfcomm
fi
-%post libs -p /sbin/ldconfig
+%post libs -p /sbin/ldconfig
%postun libs -p /sbin/ldconfig
%files
%defattr(644,root,root,755)
-%doc AUTHORS ChangeLog README audio/audio-api.txt input/input-api.txt network/network-api.txt serial/serial-api.txt
+%doc AUTHORS ChangeLog README
%attr(755,root,root) %{_bindir}/*
%attr(755,root,root) %{_sbindir}/*
%dir %{_libdir}/bluetooth
%dir %{_libdir}/bluetooth/plugins
%attr(755,root,root) %{_libdir}/bluetooth/plugins/*.so
%dir %{_sysconfdir}/bluetooth
-%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bluetooth/main.conf
-%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bluetooth/rfcomm.conf
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bluetooth/*.conf
%attr(754,root,root) /etc/rc.d/init.d/bluetooth
+%attr(754,root,root) /etc/rc.d/init.d/dund
+%attr(754,root,root) /etc/rc.d/init.d/pand
+%attr(754,root,root) /etc/rc.d/init.d/rfcomm
%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/bluetooth
%config(noreplace) %verify(not md5 mtime size) /etc/dbus-1/system.d/bluetooth.conf
-%attr(755,root,root) %{udevdir}/bluetooth.sh
%attr(755,root,root) %{udevdir}/bluetooth_serial
-%config(noreplace) %verify(not md5 mtime size) /etc/udev/rules.d/70-bluetooth.rules
-%config(noreplace) %verify(not md5 mtime size) /etc/udev/rules.d/71-bluetooth.rules
+%config(noreplace) %verify(not md5 mtime size) %{udevdir}/rules.d/97-bluetooth.rules
+%config(noreplace) %verify(not md5 mtime size) %{udevdir}/rules.d/97-bluetooth-hid2hci.rules
+%config(noreplace) %verify(not md5 mtime size) %{udevdir}/rules.d/97-bluetooth-serial.rules
%{_mandir}/man[18]/*
%files -n alsa-plugins-bluetooth
%defattr(644,root,root,755)
+%dir %{_sysconfdir}/alsa
+%{_sysconfdir}/alsa/bluetooth.conf
%attr(755,root,root) %{_libdir}/alsa-lib/libasound_module_ctl_bluetooth.so
%attr(755,root,root) %{_libdir}/alsa-lib/libasound_module_pcm_bluetooth.so
%attr(755,root,root) %{_libdir}/libbluetooth.so
%{_libdir}/libbluetooth.la
%{_includedir}/bluetooth
-%{_aclocaldir}/bluez.m4
%{_pkgconfigdir}/bluez.pc
%files libs-static