2 # - check init script, add support for rfcomm bind on startup
3 Summary: Bluetooth utilities
4 Summary(pl): Narzêdzia Bluetooth
10 Group: Applications/System
11 Source0: http://bluez.sourceforge.net/download/%{name}-%{version}.tar.gz
12 # Source0-md5: ae3729ab5592be06ed01b973d4b3e9fe
14 Source2: %{name}.sysconfig
15 Patch0: %{name}-etc_dir.patch
16 URL: http://bluez.sourceforge.net/
17 BuildRequires: autoconf
18 BuildRequires: automake
20 BuildRequires: bluez-libs-devel >= 2.25
21 BuildRequires: dbus-devel >= 0.33
22 BuildRequires: libtool
23 BuildRequires: libusb-devel
24 BuildRequires: rpmbuild(macros) >= 1.268
25 # alsa-lib-devel, openobex-devel - currently only checked for, not used
26 Requires: bluez-libs >= 2.21
30 Conflicts: bluez-bluefw
31 ExcludeArch: s390 s390x
32 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
34 # currently lib, not %{_lib} (see cups.spec)
35 %define cupsdir /usr/lib/cups/backend
45 - PCMCIA configuration files
47 The BLUETOOTH trademarks are owned by Bluetooth SIG, Inc., U.S.A.
56 - skrypty startowe (PLD)
57 - pliki konfiguracji PCMCIA
59 %package -n cups-backend-bluetooth
60 Summary: Bluetooth backend for CUPS
61 Summary(pl): Backend Bluetooth dla CUPS-a
62 Group: Applications/Printing
63 Requires: bluez-libs >= 2.21
66 %description -n cups-backend-bluetooth
67 Bluetooth backend for CUPS.
69 %description -n cups-backend-bluetooth -l pl
70 Backend Bluetooth dla CUPS-a.
73 Summary: Init script for Bluetooth subsystem
74 Summary(pl): Skrypt init dla podsystemu Bluetooth
75 Group: Applications/System
76 Requires(post,preun): /sbin/chkconfig
77 Requires: %{name} = %{epoch}:%{version}-%{release}
80 Init script for Bluetooth subsystem.
82 %description init -l pl
83 Skrypt init dla podsystemu Bluetooth.
103 rm -rf $RPM_BUILD_ROOT
104 install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig}
107 DESTDIR=$RPM_BUILD_ROOT \
110 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/bluetooth
111 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/bluetooth
114 rm -rf $RPM_BUILD_ROOT
117 /sbin/chkconfig --add bluetooth
118 %service bluetooth restart
121 if [ "$1" = "0" ]; then
122 %service bluetooth stop
123 /sbin/chkconfig --del bluetooth
127 %defattr(644,root,root,755)
128 %doc AUTHORS ChangeLog README
129 %attr(755,root,root) %{_bindir}/*
130 %attr(755,root,root) %{_sbindir}/*
132 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/bluetooth
133 %dir %{_sysconfdir}/bluetooth
134 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bluetooth/*
135 %attr(755,root,root) %{_sysconfdir}/hotplug/usb/bcm203x
136 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/hotplug/usb/bcm203x.usermap
137 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/pcmcia/bluetooth.conf
138 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/pcmcia/bluetooth
140 %files -n cups-backend-bluetooth
141 %defattr(644,root,root,755)
142 %attr(755,root,root) %{_prefix}/lib/cups/backend/bluetooth
145 %defattr(644,root,root,755)
146 %attr(754,root,root) /etc/rc.d/init.d/bluetooth