1 Summary: Bluetooth utilities
2 Summary(pl.UTF-8): Narzędzia Bluetooth
8 Group: Applications/System
9 #Source0Download: http://www.bluez.org/download.html
10 Source0: http://www.kernel.org/pub/linux/bluetooth/%{name}-%{version}.tar.gz
11 # Source0-md5: 60344bd096fda1742e4dbd603b1a06e9
13 Source2: %{name}.sysconfig
14 Source3: %{name}-udev.rules
15 Source4: %{name}-udev.script
16 Patch0: %{name}-etc_dir.patch
17 URL: http://www.bluez.org/
18 BuildRequires: alsa-lib-devel >= 1.0.10-1
19 BuildRequires: autoconf >= 2.50
20 BuildRequires: automake
22 BuildRequires: dbus-glib-devel >= 0.60
23 BuildRequires: glib2-devel >= 2.0
24 BuildRequires: gstreamer-devel >= 0.10
25 BuildRequires: gstreamer-plugins-base-devel >= 0.10
26 BuildRequires: libsndfile-devel
27 BuildRequires: libtool
28 BuildRequires: libusb-devel
29 BuildRequires: openobex-devel >= 1.1
30 BuildRequires: pkgconfig >= 1:0.9.0
31 BuildRequires: rpmbuild(macros) >= 1.268
32 Requires: %{name}-libs = %{epoch}:%{version}-%{release}
34 Obsoletes: bluez-hciemu
37 Obsoletes: bluez-utils-init
38 Conflicts: bluez-bluefw
39 ExcludeArch: s390 s390x
40 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
42 # currently lib, not %{_lib} (see cups.spec)
43 %define cupsdir /usr/lib/cups/backend
44 %define udevdir /%{_lib}/udev
57 - PCMCIA configuration files
59 The BLUETOOTH trademarks are owned by Bluetooth SIG, Inc., U.S.A.
61 %description -l pl.UTF-8
71 - skrypty startowe (PLD)
72 - pliki konfiguracji PCMCIA
74 Znaki towarowe BLUETOOTH są własnością Bluetooth SIG, Inc. z USA.
76 %package -n alsa-plugins-bluetooth
77 Summary: ALSA plugins for Bluetooth audio devices
78 Summary(pl.UTF-8): Wtyczki systemu ALSA dla urządzeń dźwiękowych Bluetooth
80 # bluetoothd + audio service
81 Requires: %{name} = %{epoch}:%{version}-%{release}
82 Requires: alsa-lib >= 1.0.10-1
84 %description -n alsa-plugins-bluetooth
85 ALSA plugins for Bluetooth audio devices.
87 %description -n alsa-plugins-bluetooth -l pl.UTF-8
88 Wtyczki systemu ALSA dla urządzeń dźwiękowych Bluetooth.
90 %package -n cups-backend-bluetooth
91 Summary: Bluetooth backend for CUPS
92 Summary(pl.UTF-8): Backend Bluetooth dla CUPS-a
93 Group: Applications/Printing
94 Requires: bluez-libs >= %{epoch}:%{version}-%{release}
97 %description -n cups-backend-bluetooth
98 Bluetooth backend for CUPS.
100 %description -n cups-backend-bluetooth -l pl.UTF-8
101 Backend Bluetooth dla CUPS-a.
103 %package -n gstreamer-bluetooth
104 Summary: Bluetooth support for gstreamer
105 Summary(pl.UTF-8): Obsługa Bluetooth dla gstreamera
107 Requires: bluez-libs >= %{epoch}:%{version}-%{release}
108 Requires: gstreamer >= 0.10
109 Requires: gstreamer-plugins-base >= 0.10
111 %description -n gstreamer-bluetooth
112 Bluetooth support for gstreamer.
114 %description -n gstreamer-bluetooth -l pl.UTF-8
115 Obsługa Bluetooth dla gstreamera.
118 Summary: Bluetooth libraries
119 Summary(pl.UTF-8): Biblioteki Bluetooth
120 Group: Development/Libraries
124 Libraries for use in Bluetooth applications.
126 The BLUETOOTH trademarks are owned by Bluetooth SIG, Inc., U.S.A.
128 %description libs -l pl.UTF-8
129 Biblioteki do używania w aplikacjach Bluetooth.
131 Znaki towarowe BLUETOOTH są własnością Bluetooth SIG, Inc. z USA.
134 Summary: Header files for Bluetooth applications
135 Summary(pl.UTF-8): Pliki nagłówkowe dla aplikacji Bluetooth
136 Group: Development/Libraries
137 Requires: %{name}-libs = %{epoch}:%{version}-%{release}
138 Obsoletes: bluez-sdp-devel
140 %description libs-devel
141 bluez-libs-devel contains header files for use in Bluetooth
144 %description libs-devel -l pl.UTF-8
145 Ten pakiet zawiera pliki nagłówkowe do używania w aplikacjach
149 Summary: Static Bluetooth libraries
150 Summary(pl.UTF-8): Biblioteki statyczne Bluetooth
151 Group: Development/Libraries
152 Requires: %{name}-libs-devel = %{epoch}:%{version}-%{release}
153 Obsoletes: bluez-sdp-static
155 %description libs-static
156 bluez-libs-static contains development static libraries for use in
157 Bluetooth applications.
159 %description libs-static -l pl.UTF-8
160 Ten pakiet zawiera biblioteki statyczne, których można używać do
178 --enable-configfiles \
192 --enable-pcmciarules \
203 rm -rf $RPM_BUILD_ROOT
204 install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig}
205 install -d $RPM_BUILD_ROOT{/etc/udev/rules.d,%{udevdir}}
208 DESTDIR=$RPM_BUILD_ROOT \
213 #install sync/bluetoothd-service-sync $RPM_BUILD_ROOT%{_libdir}/bluetooth
215 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/bluetooth
216 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/bluetooth
217 install %{SOURCE3} $RPM_BUILD_ROOT/etc/udev/rules.d/70-bluetooth.rules
218 install %{SOURCE4} $RPM_BUILD_ROOT%{udevdir}/bluetooth.sh
219 install test/passkey-agent $RPM_BUILD_ROOT%{_bindir}
220 mv $RPM_BUILD_ROOT/etc/udev/bluetooth.rules \
221 $RPM_BUILD_ROOT/etc/udev/rules.d/71-bluetooth.rules
223 rm -f $RPM_BUILD_ROOT%{_libdir}/alsa-lib/*.{,l}a
224 rm -f $RPM_BUILD_ROOT%{_libdir}/bluetooth/plugins/*.{,l}a
225 rm -f $RPM_BUILD_ROOT%{_libdir}/gstreamer*/libgstbluetooth.{,l}a
228 rm -rf $RPM_BUILD_ROOT
231 /sbin/chkconfig --add bluetooth
232 %service bluetooth restart
235 if [ "$1" = "0" ]; then
236 %service bluetooth stop
237 /sbin/chkconfig --del bluetooth
240 %post libs -p /sbin/ldconfig
241 %postun libs -p /sbin/ldconfig
244 %defattr(644,root,root,755)
245 %doc AUTHORS ChangeLog README audio/audio-api.txt input/input-api.txt network/network-api.txt serial/serial-api.txt
246 %attr(755,root,root) %{_bindir}/*
247 %attr(755,root,root) %{_sbindir}/*
248 %dir %{_libdir}/bluetooth
249 %dir %{_libdir}/bluetooth/plugins
250 %attr(755,root,root) %{_libdir}/bluetooth/plugins/*.so
251 %dir %{_sysconfdir}/bluetooth
252 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bluetooth/main.conf
253 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bluetooth/rfcomm.conf
254 %attr(754,root,root) /etc/rc.d/init.d/bluetooth
255 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/bluetooth
256 %config(noreplace) %verify(not md5 mtime size) /etc/dbus-1/system.d/bluetooth.conf
257 %attr(755,root,root) %{udevdir}/bluetooth.sh
258 %attr(755,root,root) %{udevdir}/bluetooth_serial
259 %config(noreplace) %verify(not md5 mtime size) /etc/udev/rules.d/70-bluetooth.rules
260 %config(noreplace) %verify(not md5 mtime size) /etc/udev/rules.d/71-bluetooth.rules
263 %files -n alsa-plugins-bluetooth
264 %defattr(644,root,root,755)
265 %attr(755,root,root) %{_libdir}/alsa-lib/libasound_module_ctl_bluetooth.so
266 %attr(755,root,root) %{_libdir}/alsa-lib/libasound_module_pcm_bluetooth.so
268 %files -n cups-backend-bluetooth
269 %defattr(644,root,root,755)
270 %attr(755,root,root) %{_prefix}/lib/cups/backend/bluetooth
272 %files -n gstreamer-bluetooth
273 %defattr(644,root,root,755)
274 %attr(755,root,root) %{_libdir}/gstreamer*/libgstbluetooth.so
277 %defattr(644,root,root,755)
278 %attr(755,root,root) %{_libdir}/libbluetooth.so.*.*.*
279 %attr(755,root,root) %ghost %{_libdir}/libbluetooth.so.[0-9]
282 %defattr(644,root,root,755)
283 %attr(755,root,root) %{_libdir}/libbluetooth.so
284 %{_libdir}/libbluetooth.la
285 %{_includedir}/bluetooth
286 %{_aclocaldir}/bluez.m4
287 %{_pkgconfigdir}/bluez.pc
290 %defattr(644,root,root,755)
291 %{_libdir}/libbluetooth.a