Summary: Bluetooth utilities Summary(pl): Narzędzia Bluetooth Name: bluez-utils Version: 2.25 Release: 4 Epoch: 0 License: GPL v2 Group: Applications/System Source0: http://bluez.sourceforge.net/download/%{name}-%{version}.tar.gz # Source0-md5: ae3729ab5592be06ed01b973d4b3e9fe Source1: %{name}.init Source2: %{name}.sysconfig Source3: %{name}-udev.rules Source4: %{name}-udev.script Patch0: %{name}-etc_dir.patch Patch1: %{name}-invalid-timeval.patch Patch2: %{name}-poll-timeout.patch URL: http://bluez.sourceforge.net/ BuildRequires: autoconf BuildRequires: automake BuildRequires: bison BuildRequires: bluez-libs-devel >= 2.25 BuildRequires: dbus-devel >= 0.33 BuildRequires: libtool BuildRequires: libusb-devel BuildRequires: rpmbuild(macros) >= 1.268 # alsa-lib-devel, openobex-devel - currently only checked for, not used Requires: bluez-libs >= 2.21 Requires: rc-scripts Obsoletes: bluez-pan Obsoletes: bluez-sdp Conflicts: bluez-bluefw ExcludeArch: s390 s390x BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) # currently lib, not %{_lib} (see cups.spec) %define cupsdir /usr/lib/cups/backend %description Bluetooth utilities: - hcitool - hciattach - hciconfig - hcid - 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: - hcitool - hciattach - hciconfig - hcid - l2ping - skrypty startowe (PLD) - pliki konfiguracji PCMCIA %package -n cups-backend-bluetooth Summary: Bluetooth backend for CUPS Summary(pl): Backend Bluetooth dla CUPS-a Group: Applications/Printing Requires: bluez-libs >= 2.21 Requires: cups %description -n cups-backend-bluetooth Bluetooth backend for CUPS. %description -n cups-backend-bluetooth -l pl 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} %description init Init script for Bluetooth subsystem. %description init -l pl Skrypt init dla podsystemu Bluetooth. %prep %setup -q %patch0 -p1 %patch1 -p1 %patch2 -p1 %build %{__libtoolize} %{__aclocal} %{__autoconf} %{__automake} %configure \ --enable-bcm203x \ --enable-cups \ --enable-pcmcia \ --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} 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 %clean rm -rf $RPM_BUILD_ROOT %post init /sbin/chkconfig --add bluetooth %service bluetooth restart %preun init if [ "$1" = "0" ]; then %service bluetooth stop /sbin/chkconfig --del bluetooth fi %files %defattr(644,root,root,755) %doc AUTHORS ChangeLog README %attr(755,root,root) %{_bindir}/* %attr(755,root,root) %{_sbindir}/* %{_mandir}/man*/* %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/bluetooth %dir %{_sysconfdir}/bluetooth %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bluetooth/* %attr(755,root,root) %{_sysconfdir}/hotplug/usb/bcm203x %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dbus-1/system.d/* %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/hotplug/usb/bcm203x.usermap %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/pcmcia/bluetooth %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/pcmcia/bluetooth.conf %files -n cups-backend-bluetooth %defattr(644,root,root,755) %attr(755,root,root) %{_prefix}/lib/cups/backend/bluetooth %files init %defattr(644,root,root,755) %attr(754,root,root) /etc/rc.d/init.d/bluetooth %attr(755,root,root) /lib/udev/bluetooth.sh %config(noreplace) %verify(not md5 mtime size) /etc/udev/rules.d/70-bluetooth.rules