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