X-Git-Url: http://git.pld-linux.org/?p=packages%2Fbluez-utils.git;a=blobdiff_plain;f=bluez-utils.spec;h=0dfc36d9317a61bc30b189881d0c9888a9c969c9;hp=a98beaeda3cbf467fe24333fc2cf3c1dd2bf5035;hb=2d1bda609e7be84df0cbade3261dd8d2dcc23be9;hpb=df90a1bdce63f0d9bbcb67205b9ae9e437eafe02 diff --git a/bluez-utils.spec b/bluez-utils.spec index a98beae..0dfc36d 100644 --- a/bluez-utils.spec +++ b/bluez-utils.spec @@ -1,31 +1,41 @@ -# TODO: -# - check init script, add support for rfcomm bind on startup -# Summary: Bluetooth utilities -Summary(pl): Narzêdzia Bluetooth +Summary(pl.UTF-8): Narzędzia Bluetooth Name: bluez-utils -Version: 2.10 +Version: 3.18 Release: 1 -License: GPL v2 +Epoch: 0 +License: GPL v2+ Group: Applications/System +#Source0Download: http://www.bluez.org/download.html Source0: http://bluez.sourceforge.net/download/%{name}-%{version}.tar.gz -# Source0-md5: 4f936b90e32eb24904dea70bd0a464f0 +# Source0-md5: 2b6b4d519b8f75ef3990122934e660ba Source1: %{name}.init Source2: %{name}.sysconfig +Source3: %{name}-udev.rules +Source4: %{name}-udev.script Patch0: %{name}-etc_dir.patch -URL: http://bluez.sourceforge.net/ -BuildRequires: autoconf +URL: http://www.bluez.org/ +BuildRequires: alsa-lib-devel >= 1.0.10-1 +BuildRequires: autoconf >= 2.50 BuildRequires: automake BuildRequires: bison -BuildRequires: bluez-libs-devel >= 2.10 -BuildRequires: dbus-devel +BuildRequires: bluez-libs-devel >= 3.17 +BuildRequires: dbus-glib-devel >= 0.60 +BuildRequires: glib2-devel >= 2.0 +BuildRequires: gstreamer-devel >= 0.10 +BuildRequires: gstreamer-plugins-base-devel >= 0.10 +BuildRequires: hal-devel >= 0.5.8 BuildRequires: libtool BuildRequires: libusb-devel -BuildRequires: rpmbuild(macros) >= 1.164 -PreReq: rc-scripts -Requires: bluez-libs >= 2.10 -Obsoletes: blues-pan +BuildRequires: pkgconfig >= 1:0.9.0 +BuildRequires: rpmbuild(macros) >= 1.268 +BuildRequires: libopensync-devel +BuildRequires: openobex-devel >= 1.1 +Requires: bluez-libs >= 3.17 +Requires: rc-scripts +Obsoletes: bluez-pan Obsoletes: bluez-sdp +Obsoletes: bluez-utils-init Conflicts: bluez-bluefw ExcludeArch: s390 s390x BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) @@ -45,8 +55,8 @@ Bluetooth utilities: The BLUETOOTH trademarks are owned by Bluetooth SIG, Inc., U.S.A. -%description -l pl -Narzêdzia Bluetooth: +%description -l pl.UTF-8 +Narzędzia Bluetooth: - hcitool - hciattach - hciconfig @@ -55,31 +65,48 @@ Narz - skrypty startowe (PLD) - pliki konfiguracji PCMCIA +Znaki towarowe BLUETOOTH są własnością Bluetooth SIG, Inc. z USA. + +%package -n alsa-plugins-bluetooth +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: alsa-lib >= 1.0.10-1 + +%description -n alsa-plugins-bluetooth +ALSA plugins for Bluetooth audio devices. + +%description -n alsa-plugins-bluetooth -l pl.UTF-8 +Wtyczki systemu ALSA dla urządzeń dźwiękowych Bluetooth. + %package -n cups-backend-bluetooth Summary: Bluetooth backend for CUPS -Summary(pl): Backend Bluetooth dla CUPS-a +Summary(pl.UTF-8): Backend Bluetooth dla CUPS-a Group: Applications/Printing -Requires: bluez-libs >= 2.10 +Requires: bluez-libs >= 3.17 Requires: cups %description -n cups-backend-bluetooth Bluetooth backend for CUPS. -%description -n cups-backend-bluetooth -l pl +%description -n cups-backend-bluetooth -l pl.UTF-8 Backend Bluetooth dla CUPS-a. -%package init -Summary: Init script for Bluetooth subsystem -Summary(pl): Skrypt init dla podsystemu Bluetooth -Group: Applications/System -Requires: %{name} = %{epoch}:%{version}-%{release} -Requires(post,preun): /sbin/chkconfig +%package -n gstreamer-bluetooth +Summary: Bluetooth support for gstreamer +Summary(pl.UTF-8): Obsługa Bluetooth dla gstreamera +Group: Libraries +Requires: bluez-libs >= 3.17 +Requires: gstreamer >= 0.10 +Requires: gstreamer-plugins-base >= 0.10 -%description init -Init script for Bluetooth subsystem. +%description -n gstreamer-bluetooth +Bluetooth support for gstreamer. -%description init -l pl -Skrypt init dla podsystemu Bluetooth. +%description -n gstreamer-bluetooth -l pl.UTF-8 +Obsługa Bluetooth dla gstreamera. %prep %setup -q @@ -89,63 +116,111 @@ Skrypt init dla podsystemu Bluetooth. %{__libtoolize} %{__aclocal} %{__autoconf} +%{__autoheader} %{__automake} %configure \ - --enable-bcm203x \ + --enable-audio \ + --enable-avctrl \ + --enable-bccmd \ --enable-cups \ - --enable-pcmcia \ + --enable-dfutool \ + --enable-glib \ + --enable-gstreamer \ + --enable-input \ + --enable-network \ + --enable-pcmciarules \ + --enable-serial \ + --enable-test \ + --enable-hid2hci \ + --enable-usb \ + --enable-alsa \ + --enable-hal \ + --enable-pcmciarules \ + --enable-obex \ + --enable-sync \ --with-cups=/usr + %{__make} \ cupsdir=%{cupsdir} %install rm -rf $RPM_BUILD_ROOT install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig} +install -d $RPM_BUILD_ROOT{/etc/udev/rules.d,/lib/udev} %{__make} install \ DESTDIR=$RPM_BUILD_ROOT \ - cupsdir=%{cupsdir} + cupsdir=%{cupsdir} \ + udevdir=/lib/udev +# patch to makefile +install transfer/bluetoothd-service-transfer $RPM_BUILD_ROOT%{_libdir}/bluetooth +install transfer/transfer.service $RPM_BUILD_ROOT%{_sysconfdir}/bluetooth +install sync/bluetoothd-service-sync $RPM_BUILD_ROOT%{_libdir}/bluetooth +# install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/bluetooth install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/bluetooth +install %{SOURCE3} $RPM_BUILD_ROOT/etc/udev/rules.d/70-bluetooth.rules +install %{SOURCE4} $RPM_BUILD_ROOT/lib/udev/bluetooth.sh +install daemon/passkey-agent $RPM_BUILD_ROOT/%{_bindir} +mv $RPM_BUILD_ROOT/etc/udev/bluetooth.rules \ + $RPM_BUILD_ROOT/etc/udev/rules.d/71-bluetooth.rules + +rm -f $RPM_BUILD_ROOT%{_libdir}/alsa-lib/*.la +rm -f $RPM_BUILD_ROOT%{_libdir}/gstreamer*/libgstbluetooth.la %clean rm -rf $RPM_BUILD_ROOT -%post init +%post /sbin/chkconfig --add bluetooth -if [ -f /var/lock/subsys/bluetooth ]; then - /etc/rc.d/init.d/bluetooth restart >&2 -else - echo "Run \"/etc/rc.d/init.d/bluetooth\" to start bluetooth." >&2 -fi +%service bluetooth restart -%postun init +%preun if [ "$1" = "0" ]; then - if [ -f /var/lock/subsys/bluetooth ]; then - /etc/rc.d/init.d/bluetooth stop 1>&2 - fi + %service bluetooth stop /sbin/chkconfig --del bluetooth fi %files %defattr(644,root,root,755) -%doc AUTHORS ChangeLog README +%doc AUTHORS ChangeLog README audio/audio-api.txt daemon/hal-namespace.txt hcid/dbus-api.txt input/input-api.txt network/network-api.txt serial/serial-api.txt %attr(755,root,root) %{_bindir}/* %attr(755,root,root) %{_sbindir}/* -%{_mandir}/man*/* -%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) /etc/sysconfig/bluetooth +%dir %{_libdir}/bluetooth +%attr(755,root,root) %{_libdir}/bluetooth/bluetoothd-service-audio +%attr(755,root,root) %{_libdir}/bluetooth/bluetoothd-service-network +%attr(755,root,root) %{_libdir}/bluetooth/bluetoothd-service-serial +%attr(755,root,root) %{_libdir}/bluetooth/bluetoothd-service-input +%attr(755,root,root) %{_libdir}/bluetooth/bluetoothd-service-transfer +%attr(755,root,root) %{_libdir}/bluetooth/bluetoothd-service-sync %dir %{_sysconfdir}/bluetooth -%config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/bluetooth/* -%attr(755,root,root) %{_sysconfdir}/hotplug/usb/bcm203x -%config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/hotplug/usb/bcm203x.usermap -%config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/pcmcia/bluetooth.conf -%config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/pcmcia/bluetooth +%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bluetooth/hcid.conf +%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bluetooth/rfcomm.conf +%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bluetooth/input.service +%{_sysconfdir}/bluetooth/audio.service +%{_sysconfdir}/bluetooth/network.service +%{_sysconfdir}/bluetooth/serial.service +%{_sysconfdir}/bluetooth/transfer.service +%attr(754,root,root) /etc/rc.d/init.d/bluetooth +%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/bluetooth +%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dbus-1/system.d/bluetooth.conf +%attr(755,root,root) /lib/udev/bluetooth.sh +%attr(755,root,root) /lib/udev/bluetooth_serial +%config(noreplace) %verify(not md5 mtime size) /etc/udev/rules.d/70-bluetooth.rules +%config(noreplace) %verify(not md5 mtime size) /etc/udev/rules.d/71-bluetooth.rules +%{_mandir}/man[18]/* +%{_mandir}/man5/hcid.conf.5* + +%files -n alsa-plugins-bluetooth +%defattr(644,root,root,755) +%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 %defattr(644,root,root,755) %attr(755,root,root) %{_prefix}/lib/cups/backend/bluetooth -%files init +%files -n gstreamer-bluetooth %defattr(644,root,root,755) -%attr(754,root,root) /etc/rc.d/init.d/bluetooth +%attr(755,root,root) %{_libdir}/gstreamer*/libgstbluetooth.so