Require bluez-pin-provider instead of bluez-pin

This commit is contained in:
Andrey Bondrov 2014-12-12 20:13:14 +10:00
parent aeb20c3774
commit ee1b16bec8

View file

@ -1,11 +1,11 @@
%define major 3 %define major 3
%define libname %mklibname %{name} %{major} %define libname %mklibname %{name} %{major}
%define devname %mklibname -d %{name} %define devname %mklibname %{name} -d
Name: bluez
Summary: Official Linux Bluetooth protocol stack Summary: Official Linux Bluetooth protocol stack
Name: bluez
Version: 5.21 Version: 5.21
Release: 1 Release: 2
License: GPLv2+ License: GPLv2+
Group: Communications Group: Communications
URL: http://www.bluez.org/ URL: http://www.bluez.org/
@ -26,25 +26,21 @@ Patch3: 0001-Allow-using-obexd-without-systemd-in-the-user-sessio.patch
Patch4: 0001-obex-Use-GLib-helper-function-to-manipulate-paths.patch Patch4: 0001-obex-Use-GLib-helper-function-to-manipulate-paths.patch
Patch5: 0002-autopair-Don-t-handle-the-iCade.patch Patch5: 0002-autopair-Don-t-handle-the-iCade.patch
Patch7: 0004-agent-Assert-possible-infinite-loop.patch Patch7: 0004-agent-Assert-possible-infinite-loop.patch
Requires(pre): rpm-helper
BuildRequires: flex
BuildRequires: bison BuildRequires: bison
BuildRequires: readline-devel BuildRequires: flex
BuildRequires: expat-devel
BuildRequires: cups-devel BuildRequires: cups-devel
BuildRequires: readline-devel
BuildRequires: pkgconfig(dbus-1) BuildRequires: pkgconfig(dbus-1)
BuildRequires: pkgconfig(expat)
BuildRequires: pkgconfig(glib-2.0) BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(libcap-ng) BuildRequires: pkgconfig(libcap-ng)
BuildRequires: pkgconfig(libical)
BuildRequires: pkgconfig(libusb) BuildRequires: pkgconfig(libusb)
BuildRequires: pkgconfig(libusb-1.0) BuildRequires: pkgconfig(libusb-1.0)
BuildRequires: pkgconfig(libical)
BuildRequires: pkgconfig(udev) >= 186
BuildRequires: pkgconfig(libical)
BuildRequires: pkgconfig(systemd) BuildRequires: pkgconfig(systemd)
BuildRequires: pkgconfig(udev) >= 186
Requires: bluez-pin Requires(pre): rpm-helper
Requires: bluez-pin-provider
Suggests: obex-data-server Suggests: obex-data-server
Obsoletes: bluez-alsa < 5.0 Obsoletes: bluez-alsa < 5.0
Obsoletes: bluez-gstreamer < 5.0 Obsoletes: bluez-gstreamer < 5.0
@ -52,12 +48,6 @@ Obsoletes: bluez-gstreamer < 5.0
%description %description
These are the official Bluetooth communication libraries for Linux. These are the official Bluetooth communication libraries for Linux.
%post
%_post_service bluetooth
%postun
%_preun_service bluetooth
%files %files
%{_bindir}/ciptool %{_bindir}/ciptool
%{_bindir}/hcitool %{_bindir}/hcitool
@ -98,38 +88,63 @@ These are the official Bluetooth communication libraries for Linux.
%{_libdir}/bluetooth/plugins/sixaxis.so %{_libdir}/bluetooth/plugins/sixaxis.so
%{_libdir}/bluetooth/plugins/playstation-peripheral.so %{_libdir}/bluetooth/plugins/playstation-peripheral.so
%post
%_post_service bluetooth
#-------------------------------------------------------------------- %postun
%_preun_service bluetooth
%package cups #----------------------------------------------------------------------------
%package cups
Summary: CUPS printer backend for Bluetooth printers Summary: CUPS printer backend for Bluetooth printers
Group: System/Servers Group: System/Servers
Requires: cups Requires: cups
%description cups %description cups
This package contains the CUPS backend for Bluetooth printers. This package contains the CUPS backend for Bluetooth printers.
%files cups %files cups
%{_prefix}/lib/cups/backend/bluetooth %{_prefix}/lib/cups/backend/bluetooth
#-------------------------------------------------------------------- #----------------------------------------------------------------------------
%package -n %{libname} %package -n %{libname}
Summary: Official Linux Bluetooth protocol stack Summary: Official Linux Bluetooth protocol stack
Group: System/Libraries Group: System/Libraries
%description -n %{libname} %description -n %{libname}
These are the official Bluetooth communication libraries for Linux. These are the official Bluetooth communication libraries for Linux.
%files -n %{libname} %files -n %{libname}
/%{_lib}/libbluetooth.so.%{major}* /%{_lib}/libbluetooth.so.%{major}*
#--------------------------------------------------------------------
%package hid2hci #----------------------------------------------------------------------------
%package -n %{devname}
Summary: Headers for developing programs that will use %{name}
Group: Development/C++
Requires: %{libname} = %{EVRD}
Provides: %{name}-devel = %{EVRD}
%description -n %{devname}
This package contains the headers that programmers will need to develop
applications which will use libraries from %{name}.
%files -n %{devname}
%doc AUTHORS ChangeLog README
%dir %{_includedir}/bluetooth
%{_includedir}/bluetooth/*.h
%{_libdir}/*.so
%{_libdir}/pkgconfig/bluez.pc
#----------------------------------------------------------------------------
%package hid2hci
Summary: Put HID proxying bluetooth HCI's into HCI mode Summary: Put HID proxying bluetooth HCI's into HCI mode
Group: Communications Group: Communications
%description hid2hci %description hid2hci
Most allinone PC's and bluetooth keyboard / mouse sets which include a Most allinone PC's and bluetooth keyboard / mouse sets which include a
bluetooth dongle, ship with a so called HID proxying bluetooth HCI. bluetooth dongle, ship with a so called HID proxying bluetooth HCI.
The HID proxying makes the keyboard / mouse show up as regular USB HID The HID proxying makes the keyboard / mouse show up as regular USB HID
@ -148,7 +163,7 @@ them again. Since you cannot use your bluetooth keyboard and mouse until
they are paired, this will require the use of a regular (wired) USB keyboard they are paired, this will require the use of a regular (wired) USB keyboard
and mouse. and mouse.
%files hid2hci %files hid2hci
/lib/udev/hid2hci /lib/udev/hid2hci
%{_mandir}/man1/hid2hci.1* %{_mandir}/man1/hid2hci.1*
/lib/udev/rules.d/97-hid2hci.rules /lib/udev/rules.d/97-hid2hci.rules
@ -156,42 +171,25 @@ and mouse.
%post hid2hci %post hid2hci
%{_bindir}/udevadm trigger --subsystem-match=usb %{_bindir}/udevadm trigger --subsystem-match=usb
#-------------------------------------------------------------------- #----------------------------------------------------------------------------
%package test %package test
Summary: Tools for testing of various Bluetooth-functions Summary: Tools for testing of various Bluetooth-functions
Group: System/Servers Group: System/Servers
Requires: python-dbus Requires: python-dbus
Requires: python-gobject Requires: python-gobject
%description test %description test
Contains a few tools for testing various bluetooth functions. The Contains a few tools for testing various bluetooth functions. The
BLUETOOTH trademarks are owned by Bluetooth SIG, Inc., U.S.A. BLUETOOTH trademarks are owned by Bluetooth SIG, Inc., U.S.A.
%files test %files test
%{_bindir}/simple-agent %{_bindir}/simple-agent
%{_bindir}/l2test %{_bindir}/l2test
%{_bindir}/rctest %{_bindir}/rctest
%{_bindir}/test-* %{_bindir}/test-*
#-------------------------------------------------------------------- #----------------------------------------------------------------------------
%package -n %{devname}
Summary: Headers for developing programs that will use %{name}
Group: Development/C++
Requires: %{libname} = %{version}
Provides: %{name}-devel = %{version}-%{release}
%description -n %{devname}
This package contains the headers that programmers will need to develop
applications which will use libraries from %{name}.
%files -n %{devname}
%doc AUTHORS ChangeLog README
%dir %{_includedir}/bluetooth
%{_includedir}/bluetooth/*.h
%{_libdir}/*.so
%{_libdir}/pkgconfig/bluez.pc
#--------------------------------------------------------------------
%prep %prep
%setup -q %setup -q