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