]> git.pld-linux.org Git - packages/bluez.git/commitdiff
- updated to 5.13
authorJakub Bogusz <qboosh@pld-linux.org>
Fri, 3 Jan 2014 21:11:17 +0000 (22:11 +0100)
committerJakub Bogusz <qboosh@pld-linux.org>
Fri, 3 Jan 2014 21:11:17 +0000 (22:11 +0100)
- removed rfcomm init script (no longer applicable this way, bind all is no longer supported)
- removed obsolete entries from bluez.sysconfig

bluez.spec
bluez.sysconfig
rfcomm.init [deleted file]
rfcomm.upstart [deleted file]

index 2129e6775a8a0c55a5bda3bcaf31e4d2dec36868..5b0217e6f5e6f379fab316a0ae9dab439be12b93 100644 (file)
@@ -1,20 +1,17 @@
 # TODO:
 # - verify/update bluetooth init script
-# - update (or drop if it's no longer applicable) rfcomm init script
-# - separate obexd here? / separate -client in obexd.spec
+# - separate obex?
 Summary:       Bluetooth utilities
 Summary(pl.UTF-8):     NarzÄ™dzia Bluetooth
 Name:          bluez
-Version:       5.11
+Version:       5.13
 Release:       1
 License:       GPL v2+
 Group:         Applications/System
 Source0:       https://www.kernel.org/pub/linux/bluetooth/%{name}-%{version}.tar.xz
-# Source0-md5: 8a2544d8c88e1f4bd3abe9525282b13c
+# Source0-md5: c68f8cb270110256a684403ee43b5f79
 Source1:       %{name}.init
 Source2:       %{name}.sysconfig
-# FIXME: rfcomm.conf no longer supported
-Source5:       rfcomm.init
 Patch0:                %{name}-wacom-mode-2.patch
 URL:           http://www.bluez.org/
 BuildRequires: autoconf >= 2.60
@@ -26,8 +23,7 @@ BuildRequires:        libical-devel
 BuildRequires: libtool
 BuildRequires: pkgconfig >= 1:0.9.0
 BuildRequires: readline-devel
-BuildRequires: rpmbuild(macros) >= 1.626
-BuildRequires: systemd-units >= 38
+BuildRequires: rpmbuild(macros) >= 1.682
 BuildRequires: tar >= 1:1.22
 BuildRequires: udev-devel >= 1:143
 BuildRequires: xz
@@ -161,11 +157,12 @@ aplikacji Bluetooth.
 %{__automake}
 %configure \
        --disable-silent-rules \
+       --enable-experimental \
        --enable-library \
-       --enable-static
-# these options are broken; BR systemd instead
-#      --with-systemdsystemunitdir=%{systemdunitdir} \
-#      --with-systemduserunitdir=%{_prefix}/lib/systemd/user \
+       --enable-sixaxis \
+       --enable-static \
+       --with-systemdsystemunitdir=%{systemdunitdir} \
+       --with-systemduserunitdir=%{systemduserunitdir}
 
 %{__make} \
        cupsdir=%{cupsdir} \
@@ -175,7 +172,7 @@ aplikacji Bluetooth.
 %install
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig} \
-       $RPM_BUILD_ROOT{%{_libdir}/bluetooth/plugins,%{_sysconfdir}/bluetooth}
+       $RPM_BUILD_ROOT{%{_libdir}/{bluetooth,obex}/plugins,%{_sysconfdir}/bluetooth}
 
 %{__make} install \
        DESTDIR=$RPM_BUILD_ROOT \
@@ -183,9 +180,10 @@ install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig} \
        rulesdir=%{udevdir}/rules.d \
        udevdir=%{udevdir}
 
+%{__rm} $RPM_BUILD_ROOT%{_libdir}/bluetooth/plugins/*.{la,a}
+
 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/bluetooth
 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/bluetooth
-install %{SOURCE5} $RPM_BUILD_ROOT/etc/rc.d/init.d/rfcomm
 
 install profiles/input/*.conf $RPM_BUILD_ROOT%{_sysconfdir}/bluetooth
 install profiles/network/*.conf $RPM_BUILD_ROOT%{_sysconfdir}/bluetooth
@@ -198,17 +196,13 @@ rm -rf $RPM_BUILD_ROOT
 
 %post
 /sbin/chkconfig --add bluetooth
-/sbin/chkconfig --add rfcomm
 %service bluetooth restart
-%service rfcomm restart
 %systemd_post bluetooth.service
 
 %preun
 if [ "$1" = "0" ]; then
        %service bluetooth stop
-       %service rfcomm stop
        /sbin/chkconfig --del bluetooth
-       /sbin/chkconfig --del rfcomm
 fi
 %systemd_preun bluetooth.service
 
@@ -218,6 +212,10 @@ fi
 %triggerpostun -- bluez < 4.98-3
 %systemd_trigger bluetooth.service
 
+%triggerpostun -- bluez < 5.13-1
+%service rfcomm stop
+/sbin/chkconfig --del rfcomm
+
 %post   libs -p /sbin/ldconfig
 %postun libs -p /sbin/ldconfig
 
@@ -241,18 +239,19 @@ fi
 %attr(755,root,root) %{_libdir}/bluetooth/bluetoothd
 %attr(755,root,root) %{_libdir}/bluetooth/obexd
 %dir %{_libdir}/bluetooth/plugins
+%attr(755,root,root) %{_libdir}/bluetooth/plugins/sixaxis.so
+%dir %{_libdir}/obex/plugins
 %dir %{_sysconfdir}/bluetooth
 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bluetooth/input.conf
 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bluetooth/network.conf
 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bluetooth/proximity.conf
 %attr(754,root,root) /etc/rc.d/init.d/bluetooth
-%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
 %{systemdunitdir}/bluetooth.service
-%{_prefix}/lib/systemd/user/obex.service
-%{_datadir}/dbus-1/system-services/org.bluez.service
+%{systemduserunitdir}/obex.service
 %{_datadir}/dbus-1/services/org.bluez.obex.service
+%{_datadir}/dbus-1/system-services/org.bluez.service
 %attr(755,root,root) %{udevdir}/hid2hci
 %{udevdir}/rules.d/97-hid2hci.rules
 %{_mandir}/man1/bccmd.1*
index 7830c3a701de8af245b779a833769c2143c9091b..a65a0209cc45afc90c307b1c3e32e1c2189dd41f 100644 (file)
@@ -2,19 +2,3 @@
 
 # Define nice level for Bluetooth services
 SERVICE_RUN_NICE_LEVEL="+0"
-
-# remove if you have serial Bluetooth dongles configured in /etc/bluetooth/uart
-# (alternatively you can pass uart configuration file path here)
-UART_CONF="no"
-
-DAEMON_ENABLE=yes
-#HID2HCI_ENABLE=yes
-HCID_ENABLE=yes
-SDPD_ENABLE=yes
-HIDD_ENABLE=yes
-#HIDD_OPTIONS=""
-RFCOMM_ENABLE=yes
-#DUND_ENABLE=yes
-#DUND_OPTIONS=""
-#PAND_ENABLE=yes
-#PAND_OPTIONS=""
diff --git a/rfcomm.init b/rfcomm.init
deleted file mode 100644 (file)
index a59ba0a..0000000
+++ /dev/null
@@ -1,91 +0,0 @@
-#!/bin/sh
-#
-# rfcomm       Bluetooth RFCOMM setup. Sets up serial devices over Bluetooth.
-#
-# chkconfig:   345 27 88
-#
-# description: Bluetooth RFCOMM setup
-#
-# $Id$
-
-
-# Source function library
-. /etc/rc.d/init.d/functions
-
-UART_CONF="/etc/bluetooth/uart"
-[ -f /etc/sysconfig/bluetooth ] && . /etc/sysconfig/bluetooth
-
-if [ "$UART_CONF" != "no" -a ! -f "$UART_CONF" ]; then
-       UART_CONF="no"
-fi
-
-start() {
-       # Check if the service is already running?
-       if [ -f /var/lock/subsys/rfcomm ]; then
-               msg_already_running rfcomm
-               return
-       fi
-
-       msg_starting rfcomm
-       daemon /usr/bin/rfcomm -f /etc/bluetooth/rfcomm.conf bind all
-       RETVAL=$?
-       touch /var/lock/subsys/rfcomm
-}
-
-stop() {
-       if [ ! -f /var/lock/subsys/rfcomm ]; then
-               msg_not_running rfcomm
-               return
-       fi
-
-       msg_stopping rfcomm
-       daemon /usr/bin/rfcomm release all
-       rm -f /var/lock/subsys/rfcomm
-}
-
-condrestart() {
-       if [ ! -f /var/lock/subsys/rfcomm ]; then
-               msg_not_running rfcomm
-               RETVAL=$1
-               return
-       fi
-
-       stop
-       start
-}
-
-status() {
-       if [ ! -f /var/lock/subsys/rfcomm ]; then
-               msg_not_running rfcomm
-               RETVAL=3
-               return
-       fi
-
-       nls "rfcomm is running"
-}
-
-RETVAL=0
-# See how we were called.
-case "$1" in
-  start)
-       start
-       ;;
-  stop)
-       stop
-       ;;
-  restart|reload|force-reload)
-       stop
-       start
-       ;;
-  try-restart)
-       condrestart 0
-       ;;
-  status)
-       status
-       ;;
-  *)
-       msg_usage "$0 {start|stop|restart|try-restart|reload|force-reload|status}"
-       exit 3
-esac
-
-exit $RETVAL
diff --git a/rfcomm.upstart b/rfcomm.upstart
deleted file mode 100644 (file)
index 1dee983..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-description "Bluetooth RFCOMM setup. Sets up serial devices over Bluetooth."
-
-start on pld.sysinit-done
-stop on pld.shutdown-started
-
-script
-       /usr/bin/rfcomm -f /etc/bluetooth/rfcomm.conf bind all
-end script
-
-post-stop script
-       /usr/bin/rfcomm release all
-end script
This page took 0.098648 seconds and 4 git commands to generate.