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