337 lines
10 KiB
RPMSpec
337 lines
10 KiB
RPMSpec
|
Name: bluez4
|
||
|
Version: 4.101
|
||
|
Release: 4mamba
|
||
|
Summary: Userspace tools for the Bluetooth wireless library for Linux
|
||
|
Group: Applications/Communication
|
||
|
Vendor: openmamba
|
||
|
Distribution: openmamba
|
||
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
||
|
URL: http://www.bluez.org
|
||
|
Source: http://www.kernel.org/pub/linux/bluetooth/bluez-%{version}.tar.xz
|
||
|
Patch0: bluez-utils-2.11-config.patch
|
||
|
Patch1: bluez-utils-3.9-initscript.patch
|
||
|
Patch2: bluez-4.59-oui.patch
|
||
|
Patch3: bluez-4.59-utf8.patch
|
||
|
Patch4: bluez-4.59-wacom.patch
|
||
|
Patch5: bluez-4.59-cf.patch
|
||
|
License: GPL
|
||
|
## AUTOBUILDREQ-BEGIN
|
||
|
BuildRequires: glibc-devel
|
||
|
BuildRequires: libalsa-devel
|
||
|
BuildRequires: libdbus-devel
|
||
|
BuildRequires: libglib-devel
|
||
|
%if "%{stage1}" != "1"
|
||
|
BuildRequires: libgst-plugins-base010-devel
|
||
|
BuildRequires: libgstreamer010-devel
|
||
|
%endif
|
||
|
BuildRequires: libreadline-devel
|
||
|
BuildRequires: libudev-devel
|
||
|
BuildRequires: libusb-compat-devel
|
||
|
BuildRequires: libxml2-devel
|
||
|
## AUTOBUILDREQ-END
|
||
|
BuildRequires: flex
|
||
|
BuildRequires: bison
|
||
|
BuildRequires: libcap-ng-devel
|
||
|
Requires: bluez-firmware
|
||
|
Requires: libbluetooth4 = %{version}-%{release}
|
||
|
Provides: bluez4-utils
|
||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
||
|
|
||
|
%description
|
||
|
Userspace tools for the Bluetooth wireless library for Linux.
|
||
|
|
||
|
%package -n libbluetooth4
|
||
|
Group: System/Libraries
|
||
|
Summary: The Bluetooth wireless library for Linux
|
||
|
|
||
|
%description -n libbluetooth4
|
||
|
The Bluetooth wireless library for Linux.
|
||
|
|
||
|
%package -n libbluetooth4-devel
|
||
|
Group: Development/Libraries
|
||
|
Summary: Static libraries and headers for libbluetooth
|
||
|
Requires: libbluetooth4 = %{version}-%{release}
|
||
|
Provides: libbluez-devel
|
||
|
Obsoletes: libbluez-devel
|
||
|
|
||
|
%description -n libbluetooth4-devel
|
||
|
The Bluetooth wireless library for Linux.
|
||
|
|
||
|
This package contains static libraries and header files need for development.
|
||
|
|
||
|
%prep
|
||
|
%setup -q -n bluez-%{version}
|
||
|
#%patch0 -p1
|
||
|
#%patch1 -p1
|
||
|
#%patch2 -p0
|
||
|
#%patch3 -p1
|
||
|
%patch4 -p1
|
||
|
%patch5 -p1
|
||
|
|
||
|
%build
|
||
|
%configure \
|
||
|
--libexecdir=/lib \
|
||
|
--enable-health \
|
||
|
--enable-pnat \
|
||
|
--enable-attrib \
|
||
|
%if "%{stage1}" == "1"
|
||
|
--disable-gstreamer \
|
||
|
%else
|
||
|
--enable-gstreamer \
|
||
|
%endif
|
||
|
--enable-alsa \
|
||
|
--enable-usb \
|
||
|
--enable-tracer \
|
||
|
--enable-tools \
|
||
|
--enable-bccmd \
|
||
|
--enable-pcmcia \
|
||
|
--enable-hid2hci \
|
||
|
--enable-dfutool \
|
||
|
--enable-hidd \
|
||
|
--enable-pand \
|
||
|
--enable-dund \
|
||
|
--enable-cups \
|
||
|
--enable-udevrules \
|
||
|
--enable-configfiles \
|
||
|
--disable-hal \
|
||
|
--enable-capng \
|
||
|
--enable-input \
|
||
|
--enable-audio \
|
||
|
--enable-serial \
|
||
|
--enable-network
|
||
|
|
||
|
# --enable-initscripts \
|
||
|
# --enable-pcmciarules
|
||
|
|
||
|
%make cupsdir=%{_prefix}/lib/cups/backend
|
||
|
|
||
|
%install
|
||
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||
|
%makeinstall \
|
||
|
cupsdir=%{_prefix}/lib/cups/backend \
|
||
|
rulesdir=%{_sysconfdir}/udev/rules.d
|
||
|
|
||
|
install -D -m0644 audio/audio.conf %{buildroot}%{_sysconfdir}/bluetooth/audio.conf
|
||
|
install -D -m0644 input/input.conf %{buildroot}%{_sysconfdir}/bluetooth/input.conf
|
||
|
install -D -m0644 serial/serial.conf %{buildroot}%{_sysconfdir}/bluetooth/serial.conf
|
||
|
|
||
|
#install -D -m755 scripts/bluetooth.init \
|
||
|
# %{buildroot}%{_initrddir}/bluetooth
|
||
|
#install -D -m644 scripts/bluetooth.default \
|
||
|
# %{buildroot}%{_sysconfdir}/sysconfig/bluetooth
|
||
|
|
||
|
%clean
|
||
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||
|
|
||
|
%post
|
||
|
# new install
|
||
|
#
|
||
|
# disable service by default as it is started by udev now
|
||
|
/sbin/chkconfig --del bluetooth 2>&1 &>/dev/null
|
||
|
:
|
||
|
|
||
|
%post -n libbluetooth4 -p /sbin/ldconfig
|
||
|
%postun -n libbluetooth4 -p /sbin/ldconfig
|
||
|
|
||
|
%preun
|
||
|
if [ $1 -eq 0 ]; then
|
||
|
systemctl -q stop bluetooth
|
||
|
systemctl -q disable bluetooth
|
||
|
fi
|
||
|
:
|
||
|
|
||
|
%posttrans
|
||
|
if [ $1 -ge 1 ]; then
|
||
|
systemctl -q daemon-reload
|
||
|
systemctl -q enable bluetooth
|
||
|
systemctl -q start bluetooth
|
||
|
fi
|
||
|
:
|
||
|
|
||
|
%files
|
||
|
%defattr(-,root,root)
|
||
|
%config(noreplace) %{_sysconfdir}/bluetooth/*
|
||
|
#%config(noreplace) %{_sysconfdir}/sysconfig/bluetooth
|
||
|
%config %{_sysconfdir}/dbus-1/system.d/bluetooth.conf
|
||
|
#%config %{_sysconfdir}/default/bluetooth
|
||
|
#%{_sysconfdir}/udev/rules.d/97-bluetooth.rules
|
||
|
%{_sysconfdir}/udev/rules.d/97-bluetooth-hid2hci.rules
|
||
|
%{_sysconfdir}/udev/rules.d/97-bluetooth-serial.rules
|
||
|
#%{_initrddir}/bluetooth
|
||
|
/lib/udev/bluetooth_serial
|
||
|
/lib/udev/hid2hci
|
||
|
/lib/systemd/system/bluetooth.service
|
||
|
%{_datadir}/dbus-1/system-services/org.bluez.service
|
||
|
%{_bindir}/*
|
||
|
%{_sbindir}/*
|
||
|
%{_datadir}/alsa/bluetooth.conf
|
||
|
%{_mandir}/man1/*
|
||
|
%{_mandir}/man8/*
|
||
|
%doc AUTHORS COPYING
|
||
|
|
||
|
%files -n libbluetooth4
|
||
|
%defattr(-,root,root)
|
||
|
%{_libdir}/libbluetooth.so.*
|
||
|
#%{_libdir}/bluetooth/plugins/audio.la
|
||
|
#%{_libdir}/bluetooth/plugins/audio.so
|
||
|
#%{_libdir}/bluetooth/plugins/hal.la
|
||
|
#%{_libdir}/bluetooth/plugins/hal.so
|
||
|
#%{_libdir}/bluetooth/plugins/input.la
|
||
|
#%{_libdir}/bluetooth/plugins/input.so
|
||
|
#%{_libdir}/bluetooth/plugins/netlink.la
|
||
|
#%{_libdir}/bluetooth/plugins/netlink.so
|
||
|
#%{_libdir}/bluetooth/plugins/network.la
|
||
|
#%{_libdir}/bluetooth/plugins/network.so
|
||
|
#%{_libdir}/bluetooth/plugins/serial.la
|
||
|
#%{_libdir}/bluetooth/plugins/serial.so
|
||
|
#%{_libdir}/bluetooth/plugins/service.la
|
||
|
#%{_libdir}/bluetooth/plugins/service.so
|
||
|
%{_libdir}/alsa-lib/libasound_module_ctl_bluetooth.la
|
||
|
%{_libdir}/alsa-lib/libasound_module_ctl_bluetooth.so
|
||
|
%{_libdir}/alsa-lib/libasound_module_pcm_bluetooth.la
|
||
|
%{_libdir}/alsa-lib/libasound_module_pcm_bluetooth.so
|
||
|
%{_prefix}/lib/cups/backend/bluetooth
|
||
|
%if "%{stage1}" != "1"
|
||
|
%{_libdir}/gstreamer-0.10/libgstbluetooth.la
|
||
|
%{_libdir}/gstreamer-0.10/libgstbluetooth.so
|
||
|
%endif
|
||
|
%doc ChangeLog README
|
||
|
#%{_prefix}/libexec/udev/bluetooth_serial
|
||
|
|
||
|
%files -n libbluetooth4-devel
|
||
|
%defattr(-,root,root)
|
||
|
%{_includedir}/bluetooth/*.h
|
||
|
%{_libdir}/libbluetooth.la
|
||
|
%{_libdir}/libbluetooth.so
|
||
|
%{_libdir}/pkgconfig/bluez.pc
|
||
|
|
||
|
%changelog
|
||
|
* Sat Nov 04 2017 Silvan Calarco <silvan.calarco@mambasoft.it> 4.101-4mamba
|
||
|
- renamed to bluez4 as legacy package
|
||
|
|
||
|
* Wed Nov 26 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 4.101-3mamba
|
||
|
- x86_64: fix path of cups backend
|
||
|
|
||
|
* Mon Jul 15 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 4.101-2mamba
|
||
|
- enable and start bluetooth service upon install
|
||
|
|
||
|
* Wed Jul 10 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 4.101-1mamba
|
||
|
- update to 4.101
|
||
|
|
||
|
* Sun Jun 03 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 4.99-1mamba
|
||
|
- update to 4.99
|
||
|
|
||
|
* Thu Aug 18 2011 Stefano Cotta Ramusino <stefano.cotta@openmamba.org> 4.96-1mamba
|
||
|
- update to 4.96
|
||
|
|
||
|
* Mon Jul 25 2011 Automatic Build System <autodist@mambasoft.it> 4.95-1mamba
|
||
|
- automatic version update by autodist
|
||
|
|
||
|
* Sat Jun 25 2011 Automatic Build System <autodist@mambasoft.it> 4.94-1mamba
|
||
|
- automatic update by autodist
|
||
|
|
||
|
* Sat Mar 12 2011 Silvan Calarco <silvan.calarco@mambasoft.it> 4.89-2mamba
|
||
|
- configure options reworked
|
||
|
|
||
|
* Thu Mar 10 2011 Silvan Calarco <silvan.calarco@mambasoft.it> 4.89-1mamba
|
||
|
- update to 4.89
|
||
|
|
||
|
* Mon Aug 16 2010 Automatic Build System <autodist@mambasoft.it> 4.69-1mamba
|
||
|
- automatic update by autodist
|
||
|
|
||
|
* Fri Jul 09 2010 Automatic Build System <autodist@mambasoft.it> 4.67-1mamba
|
||
|
- automatic update by autodist
|
||
|
|
||
|
* Sat Jun 26 2010 Automatic Build System <autodist@mambasoft.it> 4.66-1mamba
|
||
|
- automatic update by autodist
|
||
|
|
||
|
* Fri Feb 19 2010 Stefano Cotta Ramusino <stefano.cotta@openmamba.org> 4.61-1mamba
|
||
|
- update to 4.61
|
||
|
|
||
|
* Mon Jan 04 2010 Stefano Cotta Ramusino <stefano.cotta@openmamba.org> 4.59-1mamba
|
||
|
- update to 4.59
|
||
|
- added patches to support more bluetooth devices
|
||
|
- added missing build requirements
|
||
|
|
||
|
* Thu Oct 15 2009 Automatic Build System <autodist@mambasoft.it> 4.56-1mamba
|
||
|
- automatic update by autodist
|
||
|
|
||
|
* Thu Aug 27 2009 Automatic Build System <autodist@mambasoft.it> 4.50-1mamba
|
||
|
- automatic update by autodist
|
||
|
|
||
|
* Thu Aug 20 2009 Automatic Build System <autodist@mambasoft.it> 4.48-1mamba
|
||
|
- automatic update by autodist
|
||
|
|
||
|
* Fri Aug 07 2009 Automatic Build System <autodist@mambasoft.it> 4.47-1mamba
|
||
|
- automatic update by autodist
|
||
|
|
||
|
* Sat Jul 25 2009 Automatic Build System <autodist@mambasoft.it> 4.46-1mamba
|
||
|
- automatic update by autodist
|
||
|
|
||
|
* Mon Jul 06 2009 Automatic Build System <autodist@mambasoft.it> 4.43-1mamba
|
||
|
- automatic update by autodist
|
||
|
|
||
|
* Sat Jun 27 2009 Automatic Build System <autodist@mambasoft.it> 4.42-1mamba
|
||
|
- automatic update by autodist
|
||
|
|
||
|
* Thu Jun 18 2009 Automatic Build System <autodist@mambasoft.it> 4.41-1mamba
|
||
|
- automatic update by autodist
|
||
|
|
||
|
* Sat May 02 2009 Automatic Build System <autodist@mambasoft.it> 4.37-1mamba
|
||
|
- automatic update by autodist
|
||
|
|
||
|
* Mon Apr 20 2009 Automatic Build System <autodist@mambasoft.it> 4.36-1mamba
|
||
|
- automatic update by autodist
|
||
|
|
||
|
* Sat Apr 18 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 4.34-4mamba
|
||
|
- removed library duplicates in bluez package
|
||
|
|
||
|
* Mon Apr 13 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 4.34-3mamba
|
||
|
- don't obsolete libbluez for compatibility
|
||
|
|
||
|
* Fri Apr 10 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 4.34-2mamba
|
||
|
- rebuilt enabling configure options instead of --enable-all
|
||
|
|
||
|
* Thu Apr 09 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 4.34-1mamba
|
||
|
- update to 4.34
|
||
|
|
||
|
* Wed May 28 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 3.32-1mamba
|
||
|
- update to 3.32
|
||
|
- fixed udev rules file location
|
||
|
|
||
|
* Mon Apr 28 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 3.30-1mamba
|
||
|
- update to 3.30
|
||
|
- added requirement for bluez-firmware
|
||
|
|
||
|
* Tue Mar 06 2007 Silvan Calarco <silvan.calarco@mambasoft.it> 3.9-1qilnx
|
||
|
- update to version 3.9 by autospec
|
||
|
|
||
|
* Tue Feb 21 2006 Davide Madrisan <davide.madrisan@qilinux.it> 2.25-2qilnx
|
||
|
- start and stop the bluetooth service using 'service'
|
||
|
- enable and start the bluetooth service by default
|
||
|
|
||
|
* Wed Feb 01 2006 Stefano Cotta Ramusino <stefano.cotta@qilinux.it> 2.25-1qilnx
|
||
|
- update to version 2.25 by autospec
|
||
|
- added initscript patch
|
||
|
|
||
|
* Wed Dec 07 2005 Alessandro Ramazzina <alessandro.ramazzina@qilinux.it> 2.22-1qilnx
|
||
|
- update to version 2.22 by autospec
|
||
|
|
||
|
* Thu Oct 13 2005 Alessandro Ramazzina <alessandro.ramazzina@qilinux.it> 2.21-1qilnx
|
||
|
- update to version 2.21 by autospec
|
||
|
|
||
|
* Fri Aug 26 2005 Davide Madrisan <davide.madrisan@qilinux.it> 2.19-1qilnx
|
||
|
- update to version 2.19 by autospec
|
||
|
- also fix security issue QSA-2005-092 (CAN-2005-2547)
|
||
|
- dbus support enabled
|
||
|
|
||
|
* Wed Dec 01 2004 Silvan Calarco <silvan.calarco@mambasoft.it> 2.11-2qilnx
|
||
|
- added initscript chkconfig header
|
||
|
|
||
|
* Mon Nov 29 2004 Silvan Calarco <silvan.calarco@mambasoft.it> 2.11-1qilnx
|
||
|
- new version build
|
||
|
- added bluetooth initscript
|
||
|
|
||
|
* Fri Sep 10 2004 Silvan Calarco <silvan.calarco@mambasoft.it> 2.10-1qilnx
|
||
|
- first build
|