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