This commit is contained in:
commit
9d4280f033
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
## Default LFS
|
||||||
|
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.png filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zst filter=lfs diff=lfs merge=lfs -text
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
.osc
|
155
bluetooth.init
Normal file
155
bluetooth.init
Normal file
@ -0,0 +1,155 @@
|
|||||||
|
#! /bin/sh
|
||||||
|
# Copyright (c) 1995-2003 SuSE Linux AG, Nuernberg, Germany.
|
||||||
|
# All rights reserved.
|
||||||
|
#
|
||||||
|
# Author: Stefan Behlert <feedback@suse.de>, based on
|
||||||
|
# proposals and templates from Marcel Holtmann
|
||||||
|
# and Stefan Reinauer <feedback@suse.de>
|
||||||
|
#
|
||||||
|
# /etc/init.d/bluetooth
|
||||||
|
# and its symbolic link
|
||||||
|
# /(usr/)sbin/rcbluetooth
|
||||||
|
#
|
||||||
|
### BEGIN INIT INFO
|
||||||
|
# Provides: bluetooth
|
||||||
|
# Required-Start: $syslog $remote_fs
|
||||||
|
# Should-Start: dbus
|
||||||
|
# Required-Stop: $syslog $remote_fs
|
||||||
|
# Should-Stop: $null
|
||||||
|
# Default-Start: 3 5
|
||||||
|
# Default-Stop: 0 1 2 6
|
||||||
|
# Short-Description: Bluetooth protocol stack services
|
||||||
|
# Description: Bluetooth protocol stack services
|
||||||
|
### END INIT INFO
|
||||||
|
#
|
||||||
|
|
||||||
|
DAEMON_EXEC=/usr/sbin/bluetoothd
|
||||||
|
HID2HCI_EXEC=/usr/sbin/hid2hci
|
||||||
|
RFCOMM_EXEC=/usr/bin/rfcomm
|
||||||
|
PAND_EXEC=/usr/sbin/pand
|
||||||
|
DUND_EXEC=/usr/sbin/dund
|
||||||
|
DAEMON_ENABLE=true
|
||||||
|
HID2HCI_ENABLE=false
|
||||||
|
RFCOMM_ENABLE=true
|
||||||
|
PAND_ENABLE=false
|
||||||
|
DUND_ENABLE=false
|
||||||
|
|
||||||
|
# Check for existence of needed config file and read it
|
||||||
|
BLUETOOTH_CONFIG=/etc/sysconfig/bluetooth
|
||||||
|
test -r $BLUETOOTH_CONFIG || exit 6
|
||||||
|
. $BLUETOOTH_CONFIG
|
||||||
|
|
||||||
|
. /etc/rc.status
|
||||||
|
|
||||||
|
# Reset status of this service
|
||||||
|
rc_reset
|
||||||
|
|
||||||
|
# check_service "hcid" "$HCI_START" "$HCI_DAEMON"
|
||||||
|
function check_service()
|
||||||
|
{
|
||||||
|
if [ "$2" = "yes" ]; then
|
||||||
|
printf "%10s (%s)" "$1" "activated"
|
||||||
|
/sbin/checkproc $3 || rc_failed 7
|
||||||
|
rc_status -v
|
||||||
|
else
|
||||||
|
printf "%10s" "$1"
|
||||||
|
/sbin/checkproc $3 || rc_failed 3
|
||||||
|
rc_status -v
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
case "$1" in
|
||||||
|
start)
|
||||||
|
echo -n "Starting bluetooth: "
|
||||||
|
|
||||||
|
if [ $DAEMON_ENABLE = "yes" ] && [ -x "$DAEMON_EXEC" ] ; then
|
||||||
|
/sbin/checkproc $DAEMON_EXEC || $DAEMON_EXEC $DAEMON_ARGS
|
||||||
|
echo -n " bluetoothd"
|
||||||
|
fi
|
||||||
|
if [ $HID2HCI_ENABLE != "no" ] && [ -x "$HID2HCI_EXEC" ] ; then
|
||||||
|
$HID2HCI_EXEC $HID2HCI_ARGS > /dev/null 2>&1
|
||||||
|
echo -n " hid2hci"
|
||||||
|
fi
|
||||||
|
if [ $RFCOMM_ENABLE = "yes" ] && [ -x "$RFCOMM_EXEC" ] ; then
|
||||||
|
$RFCOMM_EXEC $RFCOMM_ARGS
|
||||||
|
echo -n " rfcomm"
|
||||||
|
fi
|
||||||
|
if [ $PAND_ENABLE = "yes" ] && [ -x "$PAND_EXEC" ] ; then
|
||||||
|
/sbin/checkproc $PAND_EXEC || $PAND_EXEC $PAND_ARGS
|
||||||
|
echo -n " pand"
|
||||||
|
fi
|
||||||
|
if [ $DUND_ENABLE = "yes" ] && [ -x "$DUND_EXEC" ] ; then
|
||||||
|
/sbin/checkproc $DUND_EXEC || $DUND_EXEC $DUND_ARGS
|
||||||
|
echo -n " dund"
|
||||||
|
fi
|
||||||
|
|
||||||
|
rc_status -v
|
||||||
|
;;
|
||||||
|
stop)
|
||||||
|
echo -n "Shutting down bluetooth ("
|
||||||
|
|
||||||
|
if [ -x $DUND_EXEC ]; then
|
||||||
|
/sbin/killproc -TERM $DUND_EXEC && echo -n " dund"
|
||||||
|
fi
|
||||||
|
if [ -x $PAND_EXEC ]; then
|
||||||
|
/sbin/killproc -TERM $PAND_EXEC && echo -n " pand"
|
||||||
|
fi
|
||||||
|
if [ -x $RFCOMM_EXEC ]; then
|
||||||
|
/sbin/killproc -TERM $RFCOMM_EXEC && echo -n " rfcomm"
|
||||||
|
fi
|
||||||
|
if [ -x $DAEMON_EXEC ]; then
|
||||||
|
/sbin/killproc -TERM $DAEMON_EXEC && echo -n " bluetoothd"
|
||||||
|
fi
|
||||||
|
echo -n ")"
|
||||||
|
rc_status -v
|
||||||
|
;;
|
||||||
|
try-restart)
|
||||||
|
$0 status >/dev/null && $0 restart
|
||||||
|
rc_status
|
||||||
|
;;
|
||||||
|
restart)
|
||||||
|
$0 stop
|
||||||
|
$0 start
|
||||||
|
rc_status
|
||||||
|
;;
|
||||||
|
force-reload)
|
||||||
|
echo -n "Reload service BLUETOOTH "
|
||||||
|
$0 stop && $0 start
|
||||||
|
rc_status
|
||||||
|
;;
|
||||||
|
reload)
|
||||||
|
rc_failed 3
|
||||||
|
rc_status -v
|
||||||
|
;;
|
||||||
|
status)
|
||||||
|
echo -n "Checking service bluetooth "
|
||||||
|
if [ $START_SERVICES = 'no' ] ; then
|
||||||
|
echo "(disabled) :"
|
||||||
|
else
|
||||||
|
echo "(enabled) :"
|
||||||
|
fi;
|
||||||
|
check_service "bluetoothd" "$DAEMON_ENABLE" "$DAEMON_EXEC"
|
||||||
|
check_service "hid2hci" "$HID2HCI_ENABLE" "$HID2HCI_EXEC"
|
||||||
|
check_service "rfcomm" "$RFCOMM_ENABLE" "$RFCOMM_EXEC"
|
||||||
|
check_service "pand" "$PAND_ENABLE" "$PAND_EXEC"
|
||||||
|
check_service "dund" "$DUND_ENABLE" "$DUND_EXEC"
|
||||||
|
if [ $START_SERVICES = 'no' ] ; then
|
||||||
|
rc_failed 3
|
||||||
|
else
|
||||||
|
rc_failed 0
|
||||||
|
fi;
|
||||||
|
|
||||||
|
;;
|
||||||
|
probe)
|
||||||
|
## Optional: Probe for the necessity of a reload, print out the
|
||||||
|
## argument to this init script which is required for a reload.
|
||||||
|
## Note: probe is not (yet) part of LSB (as of 1.2)
|
||||||
|
# test /etc/FOO/FOO.conf -nt /var/run/FOO.pid && echo reload
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
|
||||||
|
exit 1
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
rc_exit
|
||||||
|
|
129
bluetooth.sysconfig
Normal file
129
bluetooth.sysconfig
Normal file
@ -0,0 +1,129 @@
|
|||||||
|
############ general
|
||||||
|
## Path: Hardware/Bluetooth
|
||||||
|
## Description: General settings for the Bluetooth device, if set to 'yes' bluetooth is started when hotplug reports 'added bluetooth device'
|
||||||
|
## Type: yesno
|
||||||
|
## Default: no
|
||||||
|
## ServiceRestart: bluetooth
|
||||||
|
|
||||||
|
START_SERVICES=yes
|
||||||
|
|
||||||
|
############ HCID
|
||||||
|
|
||||||
|
## Path: Hardware/Bluetooth
|
||||||
|
## Description: Start the daemon for managing Bluetooth devices
|
||||||
|
## Type: yesno
|
||||||
|
## Default: yes
|
||||||
|
## ServiceRestart: bluetooth
|
||||||
|
DAEMON_ENABLE=yes
|
||||||
|
|
||||||
|
## Path: Hardware/Bluetooth
|
||||||
|
## Description: Set responsible daemon for managing Bluetooth devices
|
||||||
|
## Type: list("/usr/sbin/bluetoothd","")
|
||||||
|
## Default: "/usr/sbin/bluetoothd"
|
||||||
|
## ServiceRestart: bluetooth
|
||||||
|
DAEMON_EXEC="/usr/sbin/bluetoothd"
|
||||||
|
|
||||||
|
## Path: Hardware/Bluetooth
|
||||||
|
## Description: Arguments for hci-demon
|
||||||
|
## Type: string("")
|
||||||
|
## Default: ""
|
||||||
|
## ServiceRestart: bluetooth
|
||||||
|
|
||||||
|
DAEMON_ARGS=""
|
||||||
|
|
||||||
|
|
||||||
|
############ RFCOMM
|
||||||
|
|
||||||
|
## Path: Hardware/Bluetooth
|
||||||
|
## Description: Start rfcomm service
|
||||||
|
## Type: yesno
|
||||||
|
## Default: no
|
||||||
|
## ServiceRestart: bluetooth
|
||||||
|
RFCOMM_ENABLE="yes"
|
||||||
|
|
||||||
|
## Path: Hardware/Bluetooth
|
||||||
|
## Description: Set responsible service for rfcomm
|
||||||
|
## Type: list("/usr/bin/rfcomm","")
|
||||||
|
## Default: "/usr/bin/rfcomm"
|
||||||
|
## ServiceRestart: bluetooth
|
||||||
|
RFCOMM_EXEC="/usr/bin/rfcomm"
|
||||||
|
|
||||||
|
## Path: Hardware/Bluetooth
|
||||||
|
## Description: Arguments for rfcomm service
|
||||||
|
## Type: list("-f /etc/bluetooth/rfcomm.conf bind all","")
|
||||||
|
## Default: "-f /etc/bluetooth/rfcomm.conf bind all"
|
||||||
|
## ServiceRestart: bluetooth
|
||||||
|
RFCOMM_ARGS="-f /etc/bluetooth/rfcomm.conf bind all"
|
||||||
|
|
||||||
|
|
||||||
|
############ PAND
|
||||||
|
|
||||||
|
## Path: Hardware/Bluetooth
|
||||||
|
## Description: Start daemon for Personal Area Network
|
||||||
|
## Type: yesno
|
||||||
|
## Default: no
|
||||||
|
## ServiceRestart: bluetooth
|
||||||
|
PAND_ENABLE="no"
|
||||||
|
|
||||||
|
## Path: Hardware/Bluetooth
|
||||||
|
## Description: Set responsible demon for Personal Area Network
|
||||||
|
## Type: list("/usr/bin/pand","")
|
||||||
|
## Default: "/usr/bin/pand"
|
||||||
|
## ServiceRestart: bluetooth
|
||||||
|
PAND_EXEC="/usr/bin/pand"
|
||||||
|
|
||||||
|
## Path: Hardware/Bluetooth
|
||||||
|
## Description: Arguments for pan-demon start
|
||||||
|
## Type: list("--listen --role NAP")
|
||||||
|
## Default: "--listen --role NAP"
|
||||||
|
## ServiceRestart: bluetooth
|
||||||
|
PAND_ARGS="--listen --role NAP"
|
||||||
|
|
||||||
|
|
||||||
|
############ DUND
|
||||||
|
|
||||||
|
## Path: Hardware/Bluetooth
|
||||||
|
## Description: Start responsible demon for LAN Access over PPP
|
||||||
|
## Type: yesno
|
||||||
|
## Default: no
|
||||||
|
## ServiceRestart: bluetooth
|
||||||
|
DUND_ENABLE="no"
|
||||||
|
|
||||||
|
## Path: Hardware/Bluetooth
|
||||||
|
## Description: Set responsible demon for LAN Access over PPP
|
||||||
|
## Type: list("/usr/bin/dund","")
|
||||||
|
## Default: "/usr/bin/dund"
|
||||||
|
## ServiceRestart: bluetooth
|
||||||
|
DUND_EXEC="/usr/bin/dund"
|
||||||
|
|
||||||
|
## Path: Hardware/Bluetooth
|
||||||
|
## Description: Arguments for dun-demon start
|
||||||
|
## Type: list("--listen --persist")
|
||||||
|
## Default: "--listen --persist"
|
||||||
|
## ServiceRestart: bluetooth
|
||||||
|
DUND_ARGS="--listen --persist"
|
||||||
|
|
||||||
|
############ HID2HCI
|
||||||
|
|
||||||
|
## Path: Hardware/Bluetooth
|
||||||
|
## Description: Start HID to HCI mode switching utility
|
||||||
|
## Type: yesno
|
||||||
|
## Default: yes
|
||||||
|
## ServiceRestart: bluetooth
|
||||||
|
HID2HCI_ENABLE="yes"
|
||||||
|
|
||||||
|
## Path: Hardware/Bluetooth
|
||||||
|
## Description: Set responsible utility for HID to HCI mode switching
|
||||||
|
## Type: list("/usr/bin/hidd","")
|
||||||
|
## Default: "/usr/sbin/hid2hci"
|
||||||
|
## ServiceRestart: bluetooth
|
||||||
|
HID2HCI_EXEC="/usr/sbin/hid2hci"
|
||||||
|
|
||||||
|
## Path: Hardware/Bluetooth
|
||||||
|
## Description: Arguments for RHID to HCI mode switching utility
|
||||||
|
## Type: list("--tohci", "")
|
||||||
|
## Default: "--tohci"
|
||||||
|
## ServiceRestart: bluetooth
|
||||||
|
HID2HCI_ARGS="--tohci "
|
||||||
|
|
||||||
|
|
3
bluez-4.4.tar.bz2
Normal file
3
bluez-4.4.tar.bz2
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:1e7069babf36ec664c01f01a2feffd946e2eb7ffd50aa49348f500135976d640
|
||||||
|
size 708828
|
5
bluez.changes
Normal file
5
bluez.changes
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Sep 9 15:08:23 CEST 2008 - seife@suse.de
|
||||||
|
|
||||||
|
- initial checkin of BlueZ 4
|
||||||
|
|
315
bluez.spec
Normal file
315
bluez.spec
Normal file
@ -0,0 +1,315 @@
|
|||||||
|
#
|
||||||
|
# spec file for package bluez (Version 4.4)
|
||||||
|
#
|
||||||
|
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||||
|
#
|
||||||
|
# All modifications and additions to the file contributed by third parties
|
||||||
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
|
# upon. The license for this file, and modifications and additions to the
|
||||||
|
# file, is the same license as for the pristine package itself (unless the
|
||||||
|
# license for the pristine package is not an Open Source License, in which
|
||||||
|
# case the license is the MIT License). An "Open Source License" is a
|
||||||
|
# license that conforms to the Open Source Definition (Version 1.9)
|
||||||
|
# published by the Open Source Initiative.
|
||||||
|
|
||||||
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||||
|
#
|
||||||
|
|
||||||
|
# norootforbuild
|
||||||
|
|
||||||
|
|
||||||
|
Name: bluez
|
||||||
|
BuildRequires: dbus-1-devel flex
|
||||||
|
BuildRequires: glib2-devel libnl-devel libusb-devel
|
||||||
|
BuildRequires: alsa-devel libsndfile-devel
|
||||||
|
BuildRequires: gstreamer-0_10-devel gstreamer-0_10-plugins-base-devel
|
||||||
|
Url: http://bluez.sourceforge.net
|
||||||
|
Version: 4.4
|
||||||
|
Release: 1
|
||||||
|
Summary: Bluetooth Stack for Linux
|
||||||
|
Group: Hardware/Mobile
|
||||||
|
License: GPL v2 or later
|
||||||
|
Group: Hardware/Mobile
|
||||||
|
AutoReqProv: on
|
||||||
|
Source: bluez-%{version}.tar.bz2
|
||||||
|
Source1: bluetooth.init
|
||||||
|
Source2: bluetooth.sysconfig
|
||||||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
|
Obsoletes: bluez-utils <= 3.36
|
||||||
|
%define prefix /usr
|
||||||
|
|
||||||
|
%description
|
||||||
|
The Bluetooth stack for Linux.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Authors:
|
||||||
|
--------
|
||||||
|
Marcel Holtmann <marcel@holtmann.org>
|
||||||
|
Maxim Krasnyansky <maxk@qualcomm.com>
|
||||||
|
Stephen Crane <steve.crane@rococosoft.com>
|
||||||
|
|
||||||
|
%if 0%{?opensuse_bs}
|
||||||
|
%if 0%{?suse_version}
|
||||||
|
%endif
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%package devel
|
||||||
|
License: GPL v2 or later
|
||||||
|
Summary: Files needed for BlueZ development
|
||||||
|
Group: Development/Sources
|
||||||
|
|
||||||
|
%description devel
|
||||||
|
Files needed to develop applications for the BlueZ Bluetooth protocol
|
||||||
|
stack.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Authors:
|
||||||
|
--------
|
||||||
|
Marcel Holtmann <marcel@holtmann.org>
|
||||||
|
Maxim Krasnyansky <maxk@qualcomm.com>
|
||||||
|
Stephen Crane <steve.crane@rococosoft.com>
|
||||||
|
|
||||||
|
%package -n libbluetooth3
|
||||||
|
License: GPL v2 or later
|
||||||
|
Summary: Bluetooth Libraries
|
||||||
|
Group: Hardware/Mobile
|
||||||
|
Obsoletes: bluez-libs
|
||||||
|
Provides: bluez
|
||||||
|
|
||||||
|
%description -n libbluetooth3
|
||||||
|
Bluetooth protocol stack libraries.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Authors:
|
||||||
|
--------
|
||||||
|
Marcel Holtmann <marcel@holtmann.org>
|
||||||
|
Maxim Krasnyansky <maxk@qualcomm.com>
|
||||||
|
Stephen Crane <steve.crane@rococosoft.com>
|
||||||
|
|
||||||
|
%package cups
|
||||||
|
Group: Hardware/Printing
|
||||||
|
License: GPL v2 or later
|
||||||
|
Summary: CUPS Driver for Bluetooth Printers
|
||||||
|
Requires: libbluetooth3 >= %{version}
|
||||||
|
|
||||||
|
%description cups
|
||||||
|
Contains the files required by CUPS for printing to Bluetooth-connected
|
||||||
|
printers.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Authors:
|
||||||
|
--------
|
||||||
|
Marcel Holtmann <marcel@holtmann.org>
|
||||||
|
|
||||||
|
%package test
|
||||||
|
Group: Development/Tools/Debuggers
|
||||||
|
License: GPL v2 or later; X11/MIT
|
||||||
|
Summary: Tools for testing of various Bluetooth-functions
|
||||||
|
Requires: libbluetooth3 >= %{version} python-gobject2 dbus-1-python
|
||||||
|
|
||||||
|
%description test
|
||||||
|
Contains a few tools for testing various bluetooth functions. The
|
||||||
|
BLUETOOTH trademarks are owned by Bluetooth SIG, Inc., U.S.A.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Authors:
|
||||||
|
--------
|
||||||
|
Marcel Holtmann <marcel@holtmann.org>
|
||||||
|
|
||||||
|
%package alsa
|
||||||
|
Group: Productivity/Multimedia/Sound/Utilities
|
||||||
|
License: GPL v2 or later
|
||||||
|
Summary: Bluetooth Sound Support
|
||||||
|
Requires: libbluetooth3 >= %{version}
|
||||||
|
|
||||||
|
%description alsa
|
||||||
|
The package contains libraries for using bluetooth audio services.
|
||||||
|
|
||||||
|
The BLUETOOTH trademarks are owned by Bluetooth SIG, Inc., USA.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Authors:
|
||||||
|
--------
|
||||||
|
Marcel Holtmann <marcel@holtmann.org>
|
||||||
|
and others
|
||||||
|
|
||||||
|
%package gstreamer
|
||||||
|
License: GPL v2 or later
|
||||||
|
Summary: Bluetooth Sound Support
|
||||||
|
Group: Productivity/Multimedia/Sound/Utilities
|
||||||
|
Requires: libbluetooth3 = %{version}
|
||||||
|
|
||||||
|
%description gstreamer
|
||||||
|
The package contains libraries for using bluetooth audio services.
|
||||||
|
|
||||||
|
The BLUETOOTH trademarks are owned by Bluetooth SIG, Inc., USA.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Authors:
|
||||||
|
--------
|
||||||
|
Marcel Holtmann <marcel@holtmann.org>
|
||||||
|
and others
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q
|
||||||
|
cp %{S:1} scripts/
|
||||||
|
%{?suse_update_config:%{suse_update_config -f . }}
|
||||||
|
|
||||||
|
%build
|
||||||
|
#autoreconf -sfi
|
||||||
|
#CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%_prefix --libdir=%_libdir --localstatedir=%_localstatedir
|
||||||
|
#make
|
||||||
|
#%build
|
||||||
|
#cd ../bluez-utils-%{version}
|
||||||
|
# autoreconf -sfi
|
||||||
|
# CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing -g" \
|
||||||
|
CFLAGS="$RPM_OPT_FLAGS -g" \
|
||||||
|
./configure --prefix=%{_prefix} \
|
||||||
|
--mandir=%{_mandir} \
|
||||||
|
--sysconfdir=%{_sysconfdir} \
|
||||||
|
--libdir=%{_libdir} \
|
||||||
|
--libexecdir=/lib \
|
||||||
|
--localstatedir=/var \
|
||||||
|
--enable-gstreamer \
|
||||||
|
--enable-alsa \
|
||||||
|
--enable-usb \
|
||||||
|
--enable-netlink \
|
||||||
|
--enable-tools \
|
||||||
|
--enable-bccmd \
|
||||||
|
--enable-hid2hci \
|
||||||
|
--enable-dfutool \
|
||||||
|
--enable-cups \
|
||||||
|
--enable-test \
|
||||||
|
--enable-manpages \
|
||||||
|
--enable-configfiles \
|
||||||
|
--enable-initscripts \
|
||||||
|
--enable-pcmciarules
|
||||||
|
make %{?jobs:-j %jobs}
|
||||||
|
|
||||||
|
%install
|
||||||
|
make DESTDIR=$RPM_BUILD_ROOT install
|
||||||
|
rm -v $RPM_BUILD_ROOT/%{_libdir}/bluetooth/plugins/*.la $RPM_BUILD_ROOT/%{_libdir}/libbluetooth.la
|
||||||
|
rm -v $RPM_BUILD_ROOT/%{_libdir}/gstreamer-0.10/libgstbluetooth.la
|
||||||
|
mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}/udev/rules.d
|
||||||
|
mv -v $RPM_BUILD_ROOT/%{_sysconfdir}/udev/bluetooth.rules $RPM_BUILD_ROOT/%{_sysconfdir}/udev/rules.d/40-bluetooth.rules
|
||||||
|
mkdir -p $RPM_BUILD_ROOT/var/adm/fillup-templates
|
||||||
|
cp %{S:2} $RPM_BUILD_ROOT/var/adm/fillup-templates/sysconfig.bluetooth
|
||||||
|
|
||||||
|
%clean
|
||||||
|
rm -rf $RPM_BUILD_ROOT
|
||||||
|
|
||||||
|
%post
|
||||||
|
%{fillup_only -n bluetooth}
|
||||||
|
|
||||||
|
%preun
|
||||||
|
%stop_on_removal bluetooth
|
||||||
|
|
||||||
|
%postun
|
||||||
|
%{insserv_cleanup}
|
||||||
|
|
||||||
|
%post -n libbluetooth3 -p /sbin/ldconfig
|
||||||
|
|
||||||
|
%postun -n libbluetooth3 -p /sbin/ldconfig
|
||||||
|
|
||||||
|
%files
|
||||||
|
%defattr(-, root, root)
|
||||||
|
%doc AUTHORS COPYING INSTALL ChangeLog README
|
||||||
|
/etc/init.d/bluetooth
|
||||||
|
%{_bindir}/hcitool
|
||||||
|
%{_bindir}/l2ping
|
||||||
|
%{_bindir}/rfcomm
|
||||||
|
%{_bindir}/sdptool
|
||||||
|
%{_bindir}/ciptool
|
||||||
|
%{_bindir}/dfutool
|
||||||
|
%{_sbindir}/hciattach
|
||||||
|
%{_sbindir}/hciconfig
|
||||||
|
%{_sbindir}/bluetoothd
|
||||||
|
%{_sbindir}/hid2hci
|
||||||
|
#%{_sbindir}/rcbluetooth
|
||||||
|
%{_sbindir}/bccmd
|
||||||
|
%{_sbindir}/hciemu
|
||||||
|
%dir %{_sysconfdir}/udev
|
||||||
|
%dir /lib/udev
|
||||||
|
/lib/udev/*
|
||||||
|
%dir %{_libdir}/bluetooth
|
||||||
|
%dir %{_libdir}/bluetooth/plugins
|
||||||
|
%{_libdir}/bluetooth/plugins/audio.so
|
||||||
|
%{_libdir}/bluetooth/plugins/input.so
|
||||||
|
%{_libdir}/bluetooth/plugins/netlink.so
|
||||||
|
%{_libdir}/bluetooth/plugins/network.so
|
||||||
|
%{_libdir}/bluetooth/plugins/serial.so
|
||||||
|
%{_libdir}/bluetooth/plugins/service.so
|
||||||
|
%doc %{_mandir}/man8/hciattach.8.gz
|
||||||
|
%doc %{_mandir}/man8/hciconfig.8.gz
|
||||||
|
#%doc %{_mandir}/man5/hcid.conf.5.gz
|
||||||
|
%doc %{_mandir}/man8/bluetoothd.8.gz
|
||||||
|
%doc %{_mandir}/man1/pand.1.gz
|
||||||
|
%doc %{_mandir}/man1/dund.1.gz
|
||||||
|
%doc %{_mandir}/man8/hid2hci.8.gz
|
||||||
|
%doc %{_mandir}/man8/bccmd.8.gz
|
||||||
|
%doc %{_mandir}/man1/hcitool.1.gz
|
||||||
|
%doc %{_mandir}/man1/sdptool.1.gz
|
||||||
|
%doc %{_mandir}/man1/ciptool.1.gz
|
||||||
|
%doc %{_mandir}/man1/rfcomm.1.gz
|
||||||
|
%doc %{_mandir}/man1/l2ping.1.gz
|
||||||
|
%doc %{_mandir}/man1/dfutool.1.gz
|
||||||
|
%dir %{_sysconfdir}/bluetooth
|
||||||
|
%config(noreplace) %{_sysconfdir}/bluetooth/main.conf
|
||||||
|
%config(noreplace) %{_sysconfdir}/bluetooth/rfcomm.conf
|
||||||
|
%config %{_sysconfdir}/default/bluetooth
|
||||||
|
/var/adm/fillup-templates/sysconfig.bluetooth
|
||||||
|
%config %{_sysconfdir}/udev/rules.d
|
||||||
|
%config %{_sysconfdir}/dbus-1/system.d/bluetooth.conf
|
||||||
|
#%doc %{_defaultdocdir}/bluez-utils/
|
||||||
|
%dir /var/lib/bluetooth
|
||||||
|
|
||||||
|
%files devel
|
||||||
|
%defattr(-, root, root)
|
||||||
|
/usr/include/bluetooth
|
||||||
|
%{_libdir}/libbluetooth.so
|
||||||
|
%{_libdir}/pkgconfig/bluez.pc
|
||||||
|
#%{_datadir}/aclocal/bluez.m4
|
||||||
|
|
||||||
|
%files -n libbluetooth3
|
||||||
|
%defattr(-, root, root)
|
||||||
|
%{_libdir}/libbluetooth.so.*
|
||||||
|
%doc AUTHORS COPYING INSTALL ChangeLog README
|
||||||
|
|
||||||
|
%files cups
|
||||||
|
%defattr(-,root,root)
|
||||||
|
%dir %{_libdir}/cups
|
||||||
|
%dir %{_libdir}/cups/backend
|
||||||
|
%{_libdir}/cups/backend/bluetooth
|
||||||
|
#%doc %{_defaultdocdir}/bluez-cups
|
||||||
|
|
||||||
|
%files test
|
||||||
|
%defattr(-,root,root)
|
||||||
|
%{_bindir}/l2test
|
||||||
|
%{_bindir}/rctest
|
||||||
|
#%{_bindir}/hsmicro
|
||||||
|
#%{_bindir}/hsplay
|
||||||
|
#%{_bindir}/hstest
|
||||||
|
#%{_bindir}/attest
|
||||||
|
#%{_bindir}/apitest
|
||||||
|
#%{_bindir}/passkey-agent
|
||||||
|
#%{_bindir}/auth-agent
|
||||||
|
#%doc %{_defaultdocdir}/bluez-test
|
||||||
|
|
||||||
|
%files alsa
|
||||||
|
%defattr(-,root,root)
|
||||||
|
%{_libdir}/alsa-lib/*
|
||||||
|
|
||||||
|
%files gstreamer
|
||||||
|
%defattr(-, root, root)
|
||||||
|
%{_libdir}/gstreamer-*/*.so
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Tue Sep 09 2008 seife@suse.de
|
||||||
|
- initial checkin of BlueZ 4
|
Loading…
x
Reference in New Issue
Block a user