forked from pool/bluez
This commit is contained in:
committed by
Git OBS Bridge
parent
6d49778031
commit
56ab2d814e
52
bluez.spec
52
bluez.spec
@@ -1,5 +1,5 @@
|
||||
#
|
||||
# spec file for package bluez (Version 4.42)
|
||||
# spec file for package bluez (Version 4.45)
|
||||
#
|
||||
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
#
|
||||
@@ -21,9 +21,9 @@
|
||||
Name: bluez
|
||||
BuildRequires: dbus-1-devel flex
|
||||
BuildRequires: glib2-devel libnl-devel libusb-devel
|
||||
BuildRequires: alsa-devel libsndfile-devel
|
||||
BuildRequires: alsa-devel libsndfile-devel pkg-config udev
|
||||
Url: http://www.bluez.org
|
||||
Version: 4.42
|
||||
Version: 4.45
|
||||
Release: 1
|
||||
Summary: Bluetooth Stack for Linux
|
||||
Group: Hardware/Mobile
|
||||
@@ -31,21 +31,22 @@ License: GPL v2 or later
|
||||
Group: Hardware/Mobile
|
||||
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
|
||||
Source7: bluetooth.modprobe
|
||||
Source8: bluetooth.rules
|
||||
Patch: bluez-4.41-as_needed.patch
|
||||
Patch1: bluez-4.44-udev-use-helperscript.diff
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
Provides: bluez-utils = 3.36
|
||||
Obsoletes: bluez-utils <= 3.36
|
||||
Provides: bluez-audio = 3.36
|
||||
Obsoletes: bluez-audio <= 3.36
|
||||
Requires: libbluetooth3 = %{version}
|
||||
%if %( echo `rpm -q --queryformat %%{version} udev` ) < 144
|
||||
%define OLD_UDEV 1
|
||||
%else
|
||||
%define OLD_UDEV 0
|
||||
%endif
|
||||
|
||||
%description
|
||||
The Bluetooth stack for Linux.
|
||||
@@ -163,21 +164,14 @@ Authors:
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
%patch
|
||||
cp %{S:1} scripts/
|
||||
%patch1 -p1
|
||||
cp %{S:6} .
|
||||
%{?suse_update_config:%{suse_update_config -f . }}
|
||||
mkdir dbus-apis
|
||||
cp -a doc/*.txt dbus-apis/
|
||||
|
||||
%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} \
|
||||
@@ -199,8 +193,7 @@ CFLAGS="$RPM_OPT_FLAGS -g" \
|
||||
--enable-dund \
|
||||
--enable-manpages \
|
||||
--enable-configfiles \
|
||||
--enable-initscripts \
|
||||
--enable-pcmciarules
|
||||
--enable-pcmcia
|
||||
make %{?jobs:-j %jobs} all
|
||||
|
||||
%install
|
||||
@@ -225,23 +218,15 @@ cd ..
|
||||
rm -v $RPM_BUILD_ROOT/%{_libdir}/bluetooth/plugins/*.la $RPM_BUILD_ROOT/%{_libdir}/libbluetooth.la
|
||||
rm -rvf $RPM_BUILD_ROOT/%{_libdir}/gstreamer-*
|
||||
rm -v $RPM_BUILD_ROOT/%{_libdir}/alsa-lib/*.la
|
||||
install --mode=0755 -D %{S:2} $RPM_BUILD_ROOT/%{_sysconfdir}/init.d/bluetooth-coldplug
|
||||
install --mode=0644 -D %{S:3} $RPM_BUILD_ROOT/var/adm/fillup-templates/sysconfig.bluetooth
|
||||
install --mode=0755 -D %{S:4} $RPM_BUILD_ROOT/lib/udev/bluetooth.sh
|
||||
install --mode=0644 -D %{S:5} $RPM_BUILD_ROOT/usr/share/dbus-1/system-services/org.bluez.service
|
||||
install --mode=0644 -D %{S:7} $RPM_BUILD_ROOT/%{_sysconfdir}/modprobe.d/50-bluetooth.conf
|
||||
install --mode=0644 -D %{S:8} $RPM_BUILD_ROOT/%{_sysconfdir}/udev/rules.d/40-bluetooth.rules
|
||||
#mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}/udev/rules.d
|
||||
mv -v $RPM_BUILD_ROOT/etc/udev/bluetooth-hid2hci.rules $RPM_BUILD_ROOT/%{_sysconfdir}/udev/rules.d/41-bluetooth-hid2hci.rules
|
||||
mv -v $RPM_BUILD_ROOT/etc/udev/bluetooth-serial.rules $RPM_BUILD_ROOT/%{_sysconfdir}/udev/rules.d/42-bluetooth-serial.rules
|
||||
ln -s ../../etc/init.d/bluetooth $RPM_BUILD_ROOT/usr/sbin/rcbluetooth
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
%post
|
||||
%{fillup_only -n bluetooth}
|
||||
/sbin/insserv -f /etc/init.d/bluetooth-coldplug
|
||||
|
||||
%preun
|
||||
%stop_on_removal bluetooth
|
||||
@@ -256,8 +241,6 @@ rm -rf $RPM_BUILD_ROOT
|
||||
%files
|
||||
%defattr(-, root, root)
|
||||
%doc AUTHORS COPYING ChangeLog README README.SUSE dbus-apis
|
||||
/etc/init.d/bluetooth
|
||||
/etc/init.d/bluetooth-coldplug
|
||||
%{_bindir}/hcitool
|
||||
%{_bindir}/l2ping
|
||||
%{_bindir}/rfcomm
|
||||
@@ -268,11 +251,13 @@ rm -rf $RPM_BUILD_ROOT
|
||||
%{_sbindir}/hciconfig
|
||||
%{_sbindir}/bluetoothd
|
||||
%{_sbindir}/hid2hci
|
||||
%{_sbindir}/rcbluetooth
|
||||
%{_sbindir}/bccmd
|
||||
%dir %{_sysconfdir}/udev
|
||||
%dir /lib/udev
|
||||
/lib/udev/*
|
||||
%if 0%{OLD_UDEV}
|
||||
%dir %{_sysconfdir}/udev/rules.d
|
||||
%config %{_sysconfdir}/udev/rules.d/*
|
||||
%endif
|
||||
%dir %{_libdir}/bluetooth
|
||||
%dir %{_libdir}/bluetooth/plugins
|
||||
%{_libdir}/bluetooth/plugins/audio.so
|
||||
@@ -286,20 +271,19 @@ rm -rf $RPM_BUILD_ROOT
|
||||
%doc %{_mandir}/man8/bluetoothd.8.gz
|
||||
%doc %{_mandir}/man8/hid2hci.8.gz
|
||||
%doc %{_mandir}/man8/bccmd.8.gz
|
||||
%doc %{_mandir}/man8/l2ping.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
|
||||
%doc %{_mandir}/man1/hciemu.1.gz
|
||||
%doc %{_mandir}/man1/rctest.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
|
||||
%config /usr/share/dbus-1/system-services/org.bluez.service
|
||||
#%doc %{_defaultdocdir}/bluez-utils/
|
||||
%dir /var/lib/bluetooth
|
||||
%dir %{_sysconfdir}/modprobe.d
|
||||
|
Reference in New Issue
Block a user