]>
Commit | Line | Data |
---|---|---|
a397e1f8 | 1 | Summary: Bluetooth utilities |
f8033937 | 2 | Summary(pl.UTF-8): Narzędzia Bluetooth |
a397e1f8 | 3 | Name: bluez-utils |
f2f7005b | 4 | Version: 3.16 |
96f5fcbe | 5 | Release: 1 |
b936cbb0 | 6 | Epoch: 0 |
c9df9507 | 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 |
f2f7005b | 11 | # Source0-md5: f6e5bf09d5f282671aa0abe50e700ee6 |
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/ |
c9df9507 JB |
18 | BuildRequires: alsa-lib-devel >= 1.0.10-1 |
19 | BuildRequires: autoconf >= 2.50 | |
29edfa37 | 20 | BuildRequires: automake |
344f6dee | 21 | BuildRequires: bison |
f2f7005b | 22 | BuildRequires: bluez-libs-devel >= 3.16 |
c9df9507 JB |
23 | BuildRequires: dbus-glib-devel >= 0.60 |
24 | BuildRequires: glib2-devel >= 2.0 | |
25 | BuildRequires: hal-devel >= 0.5.8 | |
29edfa37 | 26 | BuildRequires: libtool |
eed78b81 | 27 | BuildRequires: libusb-devel |
cc609d25 | 28 | BuildRequires: pkgconfig |
66a4c701 | 29 | BuildRequires: rpmbuild(macros) >= 1.268 |
c9df9507 JB |
30 | # used only by noinst bluetoothd-service-sync |
31 | #BuildRequires: libopensync-devel | |
32 | # used only by noinst bluetoothd-service-transfer | |
cc609d25 | 33 | #BuildRequires: openobex-devel >= 1.1 |
d2b30df2 | 34 | Requires: bluez-libs >= 3.16 |
fbf0e7d5 | 35 | Requires: rc-scripts |
7172a039 | 36 | Obsoletes: bluez-pan |
344f6dee | 37 | Obsoletes: bluez-sdp |
eefd2dea | 38 | Obsoletes: bluez-utils-init |
7888efe5 | 39 | Conflicts: bluez-bluefw |
a397e1f8 | 40 | ExcludeArch: s390 s390x |
29edfa37 | 41 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
e1d036a5 | 42 | |
eed78b81 JB |
43 | # currently lib, not %{_lib} (see cups.spec) |
44 | %define cupsdir /usr/lib/cups/backend | |
45 | ||
e1d036a5 | 46 | %description |
9059e282 | 47 | Bluetooth utilities: |
a397e1f8 AF |
48 | - hcitool |
49 | - hciattach | |
50 | - hciconfig | |
51 | - hcid | |
52 | - l2ping | |
29edfa37 JB |
53 | - start scripts (PLD) |
54 | - PCMCIA configuration files | |
e1d036a5 AF |
55 | |
56 | The BLUETOOTH trademarks are owned by Bluetooth SIG, Inc., U.S.A. | |
57 | ||
f89ecdc9 JR |
58 | %description -l pl.UTF-8 |
59 | Narzędzia Bluetooth: | |
29edfa37 JB |
60 | - hcitool |
61 | - hciattach | |
62 | - hciconfig | |
63 | - hcid | |
64 | - l2ping | |
65 | - skrypty startowe (PLD) | |
66 | - pliki konfiguracji PCMCIA | |
47cbf972 | 67 | |
c9df9507 JB |
68 | Znaki towarowe BLUETOOTH są własnością Bluetooth SIG, Inc. z USA. |
69 | ||
70 | %package -n alsa-plugins-bluetooth | |
71 | Summary: ALSA plugins for Bluetooth audio devices | |
72 | Summary(pl.UTF-8): Wtyczki systemu ALSA dla urządzeń dźwiękowych Bluetooth | |
73 | Group: Libraries | |
74 | # bluetoothd + audio service | |
75 | Requires: %{name} = %{epoch}:%{version}-%{release} | |
76 | Requires: alsa-lib >= 1.0.10-1 | |
77 | ||
78 | %description -n alsa-plugins-bluetooth | |
79 | ALSA plugins for Bluetooth audio devices. | |
80 | ||
81 | %description -n alsa-plugins-bluetooth -l pl.UTF-8 | |
82 | Wtyczki systemu ALSA dla urządzeń dźwiękowych Bluetooth. | |
83 | ||
e25494de JB |
84 | %package -n cups-backend-bluetooth |
85 | Summary: Bluetooth backend for CUPS | |
f8033937 | 86 | Summary(pl.UTF-8): Backend Bluetooth dla CUPS-a |
e25494de | 87 | Group: Applications/Printing |
d2b30df2 | 88 | Requires: bluez-libs >= 3.16 |
e25494de JB |
89 | Requires: cups |
90 | ||
91 | %description -n cups-backend-bluetooth | |
92 | Bluetooth backend for CUPS. | |
93 | ||
f89ecdc9 | 94 | %description -n cups-backend-bluetooth -l pl.UTF-8 |
e25494de JB |
95 | Backend Bluetooth dla CUPS-a. |
96 | ||
e1d036a5 | 97 | %prep |
e1d036a5 | 98 | %setup -q |
b77afc9a | 99 | %patch0 -p1 |
33bb3a38 | 100 | |
e1d036a5 | 101 | %build |
7173a540 AF |
102 | %{__libtoolize} |
103 | %{__aclocal} | |
7173a540 | 104 | %{__autoconf} |
c9df9507 | 105 | %{__autoheader} |
250c9a94 | 106 | %{__automake} |
7173a540 | 107 | %configure \ |
c9df9507 | 108 | --enable-audio \ |
cc609d25 JB |
109 | --enable-avctrl \ |
110 | --enable-bccmd \ | |
eed78b81 | 111 | --enable-cups \ |
cc609d25 | 112 | --enable-dfutool \ |
c9df9507 JB |
113 | --enable-glib \ |
114 | --enable-network \ | |
eefd2dea | 115 | --enable-pcmciarules \ |
c9df9507 | 116 | --enable-serial \ |
e25494de | 117 | --with-cups=/usr |
eed78b81 JB |
118 | %{__make} \ |
119 | cupsdir=%{cupsdir} | |
e1d036a5 AF |
120 | |
121 | %install | |
122 | rm -rf $RPM_BUILD_ROOT | |
33bb3a38 | 123 | install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig} |
962e0e98 | 124 | install -d $RPM_BUILD_ROOT{/etc/udev/rules.d,/lib/udev} |
33bb3a38 | 125 | |
29edfa37 | 126 | %{__make} install \ |
eed78b81 | 127 | DESTDIR=$RPM_BUILD_ROOT \ |
eefd2dea | 128 | cupsdir=%{cupsdir} \ |
129 | udevdir=/lib/udev | |
29edfa37 | 130 | |
33bb3a38 JB |
131 | install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/bluetooth |
132 | install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/bluetooth | |
95e83f9e AM |
133 | install %{SOURCE3} $RPM_BUILD_ROOT/etc/udev/rules.d/70-bluetooth.rules |
134 | install %{SOURCE4} $RPM_BUILD_ROOT/lib/udev/bluetooth.sh | |
96f5fcbe | 135 | install daemon/passkey-agent $RPM_BUILD_ROOT/%{_bindir} |
eefd2dea | 136 | mv $RPM_BUILD_ROOT/etc/udev/bluetooth.rules \ |
137 | $RPM_BUILD_ROOT/etc/udev/rules.d/71-bluetooth.rules | |
138 | ||
c9df9507 JB |
139 | rm -f $RPM_BUILD_ROOT%{_libdir}/alsa-lib/*.la |
140 | ||
e1d036a5 AF |
141 | %clean |
142 | rm -rf $RPM_BUILD_ROOT | |
143 | ||
c9df9507 | 144 | %post |
7173a540 | 145 | /sbin/chkconfig --add bluetooth |
66a4c701 | 146 | %service bluetooth restart |
7173a540 | 147 | |
c9df9507 | 148 | %preun |
7173a540 | 149 | if [ "$1" = "0" ]; then |
66a4c701 | 150 | %service bluetooth stop |
7173a540 AF |
151 | /sbin/chkconfig --del bluetooth |
152 | fi | |
153 | ||
e1d036a5 | 154 | %files |
a397e1f8 | 155 | %defattr(644,root,root,755) |
c9df9507 | 156 | %doc AUTHORS ChangeLog README audio/audio-api.txt daemon/hal-namespace.txt hcid/dbus-api.txt input/input-api.txt network/network-api.txt serial/serial-api.txt |
a397e1f8 AF |
157 | %attr(755,root,root) %{_bindir}/* |
158 | %attr(755,root,root) %{_sbindir}/* | |
c9df9507 JB |
159 | %dir %{_libdir}/bluetooth |
160 | %attr(755,root,root) %{_libdir}/bluetooth/bluetoothd-service-audio | |
161 | %attr(755,root,root) %{_libdir}/bluetooth/bluetoothd-service-network | |
162 | %attr(755,root,root) %{_libdir}/bluetooth/bluetoothd-service-serial | |
163 | %dir %{_sysconfdir}/bluetooth | |
164 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bluetooth/hcid.conf | |
165 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bluetooth/rfcomm.conf | |
166 | %{_sysconfdir}/bluetooth/audio.service | |
167 | %{_sysconfdir}/bluetooth/network.service | |
168 | %{_sysconfdir}/bluetooth/serial.service | |
eefd2dea | 169 | %attr(754,root,root) /etc/rc.d/init.d/bluetooth |
c9df9507 JB |
170 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/bluetooth |
171 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dbus-1/system.d/bluetooth.conf | |
eefd2dea | 172 | %attr(755,root,root) /lib/udev/bluetooth.sh |
173 | %attr(755,root,root) /lib/udev/bluetooth_serial | |
174 | %config(noreplace) %verify(not md5 mtime size) /etc/udev/rules.d/70-bluetooth.rules | |
175 | %config(noreplace) %verify(not md5 mtime size) /etc/udev/rules.d/71-bluetooth.rules | |
c9df9507 JB |
176 | %{_mandir}/man[18]/* |
177 | %{_mandir}/man5/hcid.conf.5* | |
eefd2dea | 178 | |
c9df9507 JB |
179 | %files -n alsa-plugins-bluetooth |
180 | %defattr(644,root,root,755) | |
181 | %attr(755,root,root) %{_libdir}/alsa-lib/libasound_module_ctl_bluetooth.so | |
182 | %attr(755,root,root) %{_libdir}/alsa-lib/libasound_module_pcm_bluetooth.so | |
e25494de JB |
183 | |
184 | %files -n cups-backend-bluetooth | |
185 | %defattr(644,root,root,755) | |
186 | %attr(755,root,root) %{_prefix}/lib/cups/backend/bluetooth |