]> git.pld-linux.org Git - packages/bluez.git/blobdiff - bluez.spec
- updated to 4.100
[packages/bluez.git] / bluez.spec
index 37940cca1cc37a9997467bb0c5a6fe4ff262e68e..e9bf56e67be7b33ca9f6859b81761eab169b1aa2 100644 (file)
@@ -1,13 +1,13 @@
 Summary:       Bluetooth utilities
 Summary(pl.UTF-8):     Narzędzia Bluetooth
 Name:          bluez
-Version:       4.97
+Version:       4.100
 Release:       1
 License:       GPL v2+
 Group:         Applications/System
 #Source0Download: http://www.bluez.org/download.html
 Source0:       http://www.kernel.org/pub/linux/bluetooth/%{name}-%{version}.tar.bz2
-# Source0-md5: b302cee7f9b9527d29775449d7e1dfe6
+# Source0-md5: 54809d476c52665ff64594b6828016b5
 Source1:       %{name}.init
 Source2:       %{name}.sysconfig
 Source3:       dund.init
@@ -16,14 +16,15 @@ Source5:    rfcomm.init
 Patch0:                %{name}-etc_dir.patch
 Patch1:                %{name}-wacom-mode-2.patch
 Patch2:                %{name}-systemd.patch
+Patch3:                %{name}-audio_socket.patch
 URL:           http://www.bluez.org/
 BuildRequires: alsa-lib-devel >= 1.0.10-1
 BuildRequires: autoconf >= 2.60
 BuildRequires: automake
 BuildRequires: bison
-BuildRequires: check-devel >= 0.9.4
-BuildRequires: dbus-devel >= 1.0
-BuildRequires: glib2-devel >= 1:2.16
+BuildRequires: check-devel >= 0.9.6
+BuildRequires: dbus-devel >= 1.4
+BuildRequires: glib2-devel >= 1:2.28
 BuildRequires: gstreamer-devel >= 0.10.30
 BuildRequires: gstreamer-plugins-base-devel >= 0.10
 BuildRequires: libcap-ng-devel
@@ -34,14 +35,18 @@ BuildRequires:      pkgconfig >= 1:0.9.0
 BuildRequires: readline-devel
 BuildRequires: rpmbuild(macros) >= 1.626
 BuildRequires: udev-devel
-Requires:      %{name}-libs = %{epoch}:%{version}-%{release}
-Requires:      glib2 >= 1:2.16
+Requires(post,preun,postun):   systemd-units >= 38
+Requires:      %{name}-libs = %{version}-%{release}
+Requires:      dbus-libs >= 1.4
+Requires:      glib2 >= 1:2.28
 Requires:      hwdata >= 0.225
 Requires:      rc-scripts
-Provides:      bluez-utils = %{epoch}:%{version}-%{release}
+Requires:      systemd-units >= 38
+Provides:      bluez-utils = %{version}-%{release}
 Obsoletes:     bluez-hciemu
 Obsoletes:     bluez-pan
 Obsoletes:     bluez-sdp
+Obsoletes:     bluez-systemd
 Obsoletes:     bluez-utils
 Obsoletes:     bluez-utils-init
 Conflicts:     bluez-bluefw
@@ -89,7 +94,7 @@ Summary:      ALSA plugins for Bluetooth audio devices
 Summary(pl.UTF-8):     Wtyczki systemu ALSA dla urządzeń dźwiękowych Bluetooth
 Group:         Libraries
 # bluetoothd + audio service
-Requires:      %{name} = %{epoch}:%{version}-%{release}
+Requires:      %{name} = %{version}-%{release}
 Requires:      alsa-lib >= 1.0.10-1
 
 %description -n alsa-plugins-bluetooth
@@ -102,7 +107,7 @@ Wtyczki systemu ALSA dla urządzeń dźwiękowych Bluetooth.
 Summary:       Bluetooth backend for CUPS
 Summary(pl.UTF-8):     Backend Bluetooth dla CUPS-a
 Group:         Applications/Printing
-Requires:      bluez-libs >= %{epoch}:%{version}-%{release}
+Requires:      bluez-libs >= %{version}-%{release}
 Requires:      cups
 
 %description -n cups-backend-bluetooth
@@ -115,7 +120,7 @@ Backend Bluetooth dla CUPS-a.
 Summary:       Bluetooth support for gstreamer
 Summary(pl.UTF-8):     Obsługa Bluetooth dla gstreamera
 Group:         Libraries
-Requires:      bluez-libs >= %{epoch}:%{version}-%{release}
+Requires:      bluez-libs >= %{version}-%{release}
 Requires:      gstreamer >= 0.10.30
 Requires:      gstreamer-plugins-base >= 0.10
 
@@ -128,7 +133,7 @@ Obsługa Bluetooth dla gstreamera.
 %package libs
 Summary:       Bluetooth libraries
 Summary(pl.UTF-8):     Biblioteki Bluetooth
-Group:         Development/Libraries
+Group:         Libraries
 Obsoletes:     bluez-sdp
 
 %description libs
@@ -145,7 +150,7 @@ Znaki towarowe BLUETOOTH są własnością Bluetooth SIG, Inc. z USA.
 Summary:       Header files for Bluetooth applications
 Summary(pl.UTF-8):     Pliki nagłówkowe dla aplikacji Bluetooth
 Group:         Development/Libraries
-Requires:      %{name}-libs = %{epoch}:%{version}-%{release}
+Requires:      %{name}-libs = %{version}-%{release}
 Obsoletes:     bluez-sdp-devel
 
 %description libs-devel
@@ -160,7 +165,7 @@ Bluetooth.
 Summary:       Static Bluetooth libraries
 Summary(pl.UTF-8):     Biblioteki statyczne Bluetooth
 Group:         Development/Libraries
-Requires:      %{name}-libs-devel = %{epoch}:%{version}-%{release}
+Requires:      %{name}-libs-devel = %{version}-%{release}
 Obsoletes:     bluez-sdp-static
 
 %description libs-static
@@ -171,24 +176,12 @@ Bluetooth applications.
 Ten pakiet zawiera biblioteki statyczne, których można używać do
 aplikacji Bluetooth.
 
-%package systemd
-Summary:       systemd units for bluez
-Summary(pl.UTF-8):     Jednostki systemd dla pakietu bluez
-Group:         Base
-Requires:      %{name} = %{epoch}:%{version}-%{release}
-Requires:      systemd-units >= 37-0.10
-
-%description systemd
-systemd units for bluez.
-
-%description systemd -l pl.UTF-8
-Jednostki systemd dla pakietu bluez.
-
 %prep
 %setup -q
 %patch0 -p1
 %patch1 -p1
 %patch2 -p1
+%patch3 -p1
 
 %build
 %{__libtoolize}
@@ -198,7 +191,7 @@ Jednostki systemd dla pakietu bluez.
 %{__automake}
 %configure \
        --with-ouifile=%{_datadir}/hwdata/oui.txt \
-       --with-systemdsystemunitdir=%{systemdunitdir} \
+       --with-systemdunitdir=%{systemdunitdir} \
        --disable-silent-rules \
        --enable-shared \
        --enable-static \
@@ -206,11 +199,11 @@ Jednostki systemd dla pakietu bluez.
        --enable-audio \
        --enable-bccmd \
        --enable-capng \
-       --enable-configfiles \
        --enable-cups \
        --enable-dbusoob \
        --enable-dfutool \
        --enable-dund \
+       --enable-gatt \
        --enable-gstreamer \
        --enable-health \
        --enable-hid2hci \
@@ -224,7 +217,6 @@ Jednostki systemd dla pakietu bluez.
        --enable-thermometer \
        --enable-tools \
        --enable-usb \
-       --enable-udevrules \
        --enable-wiimote
 
 %{__make} \
@@ -234,7 +226,8 @@ Jednostki systemd dla pakietu bluez.
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig}
+install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig} \
+       $RPM_BUILD_ROOT%{_libdir}/bluetooth/plugins
 
 %{__make} install \
        DESTDIR=$RPM_BUILD_ROOT \
@@ -269,6 +262,7 @@ rm -rf $RPM_BUILD_ROOT
 %service dund restart
 %service pand restart
 %service rfcomm restart
+%systemd_post bluetooth.service
 
 %preun
 if [ "$1" = "0" ]; then
@@ -281,19 +275,17 @@ if [ "$1" = "0" ]; then
        /sbin/chkconfig --del pand
        /sbin/chkconfig --del rfcomm
 fi
-
-%post   libs -p /sbin/ldconfig
-%postun libs -p /sbin/ldconfig
-
-%post systemd
-%systemd_post bluetooth.service
-
-%preun systemd
 %systemd_preun bluetooth.service
 
-%postun systemd
+%postun
 %systemd_reload
 
+%triggerpostun -- bluez < 4.98-3
+%systemd_trigger bluetooth.service
+
+%post   libs -p /sbin/ldconfig
+%postun libs -p /sbin/ldconfig
+
 %files
 %defattr(644,root,root,755)
 %doc AUTHORS ChangeLog README
@@ -321,9 +313,10 @@ fi
 %attr(754,root,root) /etc/rc.d/init.d/rfcomm
 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/bluetooth
 %config(noreplace) %verify(not md5 mtime size) /etc/dbus-1/system.d/bluetooth.conf
+%{systemdunitdir}/bluetooth.service
+%{_datadir}/dbus-1/system-services/org.bluez.service
 %attr(755,root,root) %{udevdir}/bluetooth_serial
 %attr(755,root,root) %{udevdir}/hid2hci
-%{udevdir}/rules.d/97-bluetooth.rules
 %{udevdir}/rules.d/97-bluetooth-hid2hci.rules
 %{udevdir}/rules.d/97-bluetooth-serial.rules
 %{_mandir}/man1/ciptool.1*
@@ -344,7 +337,7 @@ fi
 %files -n alsa-plugins-bluetooth
 %defattr(644,root,root,755)
 %{_sysconfdir}/alsa/bluetooth.conf
-%attr(755,root,root) %{_libdir}/alsa-lib/libasound_module_ctl_bluetooth.so
+%attr(755,root,root) %{_libdir}/alsa-lib/libasound_module_ctl_bluetooth.so*
 %attr(755,root,root) %{_libdir}/alsa-lib/libasound_module_pcm_bluetooth.so
 
 %files -n cups-backend-bluetooth
@@ -369,8 +362,3 @@ fi
 %files libs-static
 %defattr(644,root,root,755)
 %{_libdir}/libbluetooth.a
-
-%files systemd
-%defattr(644,root,root,755)
-%{systemdunitdir}/bluetooth.service
-%{_datadir}/dbus-1/system-services/org.bluez.service
This page took 0.037287 seconds and 4 git commands to generate.