X-Git-Url: http://git.pld-linux.org/?p=packages%2Fbluez-utils.git;a=blobdiff_plain;f=bluez-utils.spec;h=518f6370983e0f137f8728d77f607d7bf0a4de2d;hp=e5c33d8779757a2ef4a9765d24c211b74dd359cc;hb=df2fe191e490815d684c630c75f05e878bd985b3;hpb=56c88e83acdb0590aa21f86f4039375e64399c7b diff --git a/bluez-utils.spec b/bluez-utils.spec index e5c33d8..518f637 100644 --- a/bluez-utils.spec +++ b/bluez-utils.spec @@ -1,35 +1,37 @@ Summary: Bluetooth utilities -Summary(pl): Narzêdzia Bluetooth +Summary(pl.UTF-8): Narzędzia Bluetooth Name: bluez-utils -Version: 3.5 -Release: 1 +Version: 3.30 +Release: 2 Epoch: 0 -License: GPL v2 +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: 1816753771a9949e0589a3e8631d46b5 +# Source0-md5: 3d17bb712d243bb1b316f7e8a909fa82 Source1: %{name}.init Source2: %{name}.sysconfig Source3: %{name}-udev.rules Source4: %{name}-udev.script Patch0: %{name}-etc_dir.patch URL: http://www.bluez.org/ -BuildRequires: autoconf +BuildRequires: alsa-lib-devel >= 1.0.10-1 +BuildRequires: autoconf >= 2.50 BuildRequires: automake BuildRequires: bison -BuildRequires: bluez-libs-devel >= 3.5 -BuildRequires: dbus-glib-devel >= 0.35 +BuildRequires: bluez-libs-devel >= 3.30 +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: libopensync-devel < 0.30 BuildRequires: libtool BuildRequires: libusb-devel -BuildRequires: pkgconfig +BuildRequires: openobex-devel >= 1.1 +BuildRequires: pkgconfig >= 1:0.9.0 BuildRequires: rpmbuild(macros) >= 1.268 -# for future use (ALSA plugins not finished) -#BuildRequires: alsa-lib-devel >= 0.9 -# for future use (fuse module is just testing stub now) -#BuildRequires: libfuse-devel -#BuildRequires: openobex-devel >= 1.1 -Requires: bluez-libs >= 3.5 +Requires: bluez-libs >= 3.30 Requires: rc-scripts Obsoletes: bluez-pan Obsoletes: bluez-sdp @@ -40,6 +42,7 @@ BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) # currently lib, not %{_lib} (see cups.spec) %define cupsdir /usr/lib/cups/backend +%define udevdir /%{_lib}/udev %description Bluetooth utilities: @@ -47,47 +50,66 @@ Bluetooth utilities: - hciattach - hciconfig - hcid + - hidd - l2ping - start scripts (PLD) - PCMCIA configuration files 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 - hcid + - hidd - l2ping - 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 >= 3.5 +Requires: bluez-libs >= 3.30 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(post,preun): /sbin/chkconfig -Requires: %{name} = %{epoch}:%{version}-%{release} +%package -n gstreamer-bluetooth +Summary: Bluetooth support for gstreamer +Summary(pl.UTF-8): Obsługa Bluetooth dla gstreamera +Group: Libraries +Requires: bluez-libs >= 3.30 +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 @@ -97,43 +119,68 @@ Skrypt init dla podsystemu Bluetooth. %{__libtoolize} %{__aclocal} %{__autoconf} +%{__autoheader} %{__automake} %configure \ + --enable-alsa \ + --enable-audio \ --enable-avctrl \ --enable-bccmd \ --enable-cups \ --enable-dfutool \ + --enable-glib \ + --enable-gstreamer \ + --enable-hal \ + --enable-hid2hci \ + --enable-input \ + --enable-network \ + --enable-obex \ --enable-pcmciarules \ + --enable-sdpd \ + --enable-hidd \ + --enable-serial \ + --disable-sync \ + --enable-test \ + --enable-usb \ --with-cups=/usr + %{__make} \ - cupsdir=%{cupsdir} + cupsdir=%{cupsdir} \ + udevdir=%{udevdir} %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} +install -d $RPM_BUILD_ROOT{/etc/udev/rules.d,%{udevdir}} %{__make} install \ DESTDIR=$RPM_BUILD_ROOT \ cupsdir=%{cupsdir} \ - udevdir=/lib/udev + udevdir=%{udevdir} + +# noinst +#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 %{SOURCE4} $RPM_BUILD_ROOT%{udevdir}/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}/bluetooth/plugins/*.la +rm -f $RPM_BUILD_ROOT%{_libdir}/gstreamer*/libgstbluetooth.la + %clean rm -rf $RPM_BUILD_ROOT -%post init +%post /sbin/chkconfig --add bluetooth %service bluetooth restart -%preun init +%preun if [ "$1" = "0" ]; then %service bluetooth stop /sbin/chkconfig --del bluetooth @@ -141,23 +188,34 @@ 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*/* - +%dir %{_libdir}/bluetooth +%dir %{_libdir}/bluetooth/plugins +%attr(755,root,root) %{_libdir}/bluetooth/plugins/*.so +%dir %{_sysconfdir}/bluetooth +%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bluetooth/hcid.conf +%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bluetooth/rfcomm.conf %attr(754,root,root) /etc/rc.d/init.d/bluetooth -%attr(755,root,root) /lib/udev/bluetooth.sh -%attr(755,root,root) /lib/udev/bluetooth_serial +%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) %{udevdir}/bluetooth.sh +%attr(755,root,root) %{udevdir}/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* -%dir /etc/bluetooth -%dir /etc/sysconfig/bluetooth -%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/bluetooth -%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bluetooth/* -%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dbus-1/system.d/* +%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 -n gstreamer-bluetooth +%defattr(644,root,root,755) +%attr(755,root,root) %{_libdir}/gstreamer*/libgstbluetooth.so