]>
Commit | Line | Data |
---|---|---|
a397e1f8 | 1 | Summary: Bluetooth utilities |
f8033937 | 2 | Summary(pl.UTF-8): Narzędzia Bluetooth |
a397e1f8 | 3 | Name: bluez-utils |
96f5fcbe | 4 | Version: 3.9 |
5 | Release: 1 | |
b936cbb0 | 6 | Epoch: 0 |
7173a540 | 7 | License: GPL v2 |
a397e1f8 | 8 | Group: Applications/System |
cc609d25 | 9 | #Source0Download: http://www.bluez.org/download.html |
a397e1f8 | 10 | Source0: http://bluez.sourceforge.net/download/%{name}-%{version}.tar.gz |
96f5fcbe | 11 | # Source0-md5: 023a5e6a436f86a28baeec91e4c62736 |
33bb3a38 JB |
12 | Source1: %{name}.init |
13 | Source2: %{name}.sysconfig | |
95e83f9e AM |
14 | Source3: %{name}-udev.rules |
15 | Source4: %{name}-udev.script | |
eed78b81 | 16 | Patch0: %{name}-etc_dir.patch |
eefd2dea | 17 | URL: http://www.bluez.org/ |
29edfa37 JB |
18 | BuildRequires: autoconf |
19 | BuildRequires: automake | |
344f6dee | 20 | BuildRequires: bison |
a3a5cb66 | 21 | BuildRequires: bluez-libs-devel >= 3.7 |
cc609d25 | 22 | BuildRequires: dbus-glib-devel >= 0.35 |
29edfa37 | 23 | BuildRequires: libtool |
eed78b81 | 24 | BuildRequires: libusb-devel |
cc609d25 | 25 | BuildRequires: pkgconfig |
66a4c701 | 26 | BuildRequires: rpmbuild(macros) >= 1.268 |
cc609d25 JB |
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 | |
a3a5cb66 | 32 | Requires: bluez-libs >= 3.7 |
fbf0e7d5 | 33 | Requires: rc-scripts |
7172a039 | 34 | Obsoletes: bluez-pan |
344f6dee | 35 | Obsoletes: bluez-sdp |
eefd2dea | 36 | Obsoletes: bluez-utils-init |
7888efe5 | 37 | Conflicts: bluez-bluefw |
a397e1f8 | 38 | ExcludeArch: s390 s390x |
29edfa37 | 39 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
e1d036a5 | 40 | |
eed78b81 JB |
41 | # currently lib, not %{_lib} (see cups.spec) |
42 | %define cupsdir /usr/lib/cups/backend | |
43 | ||
e1d036a5 | 44 | %description |
9059e282 | 45 | Bluetooth utilities: |
a397e1f8 AF |
46 | - hcitool |
47 | - hciattach | |
48 | - hciconfig | |
49 | - hcid | |
50 | - l2ping | |
29edfa37 JB |
51 | - start scripts (PLD) |
52 | - PCMCIA configuration files | |
e1d036a5 AF |
53 | |
54 | The BLUETOOTH trademarks are owned by Bluetooth SIG, Inc., U.S.A. | |
55 | ||
f89ecdc9 JR |
56 | %description -l pl.UTF-8 |
57 | Narzędzia Bluetooth: | |
29edfa37 JB |
58 | - hcitool |
59 | - hciattach | |
60 | - hciconfig | |
61 | - hcid | |
62 | - l2ping | |
63 | - skrypty startowe (PLD) | |
64 | - pliki konfiguracji PCMCIA | |
47cbf972 | 65 | |
e25494de JB |
66 | %package -n cups-backend-bluetooth |
67 | Summary: Bluetooth backend for CUPS | |
f8033937 | 68 | Summary(pl.UTF-8): Backend Bluetooth dla CUPS-a |
e25494de | 69 | Group: Applications/Printing |
a3a5cb66 | 70 | Requires: bluez-libs >= 3.7 |
e25494de JB |
71 | Requires: cups |
72 | ||
73 | %description -n cups-backend-bluetooth | |
74 | Bluetooth backend for CUPS. | |
75 | ||
f89ecdc9 | 76 | %description -n cups-backend-bluetooth -l pl.UTF-8 |
e25494de JB |
77 | Backend Bluetooth dla CUPS-a. |
78 | ||
9059e282 | 79 | %package init |
80 | Summary: Init script for Bluetooth subsystem | |
f8033937 | 81 | Summary(pl.UTF-8): Skrypt init dla podsystemu Bluetooth |
9059e282 | 82 | Group: Applications/System |
9059e282 | 83 | Requires(post,preun): /sbin/chkconfig |
fbf0e7d5 | 84 | Requires: %{name} = %{epoch}:%{version}-%{release} |
9059e282 | 85 | |
86 | %description init | |
87 | Init script for Bluetooth subsystem. | |
88 | ||
f89ecdc9 | 89 | %description init -l pl.UTF-8 |
9059e282 | 90 | Skrypt init dla podsystemu Bluetooth. |
91 | ||
e1d036a5 | 92 | %prep |
e1d036a5 | 93 | %setup -q |
b77afc9a | 94 | %patch0 -p1 |
33bb3a38 | 95 | |
e1d036a5 | 96 | %build |
7173a540 AF |
97 | %{__libtoolize} |
98 | %{__aclocal} | |
7173a540 | 99 | %{__autoconf} |
250c9a94 | 100 | %{__automake} |
7173a540 | 101 | %configure \ |
cc609d25 JB |
102 | --enable-avctrl \ |
103 | --enable-bccmd \ | |
eed78b81 | 104 | --enable-cups \ |
cc609d25 | 105 | --enable-dfutool \ |
eefd2dea | 106 | --enable-pcmciarules \ |
e25494de | 107 | --with-cups=/usr |
eed78b81 JB |
108 | %{__make} \ |
109 | cupsdir=%{cupsdir} | |
e1d036a5 AF |
110 | |
111 | %install | |
112 | rm -rf $RPM_BUILD_ROOT | |
33bb3a38 | 113 | install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig} |
962e0e98 | 114 | install -d $RPM_BUILD_ROOT{/etc/udev/rules.d,/lib/udev} |
33bb3a38 | 115 | |
29edfa37 | 116 | %{__make} install \ |
eed78b81 | 117 | DESTDIR=$RPM_BUILD_ROOT \ |
eefd2dea | 118 | cupsdir=%{cupsdir} \ |
119 | udevdir=/lib/udev | |
29edfa37 | 120 | |
33bb3a38 JB |
121 | install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/bluetooth |
122 | install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/bluetooth | |
95e83f9e AM |
123 | install %{SOURCE3} $RPM_BUILD_ROOT/etc/udev/rules.d/70-bluetooth.rules |
124 | install %{SOURCE4} $RPM_BUILD_ROOT/lib/udev/bluetooth.sh | |
96f5fcbe | 125 | install daemon/passkey-agent $RPM_BUILD_ROOT/%{_bindir} |
eefd2dea | 126 | mv $RPM_BUILD_ROOT/etc/udev/bluetooth.rules \ |
127 | $RPM_BUILD_ROOT/etc/udev/rules.d/71-bluetooth.rules | |
128 | ||
e1d036a5 AF |
129 | %clean |
130 | rm -rf $RPM_BUILD_ROOT | |
131 | ||
9059e282 | 132 | %post init |
7173a540 | 133 | /sbin/chkconfig --add bluetooth |
66a4c701 | 134 | %service bluetooth restart |
7173a540 | 135 | |
fbf0e7d5 | 136 | %preun init |
7173a540 | 137 | if [ "$1" = "0" ]; then |
66a4c701 | 138 | %service bluetooth stop |
7173a540 AF |
139 | /sbin/chkconfig --del bluetooth |
140 | fi | |
141 | ||
e1d036a5 | 142 | %files |
a397e1f8 | 143 | %defattr(644,root,root,755) |
7173a540 | 144 | %doc AUTHORS ChangeLog README |
a397e1f8 AF |
145 | %attr(755,root,root) %{_bindir}/* |
146 | %attr(755,root,root) %{_sbindir}/* | |
e1d036a5 | 147 | %{_mandir}/man*/* |
eefd2dea | 148 | |
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 | |
154 | ||
39df08b0 | 155 | %dir /etc/bluetooth |
eefd2dea | 156 | %dir /etc/sysconfig/bluetooth |
eba520e7 | 157 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/bluetooth |
eba520e7 | 158 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bluetooth/* |
75ef92a8 | 159 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dbus-1/system.d/* |
e25494de JB |
160 | |
161 | %files -n cups-backend-bluetooth | |
162 | %defattr(644,root,root,755) | |
163 | %attr(755,root,root) %{_prefix}/lib/cups/backend/bluetooth |