]> git.pld-linux.org Git - packages/bluez.git/blob - bluez.spec
- added bluez-audio_socket.patch (After updating to 4.97 it might happen,
[packages/bluez.git] / bluez.spec
1 Summary:        Bluetooth utilities
2 Summary(pl.UTF-8):      Narzędzia Bluetooth
3 Name:           bluez
4 Version:        4.99
5 Release:        2
6 License:        GPL v2+
7 Group:          Applications/System
8 #Source0Download: http://www.bluez.org/download.html
9 Source0:        http://www.kernel.org/pub/linux/bluetooth/%{name}-%{version}.tar.bz2
10 # Source0-md5:  2387053eb5a7b02f37df4871df022a02
11 Source1:        %{name}.init
12 Source2:        %{name}.sysconfig
13 Source3:        dund.init
14 Source4:        pand.init
15 Source5:        rfcomm.init
16 Patch0:         %{name}-etc_dir.patch
17 Patch1:         %{name}-wacom-mode-2.patch
18 Patch2:         %{name}-systemd.patch
19 Patch3:         %{name}-audio_socket.patch
20 URL:            http://www.bluez.org/
21 BuildRequires:  alsa-lib-devel >= 1.0.10-1
22 BuildRequires:  autoconf >= 2.60
23 BuildRequires:  automake
24 BuildRequires:  bison
25 BuildRequires:  check-devel >= 0.9.6
26 BuildRequires:  dbus-devel >= 1.0
27 BuildRequires:  glib2-devel >= 1:2.16
28 BuildRequires:  gstreamer-devel >= 0.10.30
29 BuildRequires:  gstreamer-plugins-base-devel >= 0.10
30 BuildRequires:  libcap-ng-devel
31 BuildRequires:  libsndfile-devel
32 BuildRequires:  libtool
33 BuildRequires:  libusb-compat-devel
34 BuildRequires:  pkgconfig >= 1:0.9.0
35 BuildRequires:  readline-devel
36 BuildRequires:  rpmbuild(macros) >= 1.626
37 BuildRequires:  udev-devel
38 Requires:       %{name}-libs = %{version}-%{release}
39 Requires:       glib2 >= 1:2.16
40 Requires:       hwdata >= 0.225
41 Requires:       rc-scripts
42 Requires:       systemd-units >= 37-0.10
43 Provides:       bluez-utils = %{version}-%{release}
44 Obsoletes:      bluez-hciemu
45 Obsoletes:      bluez-pan
46 Obsoletes:      bluez-sdp
47 Obsoletes:      bluez-systemd
48 Obsoletes:      bluez-utils
49 Obsoletes:      bluez-utils-init
50 Conflicts:      bluez-bluefw
51 ExcludeArch:    s390 s390x
52 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
53
54 # currently lib, not %{_lib} (see cups.spec)
55 %define         cupsdir         /usr/lib/cups/backend
56 %define         udevdir         /lib/udev
57
58 %description
59 Bluetooth utilities:
60  - bluetoothd
61  - dund
62  - hcitool
63  - hciattach
64  - hciconfig
65  - hciemu
66  - hidd
67  - l2ping
68  - pand
69  - start scripts (PLD)
70  - PCMCIA configuration files
71
72 The BLUETOOTH trademarks are owned by Bluetooth SIG, Inc., U.S.A.
73
74 %description -l pl.UTF-8
75 Narzędzia Bluetooth:
76  - bluetoothd
77  - dund
78  - hcitool
79  - hciattach
80  - hciconfig
81  - hciemu
82  - hidd
83  - l2ping
84  - pand
85  - skrypty startowe (PLD)
86  - pliki konfiguracji PCMCIA
87
88 Znaki towarowe BLUETOOTH są własnością Bluetooth SIG, Inc. z USA.
89
90 %package -n alsa-plugins-bluetooth
91 Summary:        ALSA plugins for Bluetooth audio devices
92 Summary(pl.UTF-8):      Wtyczki systemu ALSA dla urządzeń dźwiękowych Bluetooth
93 Group:          Libraries
94 # bluetoothd + audio service
95 Requires:       %{name} = %{version}-%{release}
96 Requires:       alsa-lib >= 1.0.10-1
97
98 %description -n alsa-plugins-bluetooth
99 ALSA plugins for Bluetooth audio devices.
100
101 %description -n alsa-plugins-bluetooth -l pl.UTF-8
102 Wtyczki systemu ALSA dla urządzeń dźwiękowych Bluetooth.
103
104 %package -n cups-backend-bluetooth
105 Summary:        Bluetooth backend for CUPS
106 Summary(pl.UTF-8):      Backend Bluetooth dla CUPS-a
107 Group:          Applications/Printing
108 Requires:       bluez-libs >= %{version}-%{release}
109 Requires:       cups
110
111 %description -n cups-backend-bluetooth
112 Bluetooth backend for CUPS.
113
114 %description -n cups-backend-bluetooth -l pl.UTF-8
115 Backend Bluetooth dla CUPS-a.
116
117 %package -n gstreamer-bluetooth
118 Summary:        Bluetooth support for gstreamer
119 Summary(pl.UTF-8):      Obsługa Bluetooth dla gstreamera
120 Group:          Libraries
121 Requires:       bluez-libs >= %{version}-%{release}
122 Requires:       gstreamer >= 0.10.30
123 Requires:       gstreamer-plugins-base >= 0.10
124
125 %description -n gstreamer-bluetooth
126 Bluetooth support for gstreamer.
127
128 %description -n gstreamer-bluetooth -l pl.UTF-8
129 Obsługa Bluetooth dla gstreamera.
130
131 %package libs
132 Summary:        Bluetooth libraries
133 Summary(pl.UTF-8):      Biblioteki Bluetooth
134 Group:          Libraries
135 Obsoletes:      bluez-sdp
136
137 %description libs
138 Libraries for use in Bluetooth applications.
139
140 The BLUETOOTH trademarks are owned by Bluetooth SIG, Inc., U.S.A.
141
142 %description libs -l pl.UTF-8
143 Biblioteki do używania w aplikacjach Bluetooth.
144
145 Znaki towarowe BLUETOOTH są własnością Bluetooth SIG, Inc. z USA.
146
147 %package libs-devel
148 Summary:        Header files for Bluetooth applications
149 Summary(pl.UTF-8):      Pliki nagłówkowe dla aplikacji Bluetooth
150 Group:          Development/Libraries
151 Requires:       %{name}-libs = %{version}-%{release}
152 Obsoletes:      bluez-sdp-devel
153
154 %description libs-devel
155 bluez-libs-devel contains header files for use in Bluetooth
156 applications.
157
158 %description libs-devel -l pl.UTF-8
159 Ten pakiet zawiera pliki nagłówkowe do używania w aplikacjach
160 Bluetooth.
161
162 %package libs-static
163 Summary:        Static Bluetooth libraries
164 Summary(pl.UTF-8):      Biblioteki statyczne Bluetooth
165 Group:          Development/Libraries
166 Requires:       %{name}-libs-devel = %{version}-%{release}
167 Obsoletes:      bluez-sdp-static
168
169 %description libs-static
170 bluez-libs-static contains development static libraries for use in
171 Bluetooth applications.
172
173 %description libs-static -l pl.UTF-8
174 Ten pakiet zawiera biblioteki statyczne, których można używać do
175 aplikacji Bluetooth.
176
177 %prep
178 %setup -q
179 %patch0 -p1
180 %patch1 -p1
181 %patch2 -p1
182 %patch3 -p1
183
184 %build
185 %{__libtoolize}
186 %{__aclocal}
187 %{__autoconf}
188 %{__autoheader}
189 %{__automake}
190 %configure \
191         --with-ouifile=%{_datadir}/hwdata/oui.txt \
192         --with-systemdsystemunitdir=%{systemdunitdir} \
193         --disable-silent-rules \
194         --enable-shared \
195         --enable-static \
196         --enable-alsa \
197         --enable-audio \
198         --enable-bccmd \
199         --enable-capng \
200         --enable-cups \
201         --enable-dbusoob \
202         --enable-dfutool \
203         --enable-dund \
204         --enable-gstreamer \
205         --enable-health \
206         --enable-hid2hci \
207         --enable-hidd \
208         --enable-input \
209         --enable-network \
210         --enable-pand \
211         --enable-pcmcia \
212         --enable-pnat \
213         --enable-serial \
214         --enable-thermometer \
215         --enable-tools \
216         --enable-usb \
217         --enable-wiimote
218
219 %{__make} \
220         cupsdir=%{cupsdir} \
221         rulesdir=%{udevdir}/rules.d \
222         udevdir=%{udevdir}
223
224 %install
225 rm -rf $RPM_BUILD_ROOT
226 install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig}
227
228 %{__make} install \
229         DESTDIR=$RPM_BUILD_ROOT \
230         cupsdir=%{cupsdir} \
231         rulesdir=%{udevdir}/rules.d \
232         udevdir=%{udevdir}
233
234 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/bluetooth
235 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/bluetooth
236 install %{SOURCE3} $RPM_BUILD_ROOT/etc/rc.d/init.d/dund
237 install %{SOURCE4} $RPM_BUILD_ROOT/etc/rc.d/init.d/pand
238 install %{SOURCE5} $RPM_BUILD_ROOT/etc/rc.d/init.d/rfcomm
239
240 install audio/*.conf $RPM_BUILD_ROOT%{_sysconfdir}/bluetooth
241 install input/*.conf $RPM_BUILD_ROOT%{_sysconfdir}/bluetooth
242 install network/*.conf $RPM_BUILD_ROOT%{_sysconfdir}/bluetooth
243 install serial/*.conf $RPM_BUILD_ROOT%{_sysconfdir}/bluetooth
244
245 mv -fT $RPM_BUILD_ROOT{%{_datadir},%{_sysconfdir}}/alsa
246
247 %{__rm} $RPM_BUILD_ROOT%{_libdir}/{alsa-lib/*.{la,a},gstreamer*/libgstbluetooth.{la,a},libbluetooth.la}
248
249 %clean
250 rm -rf $RPM_BUILD_ROOT
251
252 %post
253 /sbin/chkconfig --add bluetooth
254 /sbin/chkconfig --add dund
255 /sbin/chkconfig --add pand
256 /sbin/chkconfig --add rfcomm
257 %service bluetooth restart
258 %service dund restart
259 %service pand restart
260 %service rfcomm restart
261 %systemd_post bluetooth.service
262
263 %preun
264 if [ "$1" = "0" ]; then
265         %service bluetooth stop
266         %service dund stop
267         %service pand stop
268         %service rfcomm stop
269         /sbin/chkconfig --del bluetooth
270         /sbin/chkconfig --del dund
271         /sbin/chkconfig --del pand
272         /sbin/chkconfig --del rfcomm
273 fi
274 %systemd_preun bluetooth.service
275
276 %postun
277 %systemd_reload
278
279 %triggerpostun -- bluez < 4.98-3
280 %systemd_trigger bluetooth.service
281
282 %post   libs -p /sbin/ldconfig
283 %postun libs -p /sbin/ldconfig
284
285 %files
286 %defattr(644,root,root,755)
287 %doc AUTHORS ChangeLog README
288 %attr(755,root,root) %{_bindir}/ciptool
289 %attr(755,root,root) %{_bindir}/dfutool
290 %attr(755,root,root) %{_bindir}/dund
291 %attr(755,root,root) %{_bindir}/gatttool
292 %attr(755,root,root) %{_bindir}/hcitool
293 %attr(755,root,root) %{_bindir}/hidd
294 %attr(755,root,root) %{_bindir}/l2ping
295 %attr(755,root,root) %{_bindir}/pand
296 %attr(755,root,root) %{_bindir}/rfcomm
297 %attr(755,root,root) %{_bindir}/sdptool
298 %attr(755,root,root) %{_sbindir}/bccmd
299 %attr(755,root,root) %{_sbindir}/bluetoothd
300 %attr(755,root,root) %{_sbindir}/hciattach
301 %attr(755,root,root) %{_sbindir}/hciconfig
302 %dir %{_libdir}/bluetooth
303 %dir %{_libdir}/bluetooth/plugins
304 %dir %{_sysconfdir}/bluetooth
305 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bluetooth/*.conf
306 %attr(754,root,root) /etc/rc.d/init.d/bluetooth
307 %attr(754,root,root) /etc/rc.d/init.d/dund
308 %attr(754,root,root) /etc/rc.d/init.d/pand
309 %attr(754,root,root) /etc/rc.d/init.d/rfcomm
310 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/bluetooth
311 %config(noreplace) %verify(not md5 mtime size) /etc/dbus-1/system.d/bluetooth.conf
312 %{systemdunitdir}/bluetooth.service
313 %{_datadir}/dbus-1/system-services/org.bluez.service
314 %attr(755,root,root) %{udevdir}/bluetooth_serial
315 %attr(755,root,root) %{udevdir}/hid2hci
316 %{udevdir}/rules.d/97-bluetooth.rules
317 %{udevdir}/rules.d/97-bluetooth-hid2hci.rules
318 %{udevdir}/rules.d/97-bluetooth-serial.rules
319 %{_mandir}/man1/ciptool.1*
320 %{_mandir}/man1/dfutool.1*
321 %{_mandir}/man1/dund.1*
322 %{_mandir}/man1/hcitool.1*
323 %{_mandir}/man1/hidd.1*
324 %{_mandir}/man1/pand.1*
325 %{_mandir}/man1/rfcomm.1*
326 %{_mandir}/man1/sdptool.1*
327 %{_mandir}/man8/bccmd.8*
328 %{_mandir}/man8/bluetoothd.8*
329 %{_mandir}/man8/hciattach.8*
330 %{_mandir}/man8/hciconfig.8*
331 %{_mandir}/man8/hid2hci.8*
332 %{_mandir}/man8/l2ping.8*
333
334 %files -n alsa-plugins-bluetooth
335 %defattr(644,root,root,755)
336 %{_sysconfdir}/alsa/bluetooth.conf
337 %attr(755,root,root) %{_libdir}/alsa-lib/libasound_module_ctl_bluetooth.so
338 %attr(755,root,root) %{_libdir}/alsa-lib/libasound_module_pcm_bluetooth.so
339
340 %files -n cups-backend-bluetooth
341 %defattr(644,root,root,755)
342 %attr(755,root,root) %{_prefix}/lib/cups/backend/bluetooth
343
344 %files -n gstreamer-bluetooth
345 %defattr(644,root,root,755)
346 %attr(755,root,root) %{_libdir}/gstreamer*/libgstbluetooth.so
347
348 %files libs
349 %defattr(644,root,root,755)
350 %attr(755,root,root) %{_libdir}/libbluetooth.so.*.*.*
351 %attr(755,root,root) %ghost %{_libdir}/libbluetooth.so.3
352
353 %files libs-devel
354 %defattr(644,root,root,755)
355 %attr(755,root,root) %{_libdir}/libbluetooth.so
356 %{_includedir}/bluetooth
357 %{_pkgconfigdir}/bluez.pc
358
359 %files libs-static
360 %defattr(644,root,root,755)
361 %{_libdir}/libbluetooth.a
This page took 0.087442 seconds and 4 git commands to generate.