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