1 Summary: Bluetooth utilities
2 Summary(pl.UTF-8): Narzędzia Bluetooth
7 Group: Applications/System
8 #Source0Download: http://www.bluez.org/download.html
9 Source0: http://www.kernel.org/pub/linux/bluetooth/%{name}-%{version}.tar.gz
10 # Source0-md5: a25fa37c97c309338649f6a5fd4cea76
12 Source2: %{name}.sysconfig
13 Source3: %{name}-udev.rules
14 Source4: %{name}-udev.script
15 Patch0: %{name}-etc_dir.patch
16 Patch1: %{name}-udev-path.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-compat-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
60 - PCMCIA configuration files
62 The BLUETOOTH trademarks are owned by Bluetooth SIG, Inc., U.S.A.
64 %description -l pl.UTF-8
75 - skrypty startowe (PLD)
76 - pliki konfiguracji PCMCIA
78 Znaki towarowe BLUETOOTH są własnością Bluetooth SIG, Inc. z USA.
80 %package -n alsa-plugins-bluetooth
81 Summary: ALSA plugins for Bluetooth audio devices
82 Summary(pl.UTF-8): Wtyczki systemu ALSA dla urządzeń dźwiękowych Bluetooth
84 # bluetoothd + audio service
85 Requires: %{name} = %{epoch}:%{version}-%{release}
86 Requires: alsa-lib >= 1.0.10-1
88 %description -n alsa-plugins-bluetooth
89 ALSA plugins for Bluetooth audio devices.
91 %description -n alsa-plugins-bluetooth -l pl.UTF-8
92 Wtyczki systemu ALSA dla urządzeń dźwiękowych Bluetooth.
94 %package -n cups-backend-bluetooth
95 Summary: Bluetooth backend for CUPS
96 Summary(pl.UTF-8): Backend Bluetooth dla CUPS-a
97 Group: Applications/Printing
98 Requires: bluez-libs >= %{epoch}:%{version}-%{release}
101 %description -n cups-backend-bluetooth
102 Bluetooth backend for CUPS.
104 %description -n cups-backend-bluetooth -l pl.UTF-8
105 Backend Bluetooth dla CUPS-a.
107 %package -n gstreamer-bluetooth
108 Summary: Bluetooth support for gstreamer
109 Summary(pl.UTF-8): Obsługa Bluetooth dla gstreamera
111 Requires: bluez-libs >= %{epoch}:%{version}-%{release}
112 Requires: gstreamer >= 0.10
113 Requires: gstreamer-plugins-base >= 0.10
115 %description -n gstreamer-bluetooth
116 Bluetooth support for gstreamer.
118 %description -n gstreamer-bluetooth -l pl.UTF-8
119 Obsługa Bluetooth dla gstreamera.
122 Summary: Bluetooth libraries
123 Summary(pl.UTF-8): Biblioteki Bluetooth
124 Group: Development/Libraries
128 Libraries for use in Bluetooth applications.
130 The BLUETOOTH trademarks are owned by Bluetooth SIG, Inc., U.S.A.
132 %description libs -l pl.UTF-8
133 Biblioteki do używania w aplikacjach Bluetooth.
135 Znaki towarowe BLUETOOTH są własnością Bluetooth SIG, Inc. z USA.
138 Summary: Header files for Bluetooth applications
139 Summary(pl.UTF-8): Pliki nagłówkowe dla aplikacji Bluetooth
140 Group: Development/Libraries
141 Requires: %{name}-libs = %{epoch}:%{version}-%{release}
142 Obsoletes: bluez-sdp-devel
144 %description libs-devel
145 bluez-libs-devel contains header files for use in Bluetooth
148 %description libs-devel -l pl.UTF-8
149 Ten pakiet zawiera pliki nagłówkowe do używania w aplikacjach
153 Summary: Static Bluetooth libraries
154 Summary(pl.UTF-8): Biblioteki statyczne Bluetooth
155 Group: Development/Libraries
156 Requires: %{name}-libs-devel = %{epoch}:%{version}-%{release}
157 Obsoletes: bluez-sdp-static
159 %description libs-static
160 bluez-libs-static contains development static libraries for use in
161 Bluetooth applications.
163 %description libs-static -l pl.UTF-8
164 Ten pakiet zawiera biblioteki statyczne, których można używać do
184 --enable-configfiles \
196 --enable-pcmciarules \
206 rm -rf $RPM_BUILD_ROOT
207 install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig}
208 install -d $RPM_BUILD_ROOT{/etc/udev/rules.d,%{udevdir}}
211 DESTDIR=$RPM_BUILD_ROOT \
216 install audio/audio.conf $RPM_BUILD_ROOT%{_sysconfdir}/bluetooth
218 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/bluetooth
219 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/bluetooth
220 install %{SOURCE3} $RPM_BUILD_ROOT/etc/udev/rules.d/70-bluetooth.rules
221 install %{SOURCE4} $RPM_BUILD_ROOT%{udevdir}/bluetooth.sh
222 rm -f $RPM_BUILD_ROOT%{_libdir}/alsa-lib/*.{,l}a
223 rm -f $RPM_BUILD_ROOT%{_libdir}/bluetooth/plugins/*.{,l}a
224 rm -f $RPM_BUILD_ROOT%{_libdir}/gstreamer*/libgstbluetooth.{,l}a
227 rm -rf $RPM_BUILD_ROOT
230 /sbin/chkconfig --add bluetooth
231 %service bluetooth restart
234 if [ "$1" = "0" ]; then
235 %service bluetooth stop
236 /sbin/chkconfig --del bluetooth
239 %post libs -p /sbin/ldconfig
240 %postun libs -p /sbin/ldconfig
243 %defattr(644,root,root,755)
244 %doc AUTHORS ChangeLog README
245 %attr(755,root,root) %{_bindir}/*
246 %attr(755,root,root) %{_sbindir}/*
247 %dir %{_libdir}/bluetooth
248 %dir %{_libdir}/bluetooth/plugins
249 %attr(755,root,root) %{_libdir}/bluetooth/plugins/*.so
250 %dir %{_sysconfdir}/bluetooth
251 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bluetooth/audio.conf
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/bluetooth-hid2hci.rules
261 %config(noreplace) %verify(not md5 mtime size) /etc/udev/rules.d/bluetooth-serial.rules
264 %files -n alsa-plugins-bluetooth
265 %defattr(644,root,root,755)
266 %{_sysconfdir}/alsa/bluetooth.conf
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