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
38 Obsoletes: bluez-utils-init
39 Conflicts: bluez-bluefw
40 ExcludeArch: s390 s390x
41 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
43 # currently lib, not %{_lib} (see cups.spec)
44 %define cupsdir /usr/lib/cups/backend
45 %define udevdir /%{_lib}/udev
58 - PCMCIA configuration files
60 The BLUETOOTH trademarks are owned by Bluetooth SIG, Inc., U.S.A.
62 %description -l pl.UTF-8
72 - skrypty startowe (PLD)
73 - pliki konfiguracji PCMCIA
75 Znaki towarowe BLUETOOTH są własnością Bluetooth SIG, Inc. z USA.
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
81 # bluetoothd + audio service
82 Requires: %{name} = %{epoch}:%{version}-%{release}
83 Requires: alsa-lib >= 1.0.10-1
85 %description -n alsa-plugins-bluetooth
86 ALSA plugins for Bluetooth audio devices.
88 %description -n alsa-plugins-bluetooth -l pl.UTF-8
89 Wtyczki systemu ALSA dla urządzeń dźwiękowych Bluetooth.
91 %package -n cups-backend-bluetooth
92 Summary: Bluetooth backend for CUPS
93 Summary(pl.UTF-8): Backend Bluetooth dla CUPS-a
94 Group: Applications/Printing
95 Requires: bluez-libs >= %{epoch}:%{version}-%{release}
98 %description -n cups-backend-bluetooth
99 Bluetooth backend for CUPS.
101 %description -n cups-backend-bluetooth -l pl.UTF-8
102 Backend Bluetooth dla CUPS-a.
104 %package -n gstreamer-bluetooth
105 Summary: Bluetooth support for gstreamer
106 Summary(pl.UTF-8): Obsługa Bluetooth dla gstreamera
108 Requires: bluez-libs >= %{epoch}:%{version}-%{release}
109 Requires: gstreamer >= 0.10
110 Requires: gstreamer-plugins-base >= 0.10
112 %description -n gstreamer-bluetooth
113 Bluetooth support for gstreamer.
115 %description -n gstreamer-bluetooth -l pl.UTF-8
116 Obsługa Bluetooth dla gstreamera.
119 Summary: Bluetooth libraries
120 Summary(pl.UTF-8): Biblioteki Bluetooth
121 Group: Development/Libraries
125 Libraries for use in Bluetooth applications.
127 The BLUETOOTH trademarks are owned by Bluetooth SIG, Inc., U.S.A.
129 %description libs -l pl.UTF-8
130 Biblioteki do używania w aplikacjach Bluetooth.
132 Znaki towarowe BLUETOOTH są własnością Bluetooth SIG, Inc. z USA.
135 Summary: Header files for Bluetooth applications
136 Summary(pl.UTF-8): Pliki nagłówkowe dla aplikacji Bluetooth
137 Group: Development/Libraries
138 Requires: %{name}-libs = %{epoch}:%{version}-%{release}
139 Obsoletes: bluez-sdp-devel
141 %description libs-devel
142 bluez-libs-devel contains header files for use in Bluetooth
145 %description libs-devel -l pl.UTF-8
146 Ten pakiet zawiera pliki nagłówkowe do używania w aplikacjach
150 Summary: Static Bluetooth libraries
151 Summary(pl.UTF-8): Biblioteki statyczne Bluetooth
152 Group: Development/Libraries
153 Requires: %{name}-libs-devel = %{epoch}:%{version}-%{release}
154 Obsoletes: bluez-sdp-static
156 %description libs-static
157 bluez-libs-static contains development static libraries for use in
158 Bluetooth applications.
160 %description libs-static -l pl.UTF-8
161 Ten pakiet zawiera biblioteki statyczne, których można używać do
179 --enable-configfiles \
193 --enable-pcmciarules \
204 rm -rf $RPM_BUILD_ROOT
205 install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig}
206 install -d $RPM_BUILD_ROOT{/etc/udev/rules.d,%{udevdir}}
209 DESTDIR=$RPM_BUILD_ROOT \
214 #install sync/bluetoothd-service-sync $RPM_BUILD_ROOT%{_libdir}/bluetooth
216 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/bluetooth
217 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/bluetooth
218 install %{SOURCE3} $RPM_BUILD_ROOT/etc/udev/rules.d/70-bluetooth.rules
219 install %{SOURCE4} $RPM_BUILD_ROOT%{udevdir}/bluetooth.sh
220 install test/passkey-agent $RPM_BUILD_ROOT%{_bindir}
221 mv $RPM_BUILD_ROOT/etc/udev/bluetooth.rules \
222 $RPM_BUILD_ROOT/etc/udev/rules.d/71-bluetooth.rules
224 rm -f $RPM_BUILD_ROOT%{_libdir}/alsa-lib/*.{,l}a
225 rm -f $RPM_BUILD_ROOT%{_libdir}/bluetooth/plugins/*.{,l}a
226 rm -f $RPM_BUILD_ROOT%{_libdir}/gstreamer*/libgstbluetooth.{,l}a
229 rm -rf $RPM_BUILD_ROOT
232 /sbin/chkconfig --add bluetooth
233 %service bluetooth restart
236 if [ "$1" = "0" ]; then
237 %service bluetooth stop
238 /sbin/chkconfig --del bluetooth
241 %post libs -p /sbin/ldconfig
242 %postun libs -p /sbin/ldconfig
245 %defattr(644,root,root,755)
246 %doc AUTHORS ChangeLog README audio/audio-api.txt input/input-api.txt network/network-api.txt serial/serial-api.txt
247 %attr(755,root,root) %{_bindir}/*
248 %attr(755,root,root) %{_sbindir}/*
249 %dir %{_libdir}/bluetooth
250 %dir %{_libdir}/bluetooth/plugins
251 %attr(755,root,root) %{_libdir}/bluetooth/plugins/*.so
252 %dir %{_sysconfdir}/bluetooth
253 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bluetooth/main.conf
254 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bluetooth/rfcomm.conf
255 %attr(754,root,root) /etc/rc.d/init.d/bluetooth
256 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/bluetooth
257 %config(noreplace) %verify(not md5 mtime size) /etc/dbus-1/system.d/bluetooth.conf
258 %attr(755,root,root) %{udevdir}/bluetooth.sh
259 %attr(755,root,root) %{udevdir}/bluetooth_serial
260 %config(noreplace) %verify(not md5 mtime size) /etc/udev/rules.d/70-bluetooth.rules
261 %config(noreplace) %verify(not md5 mtime size) /etc/udev/rules.d/71-bluetooth.rules
264 %files -n alsa-plugins-bluetooth
265 %defattr(644,root,root,755)
266 %attr(755,root,root) %{_libdir}/alsa-lib/libasound_module_ctl_bluetooth.so
267 %attr(755,root,root) %{_libdir}/alsa-lib/libasound_module_pcm_bluetooth.so
269 %files -n cups-backend-bluetooth
270 %defattr(644,root,root,755)
271 %attr(755,root,root) %{_prefix}/lib/cups/backend/bluetooth
273 %files -n gstreamer-bluetooth
274 %defattr(644,root,root,755)
275 %attr(755,root,root) %{_libdir}/gstreamer*/libgstbluetooth.so
278 %defattr(644,root,root,755)
279 %attr(755,root,root) %{_libdir}/libbluetooth.so.*.*.*
280 %attr(755,root,root) %ghost %{_libdir}/libbluetooth.so.[0-9]
283 %defattr(644,root,root,755)
284 %attr(755,root,root) %{_libdir}/libbluetooth.so
285 %{_libdir}/libbluetooth.la
286 %{_includedir}/bluetooth
287 %{_aclocaldir}/bluez.m4
288 %{_pkgconfigdir}/bluez.pc
291 %defattr(644,root,root,755)
292 %{_libdir}/libbluetooth.a