1 Summary: Bluetooth utilities
2 Summary(pl): Narzêdzia Bluetooth
8 Group: Applications/System
9 Source0: http://bluez.sourceforge.net/download/%{name}-%{version}.tar.gz
10 # Source0-md5: 5868bd9d939fe5df769df7f9f4ca2e7e
12 Source2: %{name}.sysconfig
13 Source3: %{name}-udev.rules
14 Source4: %{name}-udev.script
15 Patch0: %{name}-etc_dir.patch
16 URL: http://www.bluez.org/
17 BuildRequires: autoconf
18 BuildRequires: automake
20 BuildRequires: bluez-libs-devel >= 3.3
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 >= 3.3
30 Obsoletes: bluez-utils-init
31 Conflicts: bluez-bluefw
32 ExcludeArch: s390 s390x
33 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
35 # currently lib, not %{_lib} (see cups.spec)
36 %define cupsdir /usr/lib/cups/backend
46 - PCMCIA configuration files
48 The BLUETOOTH trademarks are owned by Bluetooth SIG, Inc., U.S.A.
57 - skrypty startowe (PLD)
58 - pliki konfiguracji PCMCIA
60 %package -n cups-backend-bluetooth
61 Summary: Bluetooth backend for CUPS
62 Summary(pl): Backend Bluetooth dla CUPS-a
63 Group: Applications/Printing
64 Requires: bluez-libs >= 2.21
67 %description -n cups-backend-bluetooth
68 Bluetooth backend for CUPS.
70 %description -n cups-backend-bluetooth -l pl
71 Backend Bluetooth dla CUPS-a.
74 Summary: Init script for Bluetooth subsystem
75 Summary(pl): Skrypt init dla podsystemu Bluetooth
76 Group: Applications/System
77 Requires(post,preun): /sbin/chkconfig
78 Requires: %{name} = %{epoch}:%{version}-%{release}
81 Init script for Bluetooth subsystem.
83 %description init -l pl
84 Skrypt init dla podsystemu Bluetooth.
97 --enable-pcmciarules \
103 rm -rf $RPM_BUILD_ROOT
104 install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig}
105 install -d $RPM_BUILD_ROOT{/etc/udev/rules.d,/lib/udev}
108 DESTDIR=$RPM_BUILD_ROOT \
112 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/bluetooth
113 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/bluetooth
114 install %{SOURCE3} $RPM_BUILD_ROOT/etc/udev/rules.d/70-bluetooth.rules
115 install %{SOURCE4} $RPM_BUILD_ROOT/lib/udev/bluetooth.sh
117 mv $RPM_BUILD_ROOT/etc/udev/bluetooth.rules \
118 $RPM_BUILD_ROOT/etc/udev/rules.d/71-bluetooth.rules
121 rm -rf $RPM_BUILD_ROOT
124 /sbin/chkconfig --add bluetooth
125 %service bluetooth restart
128 if [ "$1" = "0" ]; then
129 %service bluetooth stop
130 /sbin/chkconfig --del bluetooth
134 %defattr(644,root,root,755)
135 %doc AUTHORS ChangeLog README
136 %attr(755,root,root) %{_bindir}/*
137 %attr(755,root,root) %{_sbindir}/*
140 %attr(754,root,root) /etc/rc.d/init.d/bluetooth
141 %attr(755,root,root) /lib/udev/bluetooth.sh
142 %attr(755,root,root) /lib/udev/bluetooth_serial
143 %config(noreplace) %verify(not md5 mtime size) /etc/udev/rules.d/70-bluetooth.rules
144 %config(noreplace) %verify(not md5 mtime size) /etc/udev/rules.d/71-bluetooth.rules
146 %dir /etc/sysconfig/bluetooth
147 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/bluetooth
148 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bluetooth/*
149 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dbus-1/system.d/*
151 %files -n cups-backend-bluetooth
152 %defattr(644,root,root,755)
153 %attr(755,root,root) %{_prefix}/lib/cups/backend/bluetooth