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: c10774d08fb04af4b4a6d148ffcb820a
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
38 Obsoletes: bluez-utils-init
39 Conflicts: bluez-bluefw
40 Provides: bluez-utils = %{epoch}:%{version}-%{release}
41 ExcludeArch: s390 s390x
42 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
44 # currently lib, not %{_lib} (see cups.spec)
45 %define cupsdir /usr/lib/cups/backend
46 %define udevdir /%{_lib}/udev
59 - PCMCIA configuration files
61 The BLUETOOTH trademarks are owned by Bluetooth SIG, Inc., U.S.A.
63 %description -l pl.UTF-8
73 - skrypty startowe (PLD)
74 - pliki konfiguracji PCMCIA
76 Znaki towarowe BLUETOOTH są własnością Bluetooth SIG, Inc. z USA.
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
82 # bluetoothd + audio service
83 Requires: %{name} = %{epoch}:%{version}-%{release}
84 Requires: alsa-lib >= 1.0.10-1
86 %description -n alsa-plugins-bluetooth
87 ALSA plugins for Bluetooth audio devices.
89 %description -n alsa-plugins-bluetooth -l pl.UTF-8
90 Wtyczki systemu ALSA dla urządzeń dźwiękowych Bluetooth.
92 %package -n cups-backend-bluetooth
93 Summary: Bluetooth backend for CUPS
94 Summary(pl.UTF-8): Backend Bluetooth dla CUPS-a
95 Group: Applications/Printing
96 Requires: bluez-libs >= %{epoch}:%{version}-%{release}
99 %description -n cups-backend-bluetooth
100 Bluetooth backend for CUPS.
102 %description -n cups-backend-bluetooth -l pl.UTF-8
103 Backend Bluetooth dla CUPS-a.
105 %package -n gstreamer-bluetooth
106 Summary: Bluetooth support for gstreamer
107 Summary(pl.UTF-8): Obsługa Bluetooth dla gstreamera
109 Requires: bluez-libs >= %{epoch}:%{version}-%{release}
110 Requires: gstreamer >= 0.10
111 Requires: gstreamer-plugins-base >= 0.10
113 %description -n gstreamer-bluetooth
114 Bluetooth support for gstreamer.
116 %description -n gstreamer-bluetooth -l pl.UTF-8
117 Obsługa Bluetooth dla gstreamera.
120 Summary: Bluetooth libraries
121 Summary(pl.UTF-8): Biblioteki Bluetooth
122 Group: Development/Libraries
126 Libraries for use in Bluetooth applications.
128 The BLUETOOTH trademarks are owned by Bluetooth SIG, Inc., U.S.A.
130 %description libs -l pl.UTF-8
131 Biblioteki do używania w aplikacjach Bluetooth.
133 Znaki towarowe BLUETOOTH są własnością Bluetooth SIG, Inc. z USA.
136 Summary: Header files for Bluetooth applications
137 Summary(pl.UTF-8): Pliki nagłówkowe dla aplikacji Bluetooth
138 Group: Development/Libraries
139 Requires: %{name}-libs = %{epoch}:%{version}-%{release}
140 Obsoletes: bluez-sdp-devel
142 %description libs-devel
143 bluez-libs-devel contains header files for use in Bluetooth
146 %description libs-devel -l pl.UTF-8
147 Ten pakiet zawiera pliki nagłówkowe do używania w aplikacjach
151 Summary: Static Bluetooth libraries
152 Summary(pl.UTF-8): Biblioteki statyczne Bluetooth
153 Group: Development/Libraries
154 Requires: %{name}-libs-devel = %{epoch}:%{version}-%{release}
155 Obsoletes: bluez-sdp-static
157 %description libs-static
158 bluez-libs-static contains development static libraries for use in
159 Bluetooth applications.
161 %description libs-static -l pl.UTF-8
162 Ten pakiet zawiera biblioteki statyczne, których można używać do
180 --enable-configfiles \
194 --enable-pcmciarules \
205 rm -rf $RPM_BUILD_ROOT
206 install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig}
207 install -d $RPM_BUILD_ROOT{/etc/udev/rules.d,%{udevdir}}
210 DESTDIR=$RPM_BUILD_ROOT \
215 #install sync/bluetoothd-service-sync $RPM_BUILD_ROOT%{_libdir}/bluetooth
217 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/bluetooth
218 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/bluetooth
219 install %{SOURCE3} $RPM_BUILD_ROOT/etc/udev/rules.d/70-bluetooth.rules
220 install %{SOURCE4} $RPM_BUILD_ROOT%{udevdir}/bluetooth.sh
221 install test/passkey-agent $RPM_BUILD_ROOT%{_bindir}
222 mv $RPM_BUILD_ROOT/etc/udev/bluetooth.rules \
223 $RPM_BUILD_ROOT/etc/udev/rules.d/71-bluetooth.rules
225 rm -f $RPM_BUILD_ROOT%{_libdir}/alsa-lib/*.{,l}a
226 rm -f $RPM_BUILD_ROOT%{_libdir}/bluetooth/plugins/*.{,l}a
227 rm -f $RPM_BUILD_ROOT%{_libdir}/gstreamer*/libgstbluetooth.{,l}a
230 rm -rf $RPM_BUILD_ROOT
233 /sbin/chkconfig --add bluetooth
234 %service bluetooth restart
237 if [ "$1" = "0" ]; then
238 %service bluetooth stop
239 /sbin/chkconfig --del bluetooth
242 %post libs -p /sbin/ldconfig
243 %postun libs -p /sbin/ldconfig
246 %defattr(644,root,root,755)
247 %doc AUTHORS ChangeLog README
248 %attr(755,root,root) %{_bindir}/*
249 %attr(755,root,root) %{_sbindir}/*
250 %dir %{_libdir}/bluetooth
251 %dir %{_libdir}/bluetooth/plugins
252 %attr(755,root,root) %{_libdir}/bluetooth/plugins/*.so
253 %dir %{_sysconfdir}/bluetooth
254 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bluetooth/main.conf
255 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bluetooth/rfcomm.conf
256 %attr(754,root,root) /etc/rc.d/init.d/bluetooth
257 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/bluetooth
258 %config(noreplace) %verify(not md5 mtime size) /etc/dbus-1/system.d/bluetooth.conf
259 %attr(755,root,root) %{udevdir}/bluetooth.sh
260 %attr(755,root,root) %{udevdir}/bluetooth_serial
261 %config(noreplace) %verify(not md5 mtime size) /etc/udev/rules.d/70-bluetooth.rules
262 %config(noreplace) %verify(not md5 mtime size) /etc/udev/rules.d/71-bluetooth.rules
265 %files -n alsa-plugins-bluetooth
266 %defattr(644,root,root,755)
267 %attr(755,root,root) %{_libdir}/alsa-lib/libasound_module_ctl_bluetooth.so
268 %attr(755,root,root) %{_libdir}/alsa-lib/libasound_module_pcm_bluetooth.so
270 %files -n cups-backend-bluetooth
271 %defattr(644,root,root,755)
272 %attr(755,root,root) %{_prefix}/lib/cups/backend/bluetooth
274 %files -n gstreamer-bluetooth
275 %defattr(644,root,root,755)
276 %attr(755,root,root) %{_libdir}/gstreamer*/libgstbluetooth.so
279 %defattr(644,root,root,755)
280 %attr(755,root,root) %{_libdir}/libbluetooth.so.*.*.*
281 %attr(755,root,root) %ghost %{_libdir}/libbluetooth.so.[0-9]
284 %defattr(644,root,root,755)
285 %attr(755,root,root) %{_libdir}/libbluetooth.so
286 %{_libdir}/libbluetooth.la
287 %{_includedir}/bluetooth
288 %{_pkgconfigdir}/bluez.pc
291 %defattr(644,root,root,755)
292 %{_libdir}/libbluetooth.a