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