5 |
Name: bluez |
Name: bluez |
6 |
Summary: Official Linux Bluetooth protocol stack |
Summary: Official Linux Bluetooth protocol stack |
7 |
Version: 4.101 |
Version: 4.101 |
8 |
Release: %mkrel 1 |
Release: %mkrel 2 |
9 |
License: GPLv2+ |
License: GPLv2+ |
10 |
Group: Communications |
Group: Communications |
11 |
URL: http://bluez.org/ |
URL: http://bluez.org/ |
39 |
Requires: python-gobject |
Requires: python-gobject |
40 |
Requires: bluez-pin |
Requires: bluez-pin |
41 |
Requires: obex-data-server |
Requires: obex-data-server |
42 |
Requires(post): rpm-helper >= 0.24.8-1 |
Requires(pre): filesystem >= 2.1.9-18 |
43 |
Requires(preun): rpm-helper >= 0.24.8-1 |
Requires(post): rpm-helper >= 0.24.8-1 |
44 |
|
Requires(preun): rpm-helper >= 0.24.8-1 |
45 |
Suggests: bluez-firmware |
Suggests: bluez-firmware |
46 |
|
|
47 |
%description |
%description |
65 |
%files |
%files |
66 |
%{_bindir}/* |
%{_bindir}/* |
67 |
%{_sbindir}/* |
%{_sbindir}/* |
|
/sbin/hidd |
|
|
/sbin/bluetoothd |
|
|
/lib/systemd/system/bluetooth.service |
|
68 |
%{_mandir}/man?/* |
%{_mandir}/man?/* |
69 |
%exclude %{_mandir}/man8/hid2hci.8* |
%exclude %{_mandir}/man8/hid2hci.8* |
70 |
%config(noreplace) %{_sysconfdir}/sysconfig/* |
%config(noreplace) %{_sysconfdir}/sysconfig/* |
120 |
Summary: Put HID proxying bluetooth HCI's into HCI mode |
Summary: Put HID proxying bluetooth HCI's into HCI mode |
121 |
Group: Communications |
Group: Communications |
122 |
Conflicts: %{name} < 4.99-1 |
Conflicts: %{name} < 4.99-1 |
123 |
|
Requires(post): filesystem >= 2.1.9-18 |
124 |
|
|
125 |
%description hid2hci |
%description hid2hci |
126 |
Most allinone PC's and bluetooth keyboard / mouse sets which include a |
Most allinone PC's and bluetooth keyboard / mouse sets which include a |
147 |
%{_mandir}/man8/hid2hci.8* |
%{_mandir}/man8/hid2hci.8* |
148 |
|
|
149 |
%post hid2hci |
%post hid2hci |
150 |
/sbin/udevadm trigger --subsystem-match=usb |
%{_bindir}/udevadm trigger --subsystem-match=usb |
151 |
|
|
152 |
#-------------------------------------------------------------------- |
#-------------------------------------------------------------------- |
153 |
|
|
154 |
%package -n %{libname} |
%package -n %{libname} |
155 |
Summary: Official Linux Bluetooth protocol stack |
Summary: Official Linux Bluetooth protocol stack |
156 |
Group: System/Libraries |
Group: System/Libraries |
157 |
|
Requires(pre): filesystem >= 2.1.9-18 |
158 |
|
|
159 |
%description -n %{libname} |
%description -n %{libname} |
160 |
These are the official Bluetooth communication libraries for Linux. |
These are the official Bluetooth communication libraries for Linux. |
161 |
|
|
162 |
%files -n %{libname} |
%files -n %{libname} |
163 |
/%{_lib}/lib*.so.%{major}* |
%{_libdir}/lib*.so.%{major}* |
164 |
|
|
165 |
#-------------------------------------------------------------------- |
#-------------------------------------------------------------------- |
166 |
|
|
167 |
%package -n %{devname} |
%package -n %{devname} |
168 |
Summary: Headers for developing programs that will use %name |
Summary: Headers for developing programs that will use %name |
169 |
Group: Development/C++ |
Group: Development/C++ |
170 |
|
Requires(pre): filesystem >= 2.1.9-18 |
171 |
Requires: %{libname} = %{version} |
Requires: %{libname} = %{version} |
172 |
Provides: lib%{name}-devel = %{version}-%{release} |
Provides: lib%{name}-devel = %{version}-%{release} |
173 |
Provides: %{name}-devel = %{version}-%{release} |
Provides: %{name}-devel = %{version}-%{release} |
180 |
%doc AUTHORS ChangeLog README |
%doc AUTHORS ChangeLog README |
181 |
%dir %{_includedir}/bluetooth |
%dir %{_includedir}/bluetooth |
182 |
%{_includedir}/bluetooth/*.h |
%{_includedir}/bluetooth/*.h |
183 |
/%{_lib}/*.so |
%{_libdir}/*.so |
184 |
%{_libdir}/pkgconfig/bluez.pc |
%{_libdir}/pkgconfig/bluez.pc |
185 |
|
|
186 |
#-------------------------------------------------------------------- |
#-------------------------------------------------------------------- |
194 |
autoreconf |
autoreconf |
195 |
# fix mdv bug 35444 |
# fix mdv bug 35444 |
196 |
%define _localstatedir %{_var} |
%define _localstatedir %{_var} |
197 |
%configure2_5x --libdir=/%{_lib} \ |
%configure2_5x \ |
198 |
--enable-cups \ |
--enable-cups \ |
199 |
--enable-dfutool \ |
--enable-dfutool \ |
200 |
--enable-tools \ |
--enable-tools \ |
215 |
%makeinstall_std rulesdir=/lib/udev/rules.d udevdir=/lib/udev |
%makeinstall_std rulesdir=/lib/udev/rules.d udevdir=/lib/udev |
216 |
|
|
217 |
|
|
218 |
mkdir -p %{buildroot}%{_libdir} |
#mkdir -p %{buildroot}%{_libdir} |
219 |
mv %{buildroot}/%{_lib}/gstreamer-0.10 %{buildroot}%{_libdir} |
#mv %{buildroot}/%{_lib}/gstreamer-0.10 %{buildroot}%{_libdir} |
220 |
|
|
221 |
echo "1234" > %{buildroot}%{_sysconfdir}/bluetooth/pin |
echo "1234" > %{buildroot}%{_sysconfdir}/bluetooth/pin |
222 |
|
|
232 |
|
|
233 |
|
|
234 |
# Remove the cups backend from libdir, and install it in /usr/lib whatever the install |
# Remove the cups backend from libdir, and install it in /usr/lib whatever the install |
235 |
if test -d %{buildroot}/%{_lib}/cups ; then |
%ifarch x86_64 |
236 |
install -D -m0755 %{buildroot}/%{_lib}/cups/backend/bluetooth %{buildroot}/usr/lib/cups/backend/bluetooth |
if test -d %{buildroot}%{_libdir}/cups ; then |
237 |
rm -rf %{buildroot}/%{_lib}/cups |
install -D -m0755 %{buildroot}%{_libdir}/cups/backend/bluetooth %{buildroot}/usr/lib/cups/backend/bluetooth |
238 |
|
rm -rf %{buildroot}%{_libdir}/cups |
239 |
fi |
fi |
240 |
|
%endif |
241 |
|
|
242 |
|
# (cg) can we drop this move+symlink? |
243 |
mkdir -p %{buildroot}/sbin |
mkdir -p %{buildroot}%{_sbindir} |
244 |
mv %{buildroot}%{_bindir}/hidd %{buildroot}/sbin/ |
mv %{buildroot}%{_bindir}/hidd %{buildroot}%{_sbindir} |
245 |
ln -s /sbin/hidd %{buildroot}%{_bindir}/hidd |
ln -s %{_sbindir}/hidd %{buildroot}%{_bindir}/hidd |
|
mv %{buildroot}%{_sbindir}/bluetoothd %{buildroot}/sbin/ |
|
|
ln -s /sbin/bluetoothd %{buildroot}%{_sbindir}/bluetoothd |
|
246 |
|
|
247 |
cp test/test-* %{buildroot}%{_bindir} |
cp test/test-* %{buildroot}%{_bindir} |
248 |
cp test/simple-agent %{buildroot}%{_bindir}/simple-agent |
cp test/simple-agent %{buildroot}%{_bindir}/simple-agent |
256 |
install -m0644 input/input.conf %{buildroot}%{_sysconfdir}/bluetooth/ |
install -m0644 input/input.conf %{buildroot}%{_sysconfdir}/bluetooth/ |
257 |
install -m0644 serial/serial.conf %{buildroot}%{_sysconfdir}/bluetooth/ |
install -m0644 serial/serial.conf %{buildroot}%{_sysconfdir}/bluetooth/ |
258 |
|
|
259 |
%__mkdir -p %{buildroot}%{_libdir}/alsa-lib/ |
#%__mkdir -p %{buildroot}%{_libdir}/alsa-lib/ |
260 |
%__mv %{buildroot}/%{_lib}/alsa-lib/*.so %{buildroot}%{_libdir}/alsa-lib/ |
#%__mv %{buildroot}/%{_lib}/alsa-lib/*.so %{buildroot}%{_libdir}/alsa-lib/ |
261 |
|
|
262 |
# remove unpackaged files |
# remove unpackaged files |
263 |
find %{buildroot} -name '*.la' -delete |
find %{buildroot} -name '*.la' -delete |