]> git.pld-linux.org Git - packages/bluez-utils.git/blame - bluez-utils.spec
- patches from http://blueman.tuxfamily.org
[packages/bluez-utils.git] / bluez-utils.spec
CommitLineData
a397e1f8 1Summary: Bluetooth utilities
f8033937 2Summary(pl.UTF-8): Narzędzia Bluetooth
a397e1f8 3Name: bluez-utils
21238886 4Version: 3.31
b14f0a60 5Release: 2
b936cbb0 6Epoch: 0
c9df9507 7License: GPL v2+
a397e1f8 8Group: Applications/System
cc609d25 9#Source0Download: http://www.bluez.org/download.html
a397e1f8 10Source0: http://bluez.sourceforge.net/download/%{name}-%{version}.tar.gz
21238886 11# Source0-md5: a87bd1e87923ff60c5855be74f0d3f7a
33bb3a38
JB
12Source1: %{name}.init
13Source2: %{name}.sysconfig
95e83f9e
AM
14Source3: %{name}-udev.rules
15Source4: %{name}-udev.script
eed78b81 16Patch0: %{name}-etc_dir.patch
b14f0a60
MWP
17Patch1: %{name}-bnep_ifup.patch
18Patch2: %{name}-nap_bridge_fix.patch
eefd2dea 19URL: http://www.bluez.org/
c9df9507
JB
20BuildRequires: alsa-lib-devel >= 1.0.10-1
21BuildRequires: autoconf >= 2.50
29edfa37 22BuildRequires: automake
344f6dee 23BuildRequires: bison
21238886 24BuildRequires: bluez-libs-devel >= 3.31
c9df9507
JB
25BuildRequires: dbus-glib-devel >= 0.60
26BuildRequires: glib2-devel >= 2.0
0fd9455d
JB
27BuildRequires: gstreamer-devel >= 0.10
28BuildRequires: gstreamer-plugins-base-devel >= 0.10
c9df9507 29BuildRequires: hal-devel >= 0.5.8
28279c4f 30#BuildRequires: libopensync-devel < 0.30
29edfa37 31BuildRequires: libtool
eed78b81 32BuildRequires: libusb-devel
28279c4f 33BuildRequires: openobex-devel >= 1.1
0fd9455d 34BuildRequires: pkgconfig >= 1:0.9.0
66a4c701 35BuildRequires: rpmbuild(macros) >= 1.268
21238886 36Requires: bluez-libs >= 3.31
fbf0e7d5 37Requires: rc-scripts
7172a039 38Obsoletes: bluez-pan
344f6dee 39Obsoletes: bluez-sdp
eefd2dea 40Obsoletes: bluez-utils-init
7888efe5 41Conflicts: bluez-bluefw
a397e1f8 42ExcludeArch: s390 s390x
29edfa37 43BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
e1d036a5 44
eed78b81
JB
45# currently lib, not %{_lib} (see cups.spec)
46%define cupsdir /usr/lib/cups/backend
dc9640b5 47%define udevdir /%{_lib}/udev
eed78b81 48
e1d036a5 49%description
9059e282 50Bluetooth utilities:
a397e1f8
AF
51 - hcitool
52 - hciattach
53 - hciconfig
54 - hcid
df2fe191 55 - hidd
a397e1f8 56 - l2ping
a5622b47 57 - pand
29edfa37
JB
58 - start scripts (PLD)
59 - PCMCIA configuration files
e1d036a5
AF
60
61The BLUETOOTH trademarks are owned by Bluetooth SIG, Inc., U.S.A.
62
f89ecdc9
JR
63%description -l pl.UTF-8
64Narzędzia Bluetooth:
29edfa37
JB
65 - hcitool
66 - hciattach
67 - hciconfig
68 - hcid
df2fe191 69 - hidd
29edfa37 70 - l2ping
a5622b47 71 - pand
29edfa37
JB
72 - skrypty startowe (PLD)
73 - pliki konfiguracji PCMCIA
47cbf972 74
c9df9507
JB
75Znaki towarowe BLUETOOTH są własnością Bluetooth SIG, Inc. z USA.
76
77%package -n alsa-plugins-bluetooth
78Summary: ALSA plugins for Bluetooth audio devices
79Summary(pl.UTF-8): Wtyczki systemu ALSA dla urządzeń dźwiękowych Bluetooth
80Group: Libraries
81# bluetoothd + audio service
82Requires: %{name} = %{epoch}:%{version}-%{release}
83Requires: alsa-lib >= 1.0.10-1
84
85%description -n alsa-plugins-bluetooth
86ALSA plugins for Bluetooth audio devices.
87
88%description -n alsa-plugins-bluetooth -l pl.UTF-8
89Wtyczki systemu ALSA dla urządzeń dźwiękowych Bluetooth.
90
e25494de
JB
91%package -n cups-backend-bluetooth
92Summary: Bluetooth backend for CUPS
f8033937 93Summary(pl.UTF-8): Backend Bluetooth dla CUPS-a
e25494de 94Group: Applications/Printing
21238886 95Requires: bluez-libs >= 3.31
e25494de
JB
96Requires: cups
97
98%description -n cups-backend-bluetooth
99Bluetooth backend for CUPS.
100
f89ecdc9 101%description -n cups-backend-bluetooth -l pl.UTF-8
e25494de
JB
102Backend Bluetooth dla CUPS-a.
103
cf2b0853 104%package -n gstreamer-bluetooth
0fd9455d
JB
105Summary: Bluetooth support for gstreamer
106Summary(pl.UTF-8): Obsługa Bluetooth dla gstreamera
107Group: Libraries
21238886 108Requires: bluez-libs >= 3.31
0fd9455d
JB
109Requires: gstreamer >= 0.10
110Requires: gstreamer-plugins-base >= 0.10
cf2b0853
MWP
111
112%description -n gstreamer-bluetooth
113Bluetooth support for gstreamer.
114
115%description -n gstreamer-bluetooth -l pl.UTF-8
116Obsługa Bluetooth dla gstreamera.
117
e1d036a5 118%prep
e1d036a5 119%setup -q
b77afc9a 120%patch0 -p1
b14f0a60
MWP
121%patch1 -p0
122%patch2 -p0
33bb3a38 123
e1d036a5 124%build
7173a540
AF
125%{__libtoolize}
126%{__aclocal}
7173a540 127%{__autoconf}
c9df9507 128%{__autoheader}
250c9a94 129%{__automake}
7173a540 130%configure \
28279c4f 131 --enable-alsa \
c9df9507 132 --enable-audio \
cc609d25
JB
133 --enable-avctrl \
134 --enable-bccmd \
eed78b81 135 --enable-cups \
cc609d25 136 --enable-dfutool \
c9df9507 137 --enable-glib \
4184b882 138 --enable-gstreamer \
28279c4f
JB
139 --enable-hal \
140 --enable-hid2hci \
4184b882 141 --enable-input \
c9df9507 142 --enable-network \
28279c4f 143 --enable-obex \
a5622b47 144 --enable-pand \
eefd2dea 145 --enable-pcmciarules \
7ebe6642 146 --enable-sdpd \
df2fe191 147 --enable-hidd \
c9df9507 148 --enable-serial \
28279c4f 149 --disable-sync \
4184b882 150 --enable-test \
de47cb82 151 --enable-usb \
e25494de 152 --with-cups=/usr
4184b882 153
eed78b81 154%{__make} \
dc9640b5
JK
155 cupsdir=%{cupsdir} \
156 udevdir=%{udevdir}
e1d036a5
AF
157
158%install
159rm -rf $RPM_BUILD_ROOT
33bb3a38 160install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig}
dc9640b5 161install -d $RPM_BUILD_ROOT{/etc/udev/rules.d,%{udevdir}}
33bb3a38 162
29edfa37 163%{__make} install \
eed78b81 164 DESTDIR=$RPM_BUILD_ROOT \
eefd2dea 165 cupsdir=%{cupsdir} \
dc9640b5 166 udevdir=%{udevdir}
28279c4f
JB
167
168# noinst
28279c4f 169#install sync/bluetoothd-service-sync $RPM_BUILD_ROOT%{_libdir}/bluetooth
29edfa37 170
33bb3a38
JB
171install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/bluetooth
172install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/bluetooth
95e83f9e 173install %{SOURCE3} $RPM_BUILD_ROOT/etc/udev/rules.d/70-bluetooth.rules
dc9640b5 174install %{SOURCE4} $RPM_BUILD_ROOT%{udevdir}/bluetooth.sh
96f5fcbe 175install daemon/passkey-agent $RPM_BUILD_ROOT/%{_bindir}
eefd2dea 176mv $RPM_BUILD_ROOT/etc/udev/bluetooth.rules \
177 $RPM_BUILD_ROOT/etc/udev/rules.d/71-bluetooth.rules
178
c9df9507 179rm -f $RPM_BUILD_ROOT%{_libdir}/alsa-lib/*.la
9f0a1253 180rm -f $RPM_BUILD_ROOT%{_libdir}/bluetooth/plugins/*.la
0fd9455d 181rm -f $RPM_BUILD_ROOT%{_libdir}/gstreamer*/libgstbluetooth.la
c9df9507 182
e1d036a5
AF
183%clean
184rm -rf $RPM_BUILD_ROOT
185
c9df9507 186%post
7173a540 187/sbin/chkconfig --add bluetooth
66a4c701 188%service bluetooth restart
7173a540 189
c9df9507 190%preun
7173a540 191if [ "$1" = "0" ]; then
66a4c701 192 %service bluetooth stop
7173a540
AF
193 /sbin/chkconfig --del bluetooth
194fi
195
e1d036a5 196%files
a397e1f8 197%defattr(644,root,root,755)
c9df9507 198%doc AUTHORS ChangeLog README audio/audio-api.txt daemon/hal-namespace.txt hcid/dbus-api.txt input/input-api.txt network/network-api.txt serial/serial-api.txt
a397e1f8
AF
199%attr(755,root,root) %{_bindir}/*
200%attr(755,root,root) %{_sbindir}/*
c9df9507 201%dir %{_libdir}/bluetooth
bb9e1988
PZ
202%dir %{_libdir}/bluetooth/plugins
203%attr(755,root,root) %{_libdir}/bluetooth/plugins/*.so
c9df9507
JB
204%dir %{_sysconfdir}/bluetooth
205%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bluetooth/hcid.conf
206%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bluetooth/rfcomm.conf
eefd2dea 207%attr(754,root,root) /etc/rc.d/init.d/bluetooth
c9df9507
JB
208%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/bluetooth
209%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dbus-1/system.d/bluetooth.conf
dc9640b5
JK
210%attr(755,root,root) %{udevdir}/bluetooth.sh
211%attr(755,root,root) %{udevdir}/bluetooth_serial
eefd2dea 212%config(noreplace) %verify(not md5 mtime size) /etc/udev/rules.d/70-bluetooth.rules
213%config(noreplace) %verify(not md5 mtime size) /etc/udev/rules.d/71-bluetooth.rules
c9df9507
JB
214%{_mandir}/man[18]/*
215%{_mandir}/man5/hcid.conf.5*
eefd2dea 216
c9df9507
JB
217%files -n alsa-plugins-bluetooth
218%defattr(644,root,root,755)
219%attr(755,root,root) %{_libdir}/alsa-lib/libasound_module_ctl_bluetooth.so
220%attr(755,root,root) %{_libdir}/alsa-lib/libasound_module_pcm_bluetooth.so
e25494de
JB
221
222%files -n cups-backend-bluetooth
223%defattr(644,root,root,755)
224%attr(755,root,root) %{_prefix}/lib/cups/backend/bluetooth
cf2b0853
MWP
225
226%files -n gstreamer-bluetooth
227%defattr(644,root,root,755)
228%attr(755,root,root) %{_libdir}/gstreamer*/libgstbluetooth.so
This page took 0.117274 seconds and 4 git commands to generate.