bluez/bluez.spec

306 lines
8.6 KiB
RPMSpec
Raw Normal View History

2008-09-12 17:00:29 +00:00
Summary: Bluetooth utilities
2008-09-11 02:10:24 +00:00
Name: bluez
2009-02-09 09:42:50 +00:00
Version: 4.29
2009-01-03 17:59:23 +00:00
Release: 1%{?dist}
2008-09-11 02:10:24 +00:00
License: GPLv2+
2008-09-12 17:00:29 +00:00
Group: Applications/System
2008-09-11 02:10:24 +00:00
Source: http://www.kernel.org/pub/linux/bluetooth/%{name}-%{version}.tar.gz
Source1: bluetooth.init
Source2: bluetooth.conf
Source3: bluez-uinput.modules
2008-09-11 02:10:24 +00:00
Patch1: bluez-utils-oui-usage.patch
2008-12-01 09:21:08 +00:00
Patch2: 0001-Add-icon-for-other-audio-device.patch
2008-09-11 02:10:24 +00:00
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
URL: http://www.bluez.org/
BuildRequires: flex
BuildRequires: dbus-devel >= 0.90
BuildRequires: libusb-devel, glib2-devel, alsa-lib-devel
BuildRequires: gstreamer-plugins-base-devel, gstreamer-devel
BuildRequires: libsndfile-devel
ExcludeArch: s390 s390x
2008-09-12 17:00:29 +00:00
Obsoletes: bluez-pan < 4.0, bluez-sdp < 4.0
Requires: initscripts, bluez-libs = %{version}
Requires: dbus >= 0.60
Requires: hwdata >= 0.215
Requires: dbus-bluez-pin-helper
Requires(preun): /sbin/chkconfig, /sbin/service
Requires(post): /sbin/chkconfig, /sbin/service
Obsoletes: bluez-utils < 4.5-2
Provides: bluez-utils = %{version}-%{release}
2008-09-11 02:10:24 +00:00
%description
2008-09-12 17:00:29 +00:00
Utilities for use in Bluetooth applications:
- hcitool
- hciattach
- hciconfig
- bluetoothd
- l2ping
- start scripts (Red Hat)
- pcmcia configuration files
2008-09-11 02:10:24 +00:00
The BLUETOOTH trademarks are owned by Bluetooth SIG, Inc., U.S.A.
%package libs
Summary: Libraries for use in Bluetooth applications
Group: System Environment/Libraries
%package libs-devel
Summary: Development libraries for Bluetooth applications
Group: Development/Libraries
Requires: bluez-libs = %{version}
Requires: pkgconfig
Obsoletes: bluez-sdp-devel < 4.0
2008-09-12 17:00:29 +00:00
%package cups
2008-09-11 02:10:24 +00:00
Summary: CUPS printer backend for Bluetooth printers
Group: System Environment/Daemons
2008-09-12 22:29:05 +00:00
Obsoletes: bluez-utils-cups < 4.5-2
2008-09-12 17:00:29 +00:00
Provides: bluez-utils-cups = %{version}-%{release}
2008-09-11 02:10:24 +00:00
Requires: bluez-libs = %{version}
Requires: cups
2008-09-12 17:00:29 +00:00
%package gstreamer
2008-09-11 02:10:24 +00:00
Summary: GStreamer support for SBC audio format
Group: System Environment/Daemons
2008-09-12 22:29:05 +00:00
Obsoletes: bluez-utils-gstreamer < 4.5-2
2008-09-12 17:00:29 +00:00
Provides: bluez-utils-gstreamer = %{version}-%{release}
2008-09-11 02:10:24 +00:00
Requires: bluez-libs = %{version}
2008-09-12 17:00:29 +00:00
%package alsa
2008-09-11 02:10:24 +00:00
Summary: ALSA support for Bluetooth audio devices
2008-09-12 22:29:05 +00:00
Obsoletes: bluez-utils-alsa < 4.5-2
Provides: bluez-utils-alsa = %{version}-%{release}
2008-09-11 02:10:24 +00:00
Group: System Environment/Daemons
Requires: bluez-libs = %{version}
2008-09-12 17:00:29 +00:00
%description cups
2008-09-11 02:10:24 +00:00
This package contains the CUPS backend
2008-09-12 17:00:29 +00:00
%description gstreamer
2008-09-11 02:10:24 +00:00
This package contains gstreamer plugins for the Bluetooth SBC audio format
2008-09-12 17:00:29 +00:00
%description alsa
2008-09-11 02:10:24 +00:00
This package contains ALSA support for Bluetooth audio devices
%description libs
Libraries for use in Bluetooth applications.
%description libs-devel
bluez-libs-devel contains development libraries and headers for
use in Bluetooth applications.
%prep
%setup -q
%patch1 -p0 -b .oui
2008-12-01 09:21:08 +00:00
%patch2 -p1
2008-09-11 02:10:24 +00:00
%build
%configure --enable-cups --enable-hid2hci --enable-dfutool --enable-tools --enable-bccmd --enable-gstreamer --enable-hidd --enable-pand --enable-dund
make
%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT
/sbin/ldconfig -n $RPM_BUILD_ROOT/%{_libdir}
# Remove autocrap and libtool droppings
rm -f $RPM_BUILD_ROOT/%{_libdir}/*.la \
$RPM_BUILD_ROOT/%{_libdir}/alsa-lib/*.la \
$RPM_BUILD_ROOT/%{_libdir}/bluetooth/plugins/*.la \
$RPM_BUILD_ROOT/%{_libdir}/gstreamer-0.10/*.la
install -D -m0755 %SOURCE1 $RPM_BUILD_ROOT%{_sysconfdir}/rc.d/init.d/bluetooth
install -D -m0644 %SOURCE2 $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/bluetooth
# Remove the cups backend from libdir, and install it in /usr/lib whatever the install
rm -rf ${RPM_BUILD_ROOT}%{_libdir}/cups
install -D -m0755 cups/bluetooth ${RPM_BUILD_ROOT}/usr/lib/cups/backend/bluetooth
install -D -m0755 scripts/bluetooth.rules ${RPM_BUILD_ROOT}/%{_sysconfdir}/udev/rules.d/97-bluetooth-serial.rules
install -D -m0755 scripts/bluetooth_serial ${RPM_BUILD_ROOT}/lib/udev/bluetooth_serial
install -D -m0755 %{SOURCE3} $RPM_BUILD_ROOT/%{_sysconfdir}/sysconfig/modules/bluez-uinput.modules
2008-10-27 17:30:54 +00:00
install -d -m0755 $RPM_BUILD_ROOT/%{_localstatedir}/lib/bluetooth
2008-09-11 02:10:24 +00:00
%clean
rm -rf $RPM_BUILD_ROOT
%post libs -p /sbin/ldconfig
2008-09-12 17:00:29 +00:00
%post
2008-09-11 02:10:24 +00:00
/sbin/chkconfig --add bluetooth
if [ "$1" -ge "1" ]; then
/sbin/service bluetooth condrestart >/dev/null 2>&1 || :
fi
exit 0
%postun libs -p /sbin/ldconfig
2008-09-12 17:00:29 +00:00
%preun
2008-09-11 02:10:24 +00:00
if [ "$1" = "0" ]; then
/sbin/service bluetooth stop >/dev/null 2>&1 || :
/sbin/chkconfig --del bluetooth
fi
2008-09-12 17:00:29 +00:00
%files
2008-09-11 02:10:24 +00:00
%defattr(-, root, root)
%{_bindir}/*
%{_sbindir}/*
%{_mandir}/man1/*
%{_mandir}/man8/*
%dir %{_sysconfdir}/bluetooth/
%config(noreplace) %{_sysconfdir}/bluetooth/*
%config(noreplace) %{_sysconfdir}/sysconfig/*
%config %{_sysconfdir}/dbus-1/system.d/bluetooth.conf
%{_libdir}/bluetooth/plugins/*.so
/lib/udev/bluetooth_serial
%{_sysconfdir}/udev/rules.d/97-bluetooth-serial.rules
/etc/rc.d/init.d/*
2008-10-27 17:30:54 +00:00
%{_localstatedir}/lib/bluetooth
2008-09-11 02:10:24 +00:00
%files libs
%defattr(-, root, root)
%{_libdir}/libbluetooth.so.*
%doc AUTHORS COPYING INSTALL ChangeLog README
%files libs-devel
%defattr(-, root, root)
%{_libdir}/libbluetooth.so
%dir %{_includedir}/bluetooth
%{_includedir}/bluetooth/*
%{_libdir}/pkgconfig/bluez.pc
2008-09-12 17:00:29 +00:00
%files cups
2008-09-11 02:10:24 +00:00
%defattr(-, root, root)
/usr/lib/cups/backend/bluetooth
2008-09-12 17:00:29 +00:00
%files gstreamer
2008-09-11 02:10:24 +00:00
%defattr(-, root, root)
%{_libdir}/gstreamer-*/*.so
2008-09-12 17:00:29 +00:00
%files alsa
2008-09-11 02:10:24 +00:00
%defattr(-, root, root)
%{_libdir}/alsa-lib/*.so
%changelog
2009-02-09 09:42:50 +00:00
* Mon Feb 09 2009 - Bastien Nocera <bnocera@redhat.com> - 4.29-1
- Update to 4.29
2009-02-02 11:19:50 +00:00
* Mon Feb 02 2009 - Bastien Nocera <bnocera@redhat.com> - 4.28-1
- Update to 4.28
2009-01-19 11:10:52 +00:00
* Mon Jan 19 2009 - Bastien Nocera <bnocera@redhat.com> - 4.27-1
- Update to 4.27
2009-01-09 10:55:46 +00:00
* Fri Jan 09 2009 - Bastien Nocera <bnocera@redhat.com> - 4.26-1
- Update to 4.26
2009-01-03 17:59:23 +00:00
* Sat Jan 03 2009 - Bastien Nocera <bnocera@redhat.com> - 4.25-1
- Update to 4.25
* Tue Dec 09 2008 - Bastien Nocera <bnocera@redhat.com> - 4.22-2
- Fix D-Bus configuration for latest D-Bus (#475069)
2008-12-08 09:48:21 +00:00
* Mon Dec 08 2008 - Bastien Nocera <bnocera@redhat.com> - 4.22-1
- Update to 4.22
2008-12-01 09:21:08 +00:00
* Mon Dec 01 2008 - Bastien Nocera <bnocera@redhat.com> - 4.21-1
- Update to 4.21
2008-11-21 16:47:05 +00:00
* Fri Nov 21 2008 - Bastien Nocera <bnocera@redhat.com> - 4.19-1
- Update to 4.19
2008-11-17 14:47:31 +00:00
* Mon Nov 17 2008 - Bastien Nocera <bnocera@redhat.com> - 4.18-1
- Update to 4.18
2008-10-27 17:30:54 +00:00
* Mon Oct 27 2008 - Bastien Nocera <bnocera@redhat.com> - 4.17-2
- Own /var/lib/bluetooth (#468717)
2008-10-26 12:13:06 +00:00
* Sun Oct 26 2008 - Bastien Nocera <bnocera@redhat.com> - 4.17-1
- Update to 4.17
* Tue Oct 21 2008 - Bastien Nocera <bnocera@redhat.com> - 4.16-1
2008-10-21 18:29:20 +00:00
- Update to 4.16
2008-10-20 00:28:06 +00:00
* Mon Oct 20 2008 - Bastien Nocera <bnocera@redhat.com> - 4.15-1
- Update to 4.15
* Fri Oct 17 2008 - Bastien Nocera <bnocera@redhat.com> - 4.14-2
- Add script to autoload uinput on startup, so the PS3 remote
works out-of-the-box
2008-10-17 00:22:15 +00:00
* Fri Oct 17 2008 - Bastien Nocera <bnocera@redhat.com> - 4.14-1
- Update to 4.14
2008-10-14 21:10:10 +00:00
* Tue Oct 14 2008 - Bastien Nocera <bnocera@redhat.com> - 4.13-3
- Update udev rules (#246840)
* Mon Oct 13 2008 - Bastien Nocera <bnocera@redhat.com> - 4.13-2
- Fix PS3 BD remote input event generation
2008-10-10 16:28:48 +00:00
* Fri Oct 10 2008 - Bastien Nocera <bnocera@redhat.com> - 4.13-1
- Update to 4.13
2008-10-06 17:53:06 +00:00
* Mon Oct 06 2008 - Bastien Nocera <bnocera@redhat.com> - 4.12-1
- Update to 4.12
2008-10-04 18:47:16 +00:00
* Sat Oct 04 2008 - Bastien Nocera <bnocera@redhat.com> - 4.11-1
- Update to 4.11
2008-10-03 07:33:46 +00:00
* Fri Oct 03 2008 - Bastien Nocera <bnocera@redhat.com> - 4.10-1
- Update to 4.10
2008-09-29 12:14:52 +00:00
* Mon Sep 29 2008 - Bastien Nocera <bnocera@redhat.com> - 4.9-1
- Update to 4.9
2008-09-29 08:46:49 +00:00
* Mon Sep 29 2008 - Bastien Nocera <bnocera@redhat.com> - 4.8-1
- Update to 4.8
2008-09-26 13:03:53 +00:00
* Fri Sep 26 2008 - Bastien Nocera <bnocera@redhat.com> - 4.7-1
- Update to 4.7
2008-09-25 03:04:45 +00:00
* Wed Sep 24 2008 - Bastien Nocera <bnocera@redhat.com> - 4.6-4
- Fix patch application
2008-09-25 00:13:13 +00:00
* Wed Sep 24 2008 - Bastien Nocera <bnocera@redhat.com> - 4.6-3
- Add fuzz
* Wed Sep 24 2008 - Bastien Nocera <bnocera@redhat.com> - 4.6-2
- Fix possible crasher on resume from suspend
2008-09-14 21:11:24 +00:00
* Sun Sep 14 2008 - David Woodhouse <David.Woodhouse@intel.com> - 4.6-1
- Update to 4.6
2008-09-13 04:07:40 +00:00
* Fri Sep 12 2008 - David Woodhouse <David.Woodhouse@intel.com> - 4.5-4
- SDP browse fixes
2008-09-12 22:29:05 +00:00
* Fri Sep 12 2008 - David Woodhouse <David.Woodhouse@intel.com> - 4.5-3
- Bluez-alsa needs to provide/obsolete bluez-utils-alsa
- Use versioned Obsoletes:
2008-09-12 17:00:29 +00:00
* Fri Sep 12 2008 - David Woodhouse <David.Woodhouse@intel.com> - 4.5-2
- Change main utils package name to 'bluez'; likewise its subpackages
- Remove references to obsolete initscripts (hidd,pand,dund)
* Fri Sep 12 2008 - Bastien Nocera <bnocera@redhat.com> - 4.5-1
- Update to 4.5
- Fix initscript to actually start bluetoothd by hand
- Add chkconfig information to the initscript
2008-09-11 02:10:24 +00:00
* Tue Sep 09 2008 - David Woodhouse <David.Woodhouse@intel.com> - 4.4-2
- Fix rpmlint problems
- Fix input device handling
* Tue Sep 09 2008 - Bastien Nocera <bnocera@redhat.com> - 4.4-1
- Update to 4.4
- Update source address, and remove unneeded deps (thanks Marcel)
* Mon Aug 11 2008 - Bastien Nocera <bnocera@redhat.com> - 4.1-1
- Initial build