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