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