File bluez-gstreamer.spec of Package bluez

#
# spec file for package bluez-gstreamer (Version 4.22)
#
# Copyright (c) 2009 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-gstreamer
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://www.bluez.org
Version:        4.22
Release:        6.<RELEASE1>
Summary:        Bluetooth Sound Support
Group:          Productivity/Multimedia/Sound/Utilities
License:        GPL v2 or later
Group:          Productivity/Multimedia/Sound/Utilities
AutoReqProv:    on
Source:         http://www.kernel.org/pub/linux/bluetooth/bluez-%{version}.tar.bz2
Source1:        bluetooth.init
Source2:        bluetooth-coldplug.init
Source3:        bluetooth.sysconfig
Source4:        bluetooth.sh
Source5:        org.bluez.service
Source6:        README.SUSE
Patch1:         bluez-4.20-bluetooth.rules.diff
Patch2:         bluez-4.22-dbus-config-fix.diff
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Requires:       libbluetooth3 = %{version}
Provides:       bluez-audio:%_libdir/gstreamer-0.10/libgstbluetooth.so

%description
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, see AUTHORS in the documentation of the "bluez" package.

%prep
%setup -n bluez-%{version} -q
%patch1 -p0
%patch2 -p1
cp %{S:1} scripts/
cp %{S:6} .
%{?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-pand		\
			--enable-dund		\
			--enable-manpages	\
			--enable-configfiles	\
			--enable-initscripts	\
			--enable-pcmciarules
make %{?jobs:-j %jobs} all

%install
make DESTDIR=$RPM_BUILD_ROOT install
rm -rf $RPM_BUILD_ROOT/usr/[^l]* $RPM_BUILD_ROOT/[^u]* $RPM_BUILD_ROOT/%{_libdir}/[^g]*
rm -rf $RPM_BUILD_ROOT/%{_libdir}/pkgconfig $RPM_BUILD_ROOT/%{_libdir}/*bluetooth* $RPM_BUILD_ROOT/usr/include
rm $RPM_BUILD_ROOT/%{_libdir}/*/*.la

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-, root, root)
%{_libdir}/gstreamer-*/*.so

%changelog
* Sun Nov 23 2008 seife@suse.de
- update to bluez-4.19:
  - Fix D-Bus signal emmissions for CreateDevice.
  - Fix issues with UUID probing.
  - Fix +BSRF syntax issue.
  - Add Pairable adapter property.
  - Add sdp_copy_record() library function.
* Tue Nov 11 2008 seife@suse.de
- add bluez-compat package, containing pand and dund (bnc#435591)
* Mon Nov 10 2008 seife@suse.de
- add DBus API documentation files to the bluez package
* Sun Nov 09 2008 seife@suse.de
- update to bluez-4.18:
  - Fix release before close issue with RFCOMM TTYs.
  - Fix Connected property on input interface.
  - Fix DeviceFound signals during initial name resolving.
  - Fix service discovery handling.
  - Fix duplicate UUID detection.
  - Fix SBC gain mismatch and decoding handling.
  - Add more options to SBC encoder and decoder.
  - Add special any adapter object for service interface.
  - Add variable prefix to adapter and device object paths.
* Mon Nov 03 2008 seife@suse.de
- fix START_SERVICES=no and wrong "Default:"-comment (bnc#435489)
* Mon Oct 27 2008 seife@suse.de
- update to bluez-4.17:
  - Fix SBC encoder not writing last frame.
  - Fix missing timer for A2DP suspend.
  - Add more supported devices to hid2hci utility.
  - Add additional functionality to Handsfree support.
* Wed Oct 22 2008 seife@suse.de
- update to bluez-4.16:
  "This release fixes two potential crashes within bluetoothd.
  It is strongly advised to upgrade to this version."
  - Fix wrong parameter usage of watch callbacks.
  - Fix parameters for callback upon path removal.
  - Fix unloading of adapter drivers.
  ver 4.15:
  - Fix various A2DP state machine issues.
  - Fix some issues with the Handsfree error reporting.
  - Fix format string warnings with recent GCC versions.
  - Remove dependency on GModule.
* Sat Oct 18 2008 seife@suse.de
- update to bluez-4.14:
  - Fix types of property arrays.
  - Fix potential crash with input devices.
  - Fix PS3 BD remote input event generation.
  - Allow dynamic adapter driver registration.
  - Update udev rules.
* Tue Oct 14 2008 seife@suse.de
- split up bluez and bluez-gstreamer to avoid circular dependencies
* Mon Oct 13 2008 seife@suse.de
- update to bluez-4.13:
  - Fix service discovery and UUID handling.
  - Fix bonding issues with Simple Pairing.
  - Fix file descriptor misuse of SCO connections.
  - Fix various memory leaks in the device handling.
  - Fix AVCTP disconnect handling.
  - Fix GStreamer modes for MP3 encoding.
  - Add operator selection to Handsfree support.
* Mon Oct 06 2008 seife@suse.de
- update to bluez-4.12:
  - Fix crash with missing icon value.
  - Fix error checks of HAL plugin.
  - Fix SCO server socket cleanup on exit.
  - Fix memory leaks from DBusPendingCall.
  - Fix handling of pending authorization requests.
  - Fix missing protocol UUIDs in record pattern.
* Sun Oct 05 2008 seife@suse.de
- update to bluez-4.11:
  - Change SCO server socket into a generic one. Should fix
  connection issues with headsets.
  - Fix uninitialized reply of multiple GetProperties methods.
* Sat Oct 04 2008 seife@suse.de
- update to bluez-4.10:
  - Fix memory leaks with HAL messages.
  - Add more advanced handsfree features.
  - Add properties to audio, input and network interfaces.
  - Stop device discovery timer on device removal.
* Mon Sep 29 2008 seife@suse.de
- update to bluez-4.9:
  - Fix signals for Powered and Discoverable properties.
  - Fix handling of Alias and Icon properties.
  - Fix duplicate entries for service UUIDs.
  Mon Sep2y 09:36:31 CEST 2008 - seife@suse.de
- update to bluez-4.8:
  - fix two bluetoothd crashes during device pairing
  - reenable HAL plugin, no need for libhal anymore
  - hciconfig and hcitool now show all extended features pages
  (important because page 1 indicates simple pairing support)
* Sat Sep 27 2008 seife@suse.de
- fix a crash when e.g. connecting a new input device
* Fri Sep 26 2008 seife@suse.de
- update to bluez-4.7:
  - Fix pairing and service discovery logic.
  - Fix crashes during suspend and resume.
  - Fix race condition within devdown mode.
  - Add RequestSession and ReleaseSession methods.
  - Add Powered and Discoverable properties.
  - Add Devices property and deprecate ListDevices.
  - Add workaround for a broken carkit from Nokia.
- removed bluez-4.6-fix-bluetoothd-crash-after-suspend.diff
* Thu Sep 25 2008 seife@suse.de
- fix a bluetoothd crash after resume
* Tue Sep 23 2008 seife@suse.de
- use /dev/shm instead of /var/run for the coldplug-marker, since
  /var/run is cleaned up later in the boot process
* Tue Sep 23 2008 seife@suse.de
- add more useful stuff to bluez-test
- add dbus-activation of bluetoothd
- use dbus-activation to start on adapter hotplug event
- add bluetooth-coldplug init script to make sure that bluetoothd
  is started when adapter is plugged in before DBus is started
- add "Provides: bluez-utils" to bluez, to help the solver
* Wed Sep 17 2008 dmueller@suse.de
- add missing splitprovides
- fix bluez-utils rename
- remove bogus bluez provide
* Mon Sep 15 2008 seife@suse.de
- update to bluez-4.6:
  * add a smooth upgrade path of configured input devices from
  BlueZ 3.x to the 4.x series
  * fix a couple of regressions with the adapter initialization and
  the input service
  Detailed changelog:
  version 4.6:
  * Fix Device ID record handling.
  * Fix service browsing and storage.
  * Fix authentication and encryption for input devices.
  * Fix adapter name initialization.
  version 4.5:
  * Fix initialization issue with new adapters.
  * Send HID authentication request without blocking.
  * Hide the verbose SDP debug behind SDP_DEBUG.
  * Add extra UUIDs for service discovery.
  * Add SCO server socket listener.
  * Add authorization support to service plugin.
* Mon Sep 15 2008 dmueller@suse.de
- fix devel package requires
* Tue Sep 09 2008 seife@suse.de
- initial checkin of BlueZ 4
openSUSE Build Service is sponsored by