]>
Commit | Line | Data |
---|---|---|
a397e1f8 | 1 | Summary: Bluetooth utilities |
f8033937 | 2 | Summary(pl.UTF-8): Narzędzia Bluetooth |
a397e1f8 | 3 | Name: bluez-utils |
569c964f | 4 | Version: 3.29 |
52981407 | 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 |
569c964f | 11 | # Source0-md5: cace79ea11757f54671f0d86eb7a52be |
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 |
9976d110 | 22 | BuildRequires: bluez-libs-devel >= 3.29 |
c9df9507 JB |
23 | BuildRequires: dbus-glib-devel >= 0.60 |
24 | BuildRequires: glib2-devel >= 2.0 | |
0fd9455d JB |
25 | BuildRequires: gstreamer-devel >= 0.10 |
26 | BuildRequires: gstreamer-plugins-base-devel >= 0.10 | |
c9df9507 | 27 | BuildRequires: hal-devel >= 0.5.8 |
28279c4f | 28 | #BuildRequires: libopensync-devel < 0.30 |
29edfa37 | 29 | BuildRequires: libtool |
eed78b81 | 30 | BuildRequires: libusb-devel |
28279c4f | 31 | BuildRequires: openobex-devel >= 1.1 |
0fd9455d | 32 | BuildRequires: pkgconfig >= 1:0.9.0 |
66a4c701 | 33 | BuildRequires: rpmbuild(macros) >= 1.268 |
9976d110 | 34 | Requires: bluez-libs >= 3.29 |
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 | |
dc9640b5 | 45 | %define udevdir /%{_lib}/udev |
eed78b81 | 46 | |
e1d036a5 | 47 | %description |
9059e282 | 48 | Bluetooth utilities: |
a397e1f8 AF |
49 | - hcitool |
50 | - hciattach | |
51 | - hciconfig | |
52 | - hcid | |
53 | - l2ping | |
29edfa37 JB |
54 | - start scripts (PLD) |
55 | - PCMCIA configuration files | |
e1d036a5 AF |
56 | |
57 | The BLUETOOTH trademarks are owned by Bluetooth SIG, Inc., U.S.A. | |
58 | ||
f89ecdc9 JR |
59 | %description -l pl.UTF-8 |
60 | Narzędzia Bluetooth: | |
29edfa37 JB |
61 | - hcitool |
62 | - hciattach | |
63 | - hciconfig | |
64 | - hcid | |
65 | - l2ping | |
66 | - skrypty startowe (PLD) | |
67 | - pliki konfiguracji PCMCIA | |
47cbf972 | 68 | |
c9df9507 JB |
69 | Znaki towarowe BLUETOOTH są własnością Bluetooth SIG, Inc. z USA. |
70 | ||
71 | %package -n alsa-plugins-bluetooth | |
72 | Summary: ALSA plugins for Bluetooth audio devices | |
73 | Summary(pl.UTF-8): Wtyczki systemu ALSA dla urządzeń dźwiękowych Bluetooth | |
74 | Group: Libraries | |
75 | # bluetoothd + audio service | |
76 | Requires: %{name} = %{epoch}:%{version}-%{release} | |
77 | Requires: alsa-lib >= 1.0.10-1 | |
78 | ||
79 | %description -n alsa-plugins-bluetooth | |
80 | ALSA plugins for Bluetooth audio devices. | |
81 | ||
82 | %description -n alsa-plugins-bluetooth -l pl.UTF-8 | |
83 | Wtyczki systemu ALSA dla urządzeń dźwiękowych Bluetooth. | |
84 | ||
e25494de JB |
85 | %package -n cups-backend-bluetooth |
86 | Summary: Bluetooth backend for CUPS | |
f8033937 | 87 | Summary(pl.UTF-8): Backend Bluetooth dla CUPS-a |
e25494de | 88 | Group: Applications/Printing |
9976d110 | 89 | Requires: bluez-libs >= 3.29 |
e25494de JB |
90 | Requires: cups |
91 | ||
92 | %description -n cups-backend-bluetooth | |
93 | Bluetooth backend for CUPS. | |
94 | ||
f89ecdc9 | 95 | %description -n cups-backend-bluetooth -l pl.UTF-8 |
e25494de JB |
96 | Backend Bluetooth dla CUPS-a. |
97 | ||
cf2b0853 | 98 | %package -n gstreamer-bluetooth |
0fd9455d JB |
99 | Summary: Bluetooth support for gstreamer |
100 | Summary(pl.UTF-8): Obsługa Bluetooth dla gstreamera | |
101 | Group: Libraries | |
9976d110 | 102 | Requires: bluez-libs >= 3.29 |
0fd9455d JB |
103 | Requires: gstreamer >= 0.10 |
104 | Requires: gstreamer-plugins-base >= 0.10 | |
cf2b0853 MWP |
105 | |
106 | %description -n gstreamer-bluetooth | |
107 | Bluetooth support for gstreamer. | |
108 | ||
109 | %description -n gstreamer-bluetooth -l pl.UTF-8 | |
110 | Obsługa Bluetooth dla gstreamera. | |
111 | ||
e1d036a5 | 112 | %prep |
e1d036a5 | 113 | %setup -q |
b77afc9a | 114 | %patch0 -p1 |
33bb3a38 | 115 | |
e1d036a5 | 116 | %build |
7173a540 AF |
117 | %{__libtoolize} |
118 | %{__aclocal} | |
7173a540 | 119 | %{__autoconf} |
c9df9507 | 120 | %{__autoheader} |
250c9a94 | 121 | %{__automake} |
7173a540 | 122 | %configure \ |
28279c4f | 123 | --enable-alsa \ |
c9df9507 | 124 | --enable-audio \ |
cc609d25 JB |
125 | --enable-avctrl \ |
126 | --enable-bccmd \ | |
eed78b81 | 127 | --enable-cups \ |
cc609d25 | 128 | --enable-dfutool \ |
c9df9507 | 129 | --enable-glib \ |
4184b882 | 130 | --enable-gstreamer \ |
28279c4f JB |
131 | --enable-hal \ |
132 | --enable-hid2hci \ | |
4184b882 | 133 | --enable-input \ |
c9df9507 | 134 | --enable-network \ |
28279c4f | 135 | --enable-obex \ |
eefd2dea | 136 | --enable-pcmciarules \ |
c9df9507 | 137 | --enable-serial \ |
28279c4f | 138 | --disable-sync \ |
4184b882 | 139 | --enable-test \ |
de47cb82 | 140 | --enable-usb \ |
e25494de | 141 | --with-cups=/usr |
4184b882 | 142 | |
eed78b81 | 143 | %{__make} \ |
dc9640b5 JK |
144 | cupsdir=%{cupsdir} \ |
145 | udevdir=%{udevdir} | |
e1d036a5 AF |
146 | |
147 | %install | |
148 | rm -rf $RPM_BUILD_ROOT | |
33bb3a38 | 149 | install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig} |
dc9640b5 | 150 | install -d $RPM_BUILD_ROOT{/etc/udev/rules.d,%{udevdir}} |
33bb3a38 | 151 | |
29edfa37 | 152 | %{__make} install \ |
eed78b81 | 153 | DESTDIR=$RPM_BUILD_ROOT \ |
eefd2dea | 154 | cupsdir=%{cupsdir} \ |
dc9640b5 | 155 | udevdir=%{udevdir} |
28279c4f JB |
156 | |
157 | # noinst | |
28279c4f | 158 | #install sync/bluetoothd-service-sync $RPM_BUILD_ROOT%{_libdir}/bluetooth |
29edfa37 | 159 | |
33bb3a38 JB |
160 | install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/bluetooth |
161 | install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/bluetooth | |
95e83f9e | 162 | install %{SOURCE3} $RPM_BUILD_ROOT/etc/udev/rules.d/70-bluetooth.rules |
dc9640b5 | 163 | install %{SOURCE4} $RPM_BUILD_ROOT%{udevdir}/bluetooth.sh |
96f5fcbe | 164 | install daemon/passkey-agent $RPM_BUILD_ROOT/%{_bindir} |
eefd2dea | 165 | mv $RPM_BUILD_ROOT/etc/udev/bluetooth.rules \ |
166 | $RPM_BUILD_ROOT/etc/udev/rules.d/71-bluetooth.rules | |
167 | ||
c9df9507 | 168 | rm -f $RPM_BUILD_ROOT%{_libdir}/alsa-lib/*.la |
0fd9455d | 169 | rm -f $RPM_BUILD_ROOT%{_libdir}/gstreamer*/libgstbluetooth.la |
c9df9507 | 170 | |
e1d036a5 AF |
171 | %clean |
172 | rm -rf $RPM_BUILD_ROOT | |
173 | ||
c9df9507 | 174 | %post |
7173a540 | 175 | /sbin/chkconfig --add bluetooth |
66a4c701 | 176 | %service bluetooth restart |
7173a540 | 177 | |
c9df9507 | 178 | %preun |
7173a540 | 179 | if [ "$1" = "0" ]; then |
66a4c701 | 180 | %service bluetooth stop |
7173a540 AF |
181 | /sbin/chkconfig --del bluetooth |
182 | fi | |
183 | ||
e1d036a5 | 184 | %files |
a397e1f8 | 185 | %defattr(644,root,root,755) |
c9df9507 | 186 | %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 |
187 | %attr(755,root,root) %{_bindir}/* |
188 | %attr(755,root,root) %{_sbindir}/* | |
c9df9507 JB |
189 | %dir %{_libdir}/bluetooth |
190 | %attr(755,root,root) %{_libdir}/bluetooth/bluetoothd-service-audio | |
191 | %attr(755,root,root) %{_libdir}/bluetooth/bluetoothd-service-network | |
192 | %attr(755,root,root) %{_libdir}/bluetooth/bluetoothd-service-serial | |
4184b882 | 193 | %attr(755,root,root) %{_libdir}/bluetooth/bluetoothd-service-input |
28279c4f | 194 | #%attr(755,root,root) %{_libdir}/bluetooth/bluetoothd-service-sync |
c9df9507 JB |
195 | %dir %{_sysconfdir}/bluetooth |
196 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bluetooth/hcid.conf | |
197 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bluetooth/rfcomm.conf | |
4184b882 | 198 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bluetooth/input.service |
569c964f | 199 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bluetooth/audio.conf |
c9df9507 JB |
200 | %{_sysconfdir}/bluetooth/audio.service |
201 | %{_sysconfdir}/bluetooth/network.service | |
202 | %{_sysconfdir}/bluetooth/serial.service | |
eefd2dea | 203 | %attr(754,root,root) /etc/rc.d/init.d/bluetooth |
c9df9507 JB |
204 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/bluetooth |
205 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dbus-1/system.d/bluetooth.conf | |
dc9640b5 JK |
206 | %attr(755,root,root) %{udevdir}/bluetooth.sh |
207 | %attr(755,root,root) %{udevdir}/bluetooth_serial | |
eefd2dea | 208 | %config(noreplace) %verify(not md5 mtime size) /etc/udev/rules.d/70-bluetooth.rules |
209 | %config(noreplace) %verify(not md5 mtime size) /etc/udev/rules.d/71-bluetooth.rules | |
c9df9507 JB |
210 | %{_mandir}/man[18]/* |
211 | %{_mandir}/man5/hcid.conf.5* | |
eefd2dea | 212 | |
c9df9507 JB |
213 | %files -n alsa-plugins-bluetooth |
214 | %defattr(644,root,root,755) | |
215 | %attr(755,root,root) %{_libdir}/alsa-lib/libasound_module_ctl_bluetooth.so | |
216 | %attr(755,root,root) %{_libdir}/alsa-lib/libasound_module_pcm_bluetooth.so | |
e25494de JB |
217 | |
218 | %files -n cups-backend-bluetooth | |
219 | %defattr(644,root,root,755) | |
220 | %attr(755,root,root) %{_prefix}/lib/cups/backend/bluetooth | |
cf2b0853 MWP |
221 | |
222 | %files -n gstreamer-bluetooth | |
223 | %defattr(644,root,root,755) | |
224 | %attr(755,root,root) %{_libdir}/gstreamer*/libgstbluetooth.so |