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