# # 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: 2 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 Maxim Krasnyansky Stephen Crane %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 Requires: libbluetooth3 = %{version} %description devel Files needed to develop applications for the BlueZ Bluetooth protocol stack. Authors: -------- Marcel Holtmann Maxim Krasnyansky Stephen Crane %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 Maxim Krasnyansky Stephen Crane %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 %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 %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 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 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 * Mon Sep 15 2008 dmueller@suse.de - fix devel package requires * Tue Sep 09 2008 seife@suse.de - initial checkin of BlueZ 4