1 Summary: Bluetooth utilities
2 Summary(pl): Narzêdzia Bluetooth
8 Group: Applications/System
9 #Source0Download: http://www.bluez.org/download.html
10 Source0: http://bluez.sourceforge.net/download/%{name}-%{version}.tar.gz
11 # Source0-md5: f63b440396baee7dee9259395a205d48
13 Source2: %{name}.sysconfig
14 Source3: %{name}-udev.rules
15 Source4: %{name}-udev.script
16 Patch0: %{name}-etc_dir.patch
17 URL: http://www.bluez.org/
18 BuildRequires: autoconf
19 BuildRequires: automake
21 BuildRequires: bluez-libs-devel >= 3.4
22 BuildRequires: dbus-glib-devel >= 0.35
23 BuildRequires: libtool
24 BuildRequires: libusb-devel
25 BuildRequires: pkgconfig
26 BuildRequires: rpmbuild(macros) >= 1.268
27 # for future use (ALSA plugins not finished)
28 #BuildRequires: alsa-lib-devel >= 0.9
29 # for future use (fuse module is just testing stub now)
30 #BuildRequires: libfuse-devel
31 #BuildRequires: openobex-devel >= 1.1
32 Requires: bluez-libs >= 3.4
36 Obsoletes: bluez-utils-init
37 Conflicts: bluez-bluefw
38 ExcludeArch: s390 s390x
39 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
41 # currently lib, not %{_lib} (see cups.spec)
42 %define cupsdir /usr/lib/cups/backend
52 - PCMCIA configuration files
54 The BLUETOOTH trademarks are owned by Bluetooth SIG, Inc., U.S.A.
63 - skrypty startowe (PLD)
64 - pliki konfiguracji PCMCIA
66 %package -n cups-backend-bluetooth
67 Summary: Bluetooth backend for CUPS
68 Summary(pl): Backend Bluetooth dla CUPS-a
69 Group: Applications/Printing
70 Requires: bluez-libs >= 3.4
73 %description -n cups-backend-bluetooth
74 Bluetooth backend for CUPS.
76 %description -n cups-backend-bluetooth -l pl
77 Backend Bluetooth dla CUPS-a.
80 Summary: Init script for Bluetooth subsystem
81 Summary(pl): Skrypt init dla podsystemu Bluetooth
82 Group: Applications/System
83 Requires(post,preun): /sbin/chkconfig
84 Requires: %{name} = %{epoch}:%{version}-%{release}
87 Init script for Bluetooth subsystem.
89 %description init -l pl
90 Skrypt init dla podsystemu Bluetooth.
106 --enable-pcmciarules \
112 rm -rf $RPM_BUILD_ROOT
113 install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig}
114 install -d $RPM_BUILD_ROOT{/etc/udev/rules.d,/lib/udev}
117 DESTDIR=$RPM_BUILD_ROOT \
121 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/bluetooth
122 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/bluetooth
123 install %{SOURCE3} $RPM_BUILD_ROOT/etc/udev/rules.d/70-bluetooth.rules
124 install %{SOURCE4} $RPM_BUILD_ROOT/lib/udev/bluetooth.sh
126 mv $RPM_BUILD_ROOT/etc/udev/bluetooth.rules \
127 $RPM_BUILD_ROOT/etc/udev/rules.d/71-bluetooth.rules
130 rm -rf $RPM_BUILD_ROOT
133 /sbin/chkconfig --add bluetooth
134 %service bluetooth restart
137 if [ "$1" = "0" ]; then
138 %service bluetooth stop
139 /sbin/chkconfig --del bluetooth
143 %defattr(644,root,root,755)
144 %doc AUTHORS ChangeLog README
145 %attr(755,root,root) %{_bindir}/*
146 %attr(755,root,root) %{_sbindir}/*
149 %attr(754,root,root) /etc/rc.d/init.d/bluetooth
150 %attr(755,root,root) /lib/udev/bluetooth.sh
151 %attr(755,root,root) /lib/udev/bluetooth_serial
152 %config(noreplace) %verify(not md5 mtime size) /etc/udev/rules.d/70-bluetooth.rules
153 %config(noreplace) %verify(not md5 mtime size) /etc/udev/rules.d/71-bluetooth.rules
156 %dir /etc/sysconfig/bluetooth
157 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/bluetooth
158 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bluetooth/*
159 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dbus-1/system.d/*
161 %files -n cups-backend-bluetooth
162 %defattr(644,root,root,755)
163 %attr(755,root,root) %{_prefix}/lib/cups/backend/bluetooth