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 libname %mklibname %{name} %{major}
%define devname %mklibname -d %{name}
%define devname %mklibname %{name} -d
Name: bluez
Summary: Official Linux Bluetooth protocol stack
Name: bluez
Version: 5.21
Release: 1
Release: 2
License: GPLv2+
Group: Communications
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
Patch5: 0002-autopair-Don-t-handle-the-iCade.patch
Patch7: 0004-agent-Assert-possible-infinite-loop.patch
Requires(pre): rpm-helper
BuildRequires: flex
BuildRequires: bison
BuildRequires: readline-devel
BuildRequires: expat-devel
BuildRequires: flex
BuildRequires: cups-devel
BuildRequires: readline-devel
BuildRequires: pkgconfig(dbus-1)
BuildRequires: pkgconfig(expat)
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(libcap-ng)
BuildRequires: pkgconfig(libical)
BuildRequires: pkgconfig(libusb)
BuildRequires: pkgconfig(libusb-1.0)
BuildRequires: pkgconfig(libical)
BuildRequires: pkgconfig(udev) >= 186
BuildRequires: pkgconfig(libical)
BuildRequires: pkgconfig(systemd)
Requires: bluez-pin
BuildRequires: pkgconfig(udev) >= 186
Requires(pre): rpm-helper
Requires: bluez-pin-provider
Suggests: obex-data-server
Obsoletes: bluez-alsa < 5.0
Obsoletes: bluez-gstreamer < 5.0
@ -52,12 +48,6 @@ Obsoletes: bluez-gstreamer < 5.0
%description
These are the official Bluetooth communication libraries for Linux.
%post
%_post_service bluetooth
%postun
%_preun_service bluetooth
%files
%{_bindir}/ciptool
%{_bindir}/hcitool
@ -98,8 +88,13 @@ These are the official Bluetooth communication libraries for Linux.
%{_libdir}/bluetooth/plugins/sixaxis.so
%{_libdir}/bluetooth/plugins/playstation-peripheral.so
%post
%_post_service bluetooth
#--------------------------------------------------------------------
%postun
%_preun_service bluetooth
#----------------------------------------------------------------------------
%package cups
Summary: CUPS printer backend for Bluetooth printers
@ -112,7 +107,7 @@ This package contains the CUPS backend for Bluetooth printers.
%files cups
%{_prefix}/lib/cups/backend/bluetooth
#--------------------------------------------------------------------
#----------------------------------------------------------------------------
%package -n %{libname}
Summary: Official Linux Bluetooth protocol stack
@ -123,7 +118,27 @@ These are the official Bluetooth communication libraries for Linux.
%files -n %{libname}
/%{_lib}/libbluetooth.so.%{major}*
#--------------------------------------------------------------------
#----------------------------------------------------------------------------
%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
@ -156,7 +171,7 @@ and mouse.
%post hid2hci
%{_bindir}/udevadm trigger --subsystem-match=usb
#--------------------------------------------------------------------
#----------------------------------------------------------------------------
%package test
Summary: Tools for testing of various Bluetooth-functions
@ -174,24 +189,7 @@ BLUETOOTH trademarks are owned by Bluetooth SIG, Inc., U.S.A.
%{_bindir}/rctest
%{_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
%setup -q