- Obsoletes: bluez-hciemu; release 2
[packages/bluez-utils.git] / bluez-utils.spec
1 Summary:        Bluetooth utilities
2 Summary(pl.UTF-8):      Narzędzia Bluetooth
3 Name:           bluez-utils
4 Version:        3.36
5 Release:        2
6 Epoch:          0
7 License:        GPL v2+
8 Group:          Applications/System
9 #Source0Download: http://www.bluez.org/download.html
10 Source0:        http://bluez.sourceforge.net/download/%{name}-%{version}.tar.gz
11 # Source0-md5:  4fc292b635ba7b442c7aaf5680199012
12 Source1:        %{name}.init
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
21 BuildRequires:  bison
22 BuildRequires:  bluez-libs-devel >= 3.32
23 BuildRequires:  dbus-glib-devel >= 0.60
24 BuildRequires:  glib2-devel >= 2.0
25 BuildRequires:  gstreamer-devel >= 0.10
26 BuildRequires:  gstreamer-plugins-base-devel >= 0.10
27 BuildRequires:  hal-devel >= 0.5.8
28 #BuildRequires: libopensync-devel < 0.30
29 BuildRequires:  libtool
30 BuildRequires:  libusb-devel
31 BuildRequires:  openobex-devel >= 1.1
32 BuildRequires:  pkgconfig >= 1:0.9.0
33 BuildRequires:  rpmbuild(macros) >= 1.268
34 Requires:       bluez-libs >= 3.32
35 Requires:       rc-scripts
36 Obsoletes:      bluez-hciemu
37 Obsoletes:      bluez-pan
38 Obsoletes:      bluez-sdp
39 Obsoletes:      bluez-utils-init
40 Conflicts:      bluez-bluefw
41 ExcludeArch:    s390 s390x
42 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
43
44 # currently lib, not %{_lib} (see cups.spec)
45 %define         cupsdir         /usr/lib/cups/backend
46 %define         udevdir         /%{_lib}/udev
47
48 %description
49 Bluetooth utilities:
50  - hcitool
51  - hciattach
52  - hciconfig
53  - hcid
54  - hciemu
55  - hidd
56  - l2ping
57  - pand
58  - start scripts (PLD)
59  - PCMCIA configuration files
60
61 The BLUETOOTH trademarks are owned by Bluetooth SIG, Inc., U.S.A.
62
63 %description -l pl.UTF-8
64 Narzędzia Bluetooth:
65  - hcitool
66  - hciattach
67  - hciconfig
68  - hcid
69  - hciemu
70  - hidd
71  - l2ping
72  - pand
73  - skrypty startowe (PLD)
74  - pliki konfiguracji PCMCIA
75
76 Znaki towarowe BLUETOOTH są własnością Bluetooth SIG, Inc. z USA.
77
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
81 Group:          Libraries
82 # bluetoothd + audio service
83 Requires:       %{name} = %{epoch}:%{version}-%{release}
84 Requires:       alsa-lib >= 1.0.10-1
85
86 %description -n alsa-plugins-bluetooth
87 ALSA plugins for Bluetooth audio devices.
88
89 %description -n alsa-plugins-bluetooth -l pl.UTF-8
90 Wtyczki systemu ALSA dla urządzeń dźwiękowych Bluetooth.
91
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 >= 3.32
97 Requires:       cups
98
99 %description -n cups-backend-bluetooth
100 Bluetooth backend for CUPS.
101
102 %description -n cups-backend-bluetooth -l pl.UTF-8
103 Backend Bluetooth dla CUPS-a.
104
105 %package -n gstreamer-bluetooth
106 Summary:        Bluetooth support for gstreamer
107 Summary(pl.UTF-8):      Obsługa Bluetooth dla gstreamera
108 Group:          Libraries
109 Requires:       bluez-libs >= 3.32
110 Requires:       gstreamer >= 0.10
111 Requires:       gstreamer-plugins-base >= 0.10
112
113 %description -n gstreamer-bluetooth
114 Bluetooth support for gstreamer.
115
116 %description -n gstreamer-bluetooth -l pl.UTF-8
117 Obsługa Bluetooth dla gstreamera.
118
119 %prep
120 %setup -q
121 %patch0 -p1
122
123 %build
124 %{__libtoolize}
125 %{__aclocal}
126 %{__autoconf}
127 %{__autoheader}
128 %{__automake}
129 %configure \
130         --enable-alsa \
131         --enable-audio \
132         --enable-avctrl \
133         --enable-bccmd \
134         --enable-cups \
135         --enable-dfutool \
136         --enable-glib \
137         --enable-gstreamer \
138         --enable-hal \
139         --enable-hid2hci \
140         --enable-input \
141         --enable-network \
142         --enable-obex \
143         --enable-pand \
144         --enable-pcmciarules \
145         --enable-sdpd \
146         --enable-hidd \
147         --enable-serial \
148         --disable-sync \
149         --enable-test \
150         --enable-usb \
151         --with-cups=/usr
152
153 %{__make} \
154         cupsdir=%{cupsdir} \
155         udevdir=%{udevdir}
156
157 %install
158 rm -rf $RPM_BUILD_ROOT
159 install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig}
160 install -d $RPM_BUILD_ROOT{/etc/udev/rules.d,%{udevdir}}
161
162 %{__make} install \
163         DESTDIR=$RPM_BUILD_ROOT \
164         cupsdir=%{cupsdir} \
165         udevdir=%{udevdir}
166
167 # noinst
168 #install sync/bluetoothd-service-sync $RPM_BUILD_ROOT%{_libdir}/bluetooth
169
170 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/bluetooth
171 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/bluetooth
172 install %{SOURCE3} $RPM_BUILD_ROOT/etc/udev/rules.d/70-bluetooth.rules
173 install %{SOURCE4} $RPM_BUILD_ROOT%{udevdir}/bluetooth.sh
174 install test/passkey-agent $RPM_BUILD_ROOT/%{_bindir}
175 mv $RPM_BUILD_ROOT/etc/udev/bluetooth.rules \
176         $RPM_BUILD_ROOT/etc/udev/rules.d/71-bluetooth.rules
177
178 rm -f $RPM_BUILD_ROOT%{_libdir}/alsa-lib/*.la
179 rm -f $RPM_BUILD_ROOT%{_libdir}/bluetooth/plugins/*.la
180 rm -f $RPM_BUILD_ROOT%{_libdir}/gstreamer*/libgstbluetooth.la
181
182 %clean
183 rm -rf $RPM_BUILD_ROOT
184
185 %post
186 /sbin/chkconfig --add bluetooth
187 %service bluetooth restart
188
189 %preun
190 if [ "$1" = "0" ]; then
191         %service bluetooth stop
192         /sbin/chkconfig --del bluetooth
193 fi
194
195 %files
196 %defattr(644,root,root,755)
197 %doc AUTHORS ChangeLog README audio/audio-api.txt hcid/dbus-api.txt input/input-api.txt network/network-api.txt serial/serial-api.txt
198 %attr(755,root,root) %{_bindir}/*
199 %attr(755,root,root) %{_sbindir}/*
200 %dir %{_libdir}/bluetooth
201 %dir %{_libdir}/bluetooth/plugins
202 %attr(755,root,root) %{_libdir}/bluetooth/plugins/*.so
203 %dir %{_sysconfdir}/bluetooth
204 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bluetooth/hcid.conf
205 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bluetooth/rfcomm.conf
206 %attr(754,root,root) /etc/rc.d/init.d/bluetooth
207 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/bluetooth
208 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dbus-1/system.d/bluetooth.conf
209 %attr(755,root,root) %{udevdir}/bluetooth.sh
210 %attr(755,root,root) %{udevdir}/bluetooth_serial
211 %config(noreplace) %verify(not md5 mtime size) /etc/udev/rules.d/70-bluetooth.rules
212 %config(noreplace) %verify(not md5 mtime size) /etc/udev/rules.d/71-bluetooth.rules
213 %{_mandir}/man[18]/*
214 %{_mandir}/man5/hcid.conf.5*
215
216 %files -n alsa-plugins-bluetooth
217 %defattr(644,root,root,755)
218 %attr(755,root,root) %{_libdir}/alsa-lib/libasound_module_ctl_bluetooth.so
219 %attr(755,root,root) %{_libdir}/alsa-lib/libasound_module_pcm_bluetooth.so
220
221 %files -n cups-backend-bluetooth
222 %defattr(644,root,root,755)
223 %attr(755,root,root) %{_prefix}/lib/cups/backend/bluetooth
224
225 %files -n gstreamer-bluetooth
226 %defattr(644,root,root,755)
227 %attr(755,root,root) %{_libdir}/gstreamer*/libgstbluetooth.so
This page took 0.041288 seconds and 3 git commands to generate.