mirror of
https://abf.rosa.ru/djam/bluez.git
synced 2025-02-23 15:12:52 +00:00
Automatic import for version 4.101-4
This commit is contained in:
parent
5671d3d840
commit
620a22761e
2 changed files with 76 additions and 44 deletions
23
bluez-4.101-fix-c++11-compatibility.patch
Normal file
23
bluez-4.101-fix-c++11-compatibility.patch
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
--- bluez-4.101/lib/bluetooth.h.c++11~ 2012-06-28 23:59:45.676069338 +0200
|
||||||
|
+++ bluez-4.101/lib/bluetooth.h 2012-06-28 23:59:50.973003117 +0200
|
||||||
|
@@ -140,16 +140,16 @@ enum {
|
||||||
|
#define bt_get_unaligned(ptr) \
|
||||||
|
({ \
|
||||||
|
struct __attribute__((packed)) { \
|
||||||
|
- typeof(*(ptr)) __v; \
|
||||||
|
- } *__p = (typeof(__p)) (ptr); \
|
||||||
|
+ __typeof__(*(ptr)) __v; \
|
||||||
|
+ } *__p = (__typeof__(__p)) (ptr); \
|
||||||
|
__p->__v; \
|
||||||
|
})
|
||||||
|
|
||||||
|
#define bt_put_unaligned(val, ptr) \
|
||||||
|
do { \
|
||||||
|
struct __attribute__((packed)) { \
|
||||||
|
- typeof(*(ptr)) __v; \
|
||||||
|
- } *__p = (typeof(__p)) (ptr); \
|
||||||
|
+ __typeof__(*(ptr)) __v; \
|
||||||
|
+ } *__p = (__typeof__(__p)) (ptr); \
|
||||||
|
__p->__v = (val); \
|
||||||
|
} while(0)
|
||||||
|
|
55
bluez.spec
55
bluez.spec
|
@ -2,14 +2,15 @@
|
||||||
%define libname %mklibname %{name} %{major}
|
%define libname %mklibname %{name} %{major}
|
||||||
%define devname %mklibname -d %{name}
|
%define devname %mklibname -d %{name}
|
||||||
|
|
||||||
%define _with_systemd 1
|
%bcond_without systemd
|
||||||
|
|
||||||
Name: bluez
|
Name: bluez
|
||||||
Summary: Official Linux Bluetooth protocol stack
|
Summary: Official Linux Bluetooth protocol stack
|
||||||
Version: 4.101
|
Version: 4.101
|
||||||
Release: 2
|
Release: 4
|
||||||
License: GPLv2+
|
License: GPLv2+
|
||||||
Group: Communications
|
Group: Communications
|
||||||
|
URL: http://www.bluez.org/
|
||||||
Source0: http://www.kernel.org/pub/linux/bluetooth/%{name}-%{version}.tar.xz
|
Source0: http://www.kernel.org/pub/linux/bluetooth/%{name}-%{version}.tar.xz
|
||||||
Source6: pand.conf
|
Source6: pand.conf
|
||||||
Source7: dund.conf
|
Source7: dund.conf
|
||||||
|
@ -27,13 +28,12 @@ Patch5: 0001-Add-sixaxis-cable-pairing-plugin.patch
|
||||||
Patch6: 0001-input-Add-helper-function-to-request-disconnect.patch
|
Patch6: 0001-input-Add-helper-function-to-request-disconnect.patch
|
||||||
Patch7: 0002-fakehid-Disconnect-from-PS3-remote-after-10-mins.patch
|
Patch7: 0002-fakehid-Disconnect-from-PS3-remote-after-10-mins.patch
|
||||||
Patch8: 0003-fakehid-Use-the-same-constant-as-declared.patch
|
Patch8: 0003-fakehid-Use-the-same-constant-as-declared.patch
|
||||||
|
Patch9: bluez-4.101-fix-c++11-compatibility.patch
|
||||||
|
|
||||||
BuildRequires: flex
|
BuildRequires: flex
|
||||||
BuildRequires: bison
|
BuildRequires: bison
|
||||||
Buildrequires: systemd
|
Buildrequires: systemd
|
||||||
BuildRequires: readline
|
BuildRequires: readline-devel
|
||||||
BuildRequires: udev
|
|
||||||
BuildRequires: expat-devel
|
BuildRequires: expat-devel
|
||||||
BuildRequires: pkgconfig(alsa)
|
BuildRequires: pkgconfig(alsa)
|
||||||
BuildRequires: pkgconfig(dbus-1)
|
BuildRequires: pkgconfig(dbus-1)
|
||||||
|
@ -42,7 +42,7 @@ BuildRequires: pkgconfig(gstreamer-0.10)
|
||||||
BuildRequires: pkgconfig(libcap-ng)
|
BuildRequires: pkgconfig(libcap-ng)
|
||||||
BuildRequires: pkgconfig(libusb)
|
BuildRequires: pkgconfig(libusb)
|
||||||
BuildRequires: usb1-devel
|
BuildRequires: usb1-devel
|
||||||
BuildRequires: pkgconfig(udev)
|
BuildRequires: pkgconfig(udev) >= 186
|
||||||
|
|
||||||
Requires: bluez-pin
|
Requires: bluez-pin
|
||||||
Suggests: obex-data-server
|
Suggests: obex-data-server
|
||||||
|
@ -80,6 +80,7 @@ fi
|
||||||
%files
|
%files
|
||||||
%{_bindir}/ciptool
|
%{_bindir}/ciptool
|
||||||
%{_bindir}/dfutool
|
%{_bindir}/dfutool
|
||||||
|
%{_bindir}/gatttool
|
||||||
%{_bindir}/hcitool
|
%{_bindir}/hcitool
|
||||||
%{_bindir}/hidd
|
%{_bindir}/hidd
|
||||||
%{_bindir}/l2ping
|
%{_bindir}/l2ping
|
||||||
|
@ -95,7 +96,7 @@ fi
|
||||||
%{_sbindir}/bluetoothd
|
%{_sbindir}/bluetoothd
|
||||||
/bin/hidd
|
/bin/hidd
|
||||||
/sbin/bluetoothd
|
/sbin/bluetoothd
|
||||||
%if %{_with_systemd}
|
%if %{with systemd}
|
||||||
/lib/systemd/system/*.service
|
/lib/systemd/system/*.service
|
||||||
%endif
|
%endif
|
||||||
%{_mandir}/man?/*
|
%{_mandir}/man?/*
|
||||||
|
@ -200,15 +201,13 @@ applications which will use libraries from %{name}.
|
||||||
%setup -q
|
%setup -q
|
||||||
%apply_patches
|
%apply_patches
|
||||||
|
|
||||||
%build
|
|
||||||
libtoolize -f -c
|
libtoolize -f -c
|
||||||
autoreconf -fi
|
autoreconf -fi
|
||||||
|
|
||||||
# fix mdv bug 35444
|
%build
|
||||||
%define _localstatedir %{_var}
|
|
||||||
%configure2_5x \
|
%configure2_5x \
|
||||||
--libdir=/%{_lib} \
|
--libdir=/%{_lib} \
|
||||||
%if !%{_with_systemd}
|
%if !%{with systemd}
|
||||||
--without-systemdsystemunitdir \
|
--without-systemdsystemunitdir \
|
||||||
%endif
|
%endif
|
||||||
--enable-cups \
|
--enable-cups \
|
||||||
|
@ -242,23 +241,24 @@ EOF
|
||||||
|
|
||||||
chmod 600 %{buildroot}%{_sysconfdir}/bluetooth/pin
|
chmod 600 %{buildroot}%{_sysconfdir}/bluetooth/pin
|
||||||
|
|
||||||
rm -f %{buildroot}/etc/default/bluetooth %{buildroot}/etc/init.d/bluetooth
|
rm -f %{buildroot}%{_sysconfdir}/default/bluetooth %{buildroot}%{_sysconfdir}/init.d/bluetooth
|
||||||
install -D -c -m 0644 %SOURCE6 %buildroot%_sysconfdir/sysconfig/pand
|
install -m644 %{SOURCE6} -D %{buildroot}%{_sysconfdir}/sysconfig/pand
|
||||||
install -D -c -m 0644 %SOURCE7 %buildroot%_sysconfdir/sysconfig/dund
|
install -m644 %{SOURCE7} -D %{buildroot}%{_sysconfdir}/sysconfig/dund
|
||||||
install -D -c -m 0644 %SOURCE8 %buildroot%_sysconfdir/sysconfig/hidd
|
install -m644 %{SOURCE8} -D %{buildroot}%{_sysconfdir}/sysconfig/hidd
|
||||||
install -D -c -m 0644 %SOURCE9 %buildroot%_sysconfdir/sysconfig/rfcomm
|
install -m644 %{SOURCE9} -D %{buildroot}%{_sysconfdir}/sysconfig/rfcomm
|
||||||
|
|
||||||
rm -rf %{buildroot}/%{_lib}/pkgconfig
|
rm -rf %{buildroot}/%{_lib}/pkgconfig
|
||||||
install -m644 bluez.pc -D %{buildroot}%{_libdir}/pkgconfig/bluez.pc
|
install -m644 bluez.pc -D %{buildroot}%{_libdir}/pkgconfig/bluez.pc
|
||||||
|
|
||||||
# Remove the cups backend from libdir, and install it in /usr/lib whatever the install
|
# Remove the cups backend from libdir, and install it in /usr/lib whatever the install
|
||||||
if test -d %{buildroot}/%{_lib}/cups ; then
|
if test -d %{buildroot}/%{_lib}/cups ; then
|
||||||
install -D -m0755 %{buildroot}/%{_lib}/cups/backend/bluetooth %{buildroot}/usr/lib/cups/backend/bluetooth
|
install -D -m0755 %{buildroot}/%{_lib}/cups/backend/bluetooth %{buildroot}%{_prefix}/lib/cups/backend/bluetooth
|
||||||
rm -rf %{buildroot}/%{_lib}/cups
|
rm -rf %{buildroot}/%{_lib}/cups
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cp test/test-* %{buildroot}%{_bindir}
|
cp test/test-* %{buildroot}%{_bindir}
|
||||||
cp test/simple-agent %{buildroot}%{_bindir}/simple-agent
|
cp test/simple-agent %{buildroot}%{_bindir}/simple-agent
|
||||||
|
rm -f %{buildroot}%{_bindir}/test-*.c
|
||||||
|
|
||||||
mkdir -p %{buildroot}/{bin,sbin}
|
mkdir -p %{buildroot}/{bin,sbin}
|
||||||
mv %{buildroot}%{_bindir}/hidd %{buildroot}/bin
|
mv %{buildroot}%{_bindir}/hidd %{buildroot}/bin
|
||||||
|
@ -278,17 +278,26 @@ install -m0644 serial/serial.conf %{buildroot}%{_sysconfdir}/bluetooth/
|
||||||
mkdir -p %{buildroot}%{_libdir}/alsa-lib/
|
mkdir -p %{buildroot}%{_libdir}/alsa-lib/
|
||||||
mv %{buildroot}/%{_lib}/alsa-lib/*.so %{buildroot}%{_libdir}/alsa-lib/
|
mv %{buildroot}/%{_lib}/alsa-lib/*.so %{buildroot}%{_libdir}/alsa-lib/
|
||||||
|
|
||||||
# remove unpackaged files
|
install -d -m0755 %{buildroot}%{_localstatedir}/lib/bluetooth
|
||||||
rm -f %{buildroot}/%{_libdir}/*/*.la
|
|
||||||
rm -f %{buildroot}/%{_lib}/*/*.la
|
|
||||||
|
|
||||||
install -d -m0755 %{buildroot}/%{_localstatedir}/lib/bluetooth
|
|
||||||
|
|
||||||
ln -s bluetooth.service %buildroot/lib/systemd/system/dbus-org.bluez.service
|
ln -s bluetooth.service %buildroot/lib/systemd/system/dbus-org.bluez.service
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Sun Jul 08 2012 Bernhard Rosenkraenzer <bero@bero.eu> 4.101-4
|
||||||
|
+ Revision: 808508
|
||||||
|
- Rebuild for libudev.so.1
|
||||||
|
|
||||||
|
* Fri Jun 29 2012 Per Øyvind Karlsen <peroyvind@mandriva.org> 4.101-3
|
||||||
|
+ Revision: 807491
|
||||||
|
- fix buildrequires
|
||||||
|
- get rid of /usr/bin/test-textfile.c that got packaged
|
||||||
|
- add url
|
||||||
|
- package gatttool
|
||||||
|
- move libtoolize & autoreconf to %%prep
|
||||||
|
- cleanups
|
||||||
|
- fix compatibility with ISO C++11 (P9)
|
||||||
|
|
||||||
* Tue Jun 26 2012 Alexander Khrukin <akhrukin@mandriva.org> 4.101-2
|
* Tue Jun 26 2012 Alexander Khrukin <akhrukin@mandriva.org> 4.101-2
|
||||||
+ Revision: 807024
|
+ Revision: 807024
|
||||||
- rel up
|
- rel up
|
||||||
|
|
Loading…
Add table
Reference in a new issue