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