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