Summary: Bluetooth utilities Name: bluez5 Version: 5.5 Release: 3%{?dist} License: GPLv2+ Group: Applications/System URL: http://www.bluez.org/ %global _hardened_build 1 Source: http://www.kernel.org/pub/linux/bluetooth/bluez-%{version}.tar.xz Source1: bluez.gitignore ## https://bugzilla.redhat.com/show_bug.cgi?id=874015#c0 Patch1: playstation-peripheral-pugin-v5.x.patch ## Ubuntu patches Patch2: 0001-work-around-Logitech-diNovo-Edge-keyboard-firmware-i.patch BuildRequires: git BuildRequires: flex BuildRequires: dbus-devel >= 0.90 BuildRequires: libusb-devel, glib2-devel #BuildRequires: libsndfile-devel BuildRequires: libcap-ng-devel BuildRequires: readline-devel BuildRequires: libical-devel # For cable pairing BuildRequires: systemd-devel # For cups BuildRequires: cups-devel %ifnarch s390 s390x BuildRequires: libusbx-devel %endif # For rebuild BuildRequires: libtool autoconf automake Requires: bluez5-libs = %{version}-%{release} Requires: systemd Requires: dbus >= 0.60 Requires: hwdata >= 0.215 Requires(preun): /bin/systemctl Requires(post): /bin/systemctl Obsoletes: bluez Obsoletes: bluez-gstreamer Obsoletes: bluez-alsa Obsoletes: bluez-compat Obsoletes: obex-data-server Obsoletes: obexd %description Utilities for use in Bluetooth applications: - hcitool - hciattach - hciconfig - bluetoothd - l2ping - rfcomm - sdptool - bccmd - bluetoothctl - btmon - hcidump - l2test - rctest - start scripts (Red Hat) - pcmcia configuration files The BLUETOOTH trademarks are owned by Bluetooth SIG, Inc., U.S.A. %package libs Summary: Libraries for use in Bluetooth applications Group: System Environment/Libraries %package libs-devel Summary: Development libraries for Bluetooth applications Group: Development/Libraries Requires: bluez5-libs = %{version}-%{release} Requires: pkgconfig %package cups Summary: CUPS printer backend for Bluetooth printers Group: System Environment/Daemons Requires: bluez5-libs = %{version}-%{release} Requires: cups Obsoletes: bluez-cups %package hid2hci Summary: Put HID proxying bluetooth HCI's into HCI mode Group: System Environment/Daemons Requires: bluez5-libs = %{version}-%{release} Requires: bluez5 = %{version}-%{release} Obsoletes: bluez-hid2hci %description cups This package contains the CUPS backend %description libs Libraries for use in Bluetooth applications. %description libs-devel bluez-libs-devel contains development libraries and headers for use in Bluetooth applications. %description hid2hci Most allinone PC's and bluetooth keyboard / mouse sets which include a bluetooth dongle, ship with a so called HID proxying bluetooth HCI. The HID proxying makes the keyboard / mouse show up as regular USB HID devices (after connecting using the connect button on the device + keyboard), which makes them work without requiring any manual configuration. The bluez-hid2hci package contains the hid2hci utility and udev rules to automatically switch supported Bluetooth devices into regular HCI mode. Install this package if you want to use the bluetooth function of the HCI with other bluetooth devices like for example a mobile phone. Note that after installing this package you will first need to pair your bluetooth keyboard and mouse with the bluetooth adapter before you can use them again. Since you cannot use your bluetooth keyboard and mouse until they are paired, this will require the use of a regular (wired) USB keyboard and mouse. %prep %setup -q -n bluez-%{version} git init if [ -z "$GIT_COMMITTER_NAME" ]; then git config user.email "bluez-owner@fedoraproject.org" git config user.name "Fedora Bluez maintainers" fi cp %{SOURCE1} .gitignore git add . git commit -a -q -m "%{version} baseline." git am -p1 %{patches} < /dev/null %build libtoolize -f -c autoreconf -f -i %configure --enable-cups --enable-tools --enable-library \ --with-systemdsystemunitdir=/lib/systemd/system \ --with-systemduserunitdir=/lib/systemd/user make V=1 %install make install DESTDIR=$RPM_BUILD_ROOT /sbin/ldconfig -n $RPM_BUILD_ROOT/%{_libdir} # Remove autocrap and libtool droppings rm $RPM_BUILD_ROOT/%{_libdir}/*.la # Remove the cups backend from libdir, and install it in /usr/lib whatever the install if test -d ${RPM_BUILD_ROOT}/usr/lib64/cups ; then install -D -m0755 ${RPM_BUILD_ROOT}/usr/lib64/cups/backend/bluetooth ${RPM_BUILD_ROOT}%_cups_serverbin/backend/bluetooth rm -rf ${RPM_BUILD_ROOT}%{_libdir}/cups fi rm -f ${RPM_BUILD_ROOT}/%{_sysconfdir}/udev/*.rules ${RPM_BUILD_ROOT}/usr/lib/udev/rules.d/*.rules install -D -p -m0644 tools/hid2hci.rules ${RPM_BUILD_ROOT}/lib/udev/rules.d/97-hid2hci.rules install -d -m0755 $RPM_BUILD_ROOT/%{_localstatedir}/lib/bluetooth mkdir -p $RPM_BUILD_ROOT/%{_libdir}/bluetooth/ install -d -m0755 ${RPM_BUILD_ROOT}/etc/bluetooth/ install -D -p -m0644 profiles/audio/audio.conf ${RPM_BUILD_ROOT}/etc/bluetooth/ %post libs -p /sbin/ldconfig %post if [ $1 -eq 1 ]; then /bin/systemctl enable bluetooth.service >/dev/null 2>&1 || : fi %postun libs -p /sbin/ldconfig %preun if [ $1 -eq 0 ]; then /bin/systemctl --no-reload disable bluetooth.service >/dev/null 2>&1 || : /bin/systemctl stop bluetooth.service >/dev/null 2>&1 || : fi %postun /bin/systemctl daemon-reload >/dev/null 2>&1 || : if [ $1 -ge 1 ] ; then /bin/systemctl try-restart bluetooth.service >/dev/null 2>&1 || : fi %triggerun -- bluez < 4.94-4 /bin/systemctl --no-reload enable bluetooth.service >/dev/null 2>&1 || : %post hid2hci /sbin/udevadm trigger --subsystem-match=usb %files %defattr(-,root,root,-) %{_bindir}/ciptool %{_bindir}/hcitool %{_bindir}/l2ping %{_bindir}/rfcomm %{_bindir}/sdptool %{_bindir}/bccmd %{_bindir}/bluetoothctl %{_bindir}/btmon %{_bindir}/hciattach %{_bindir}/hciconfig %{_bindir}/hcidump %{_bindir}/l2test %{_bindir}/rctest %{_mandir}/man1/ciptool.1.gz %{_mandir}/man1/hcitool.1.gz %{_mandir}/man1/rfcomm.1.gz %{_mandir}/man1/sdptool.1.gz %{_mandir}/man1/bccmd.1.* %{_mandir}/man1/hciattach.1.* %{_mandir}/man1/hciconfig.1.* %{_mandir}/man1/hcidump.1.* %{_mandir}/man1/l2ping.1.* %{_mandir}/man1/rctest.1.* %{_mandir}/man8/* %dir %{_sysconfdir}/bluetooth/ %config(noreplace) %{_sysconfdir}/bluetooth/audio.conf %{_libexecdir}/bluetooth/bluetoothd %{_libexecdir}/bluetooth/obexd %exclude %{_mandir}/man1/hid2hci.1* %config %{_sysconfdir}/dbus-1/system.d/bluetooth.conf %{_libdir}/bluetooth/ %{_localstatedir}/lib/bluetooth %{_datadir}/dbus-1/system-services/org.bluez.service %{_datadir}/dbus-1/services/org.bluez.obex.service /lib/systemd/system/bluetooth.service /lib/systemd/user/obex.service %files libs %defattr(-,root,root,-) %{_libdir}/libbluetooth.so.* %doc AUTHORS COPYING INSTALL ChangeLog README %files libs-devel %defattr(-,root,root,-) %{_libdir}/libbluetooth.so %dir %{_includedir}/bluetooth %{_includedir}/bluetooth/* %{_libdir}/pkgconfig/bluez.pc %files cups %defattr(-,root,root,-) %_cups_serverbin/backend/bluetooth %files hid2hci %defattr(-,root,root,-) /usr/lib/udev/hid2hci %{_mandir}/man1/hid2hci.1* /lib/udev/rules.d/97-hid2hci.rules %changelog * Thu May 30 2013 Bastien Nocera 5.5-3 - Add working sixaxis plugin * Thu May 16 2013 Bastien Nocera 5.5-2 - Fix obsoletes * Thu May 16 2013 Bastien Nocera 5.5-2 - Remove uinput module loading (#963193) * Thu May 16 2013 Bastien Nocera 5.5-1 - Update to 5.4 * Mon May 06 2013 Bastien Nocera 5.1-1 - Update to 5.4 * Sun Jan 13 2013 Lubomir Rintel 5.1-1 - Create BlueZ 5 packages based on bluez