]> git.pld-linux.org Git - packages/bluez-utils.git/blame - bluez-utils.spec
- up to 3.11
[packages/bluez-utils.git] / bluez-utils.spec
CommitLineData
a397e1f8 1Summary: Bluetooth utilities
f8033937 2Summary(pl.UTF-8): Narzędzia Bluetooth
a397e1f8 3Name: bluez-utils
01f572c0 4Version: 3.11
96f5fcbe 5Release: 1
b936cbb0 6Epoch: 0
7173a540 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
01f572c0 11# Source0-md5: 703fed8e09e25b5e1f01be337576e343
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/
29edfa37
JB
18BuildRequires: autoconf
19BuildRequires: automake
344f6dee 20BuildRequires: bison
a3a5cb66 21BuildRequires: bluez-libs-devel >= 3.7
cc609d25 22BuildRequires: dbus-glib-devel >= 0.35
29edfa37 23BuildRequires: libtool
eed78b81 24BuildRequires: libusb-devel
cc609d25 25BuildRequires: pkgconfig
66a4c701 26BuildRequires: rpmbuild(macros) >= 1.268
cc609d25
JB
27# for future use (ALSA plugins not finished)
28#BuildRequires: alsa-lib-devel >= 0.9
29# for future use (fuse module is just testing stub now)
30#BuildRequires: libfuse-devel
31#BuildRequires: openobex-devel >= 1.1
a3a5cb66 32Requires: bluez-libs >= 3.7
fbf0e7d5 33Requires: rc-scripts
7172a039 34Obsoletes: bluez-pan
344f6dee 35Obsoletes: bluez-sdp
eefd2dea 36Obsoletes: bluez-utils-init
7888efe5 37Conflicts: bluez-bluefw
a397e1f8 38ExcludeArch: s390 s390x
29edfa37 39BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
e1d036a5 40
eed78b81
JB
41# currently lib, not %{_lib} (see cups.spec)
42%define cupsdir /usr/lib/cups/backend
43
e1d036a5 44%description
9059e282 45Bluetooth utilities:
a397e1f8
AF
46 - hcitool
47 - hciattach
48 - hciconfig
49 - hcid
50 - l2ping
29edfa37
JB
51 - start scripts (PLD)
52 - PCMCIA configuration files
e1d036a5
AF
53
54The BLUETOOTH trademarks are owned by Bluetooth SIG, Inc., U.S.A.
55
f89ecdc9
JR
56%description -l pl.UTF-8
57Narzędzia Bluetooth:
29edfa37
JB
58 - hcitool
59 - hciattach
60 - hciconfig
61 - hcid
62 - l2ping
63 - skrypty startowe (PLD)
64 - pliki konfiguracji PCMCIA
47cbf972 65
e25494de
JB
66%package -n cups-backend-bluetooth
67Summary: Bluetooth backend for CUPS
f8033937 68Summary(pl.UTF-8): Backend Bluetooth dla CUPS-a
e25494de 69Group: Applications/Printing
a3a5cb66 70Requires: bluez-libs >= 3.7
e25494de
JB
71Requires: cups
72
73%description -n cups-backend-bluetooth
74Bluetooth backend for CUPS.
75
f89ecdc9 76%description -n cups-backend-bluetooth -l pl.UTF-8
e25494de
JB
77Backend Bluetooth dla CUPS-a.
78
9059e282 79%package init
80Summary: Init script for Bluetooth subsystem
f8033937 81Summary(pl.UTF-8): Skrypt init dla podsystemu Bluetooth
9059e282 82Group: Applications/System
9059e282 83Requires(post,preun): /sbin/chkconfig
fbf0e7d5 84Requires: %{name} = %{epoch}:%{version}-%{release}
9059e282 85
86%description init
87Init script for Bluetooth subsystem.
88
f89ecdc9 89%description init -l pl.UTF-8
9059e282 90Skrypt init dla podsystemu Bluetooth.
91
e1d036a5 92%prep
e1d036a5 93%setup -q
b77afc9a 94%patch0 -p1
33bb3a38 95
e1d036a5 96%build
7173a540
AF
97%{__libtoolize}
98%{__aclocal}
7173a540 99%{__autoconf}
250c9a94 100%{__automake}
7173a540 101%configure \
cc609d25
JB
102 --enable-avctrl \
103 --enable-bccmd \
eed78b81 104 --enable-cups \
cc609d25 105 --enable-dfutool \
eefd2dea 106 --enable-pcmciarules \
e25494de 107 --with-cups=/usr
eed78b81
JB
108%{__make} \
109 cupsdir=%{cupsdir}
e1d036a5
AF
110
111%install
112rm -rf $RPM_BUILD_ROOT
33bb3a38 113install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig}
962e0e98 114install -d $RPM_BUILD_ROOT{/etc/udev/rules.d,/lib/udev}
33bb3a38 115
29edfa37 116%{__make} install \
eed78b81 117 DESTDIR=$RPM_BUILD_ROOT \
eefd2dea 118 cupsdir=%{cupsdir} \
119 udevdir=/lib/udev
29edfa37 120
33bb3a38
JB
121install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/bluetooth
122install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/bluetooth
95e83f9e
AM
123install %{SOURCE3} $RPM_BUILD_ROOT/etc/udev/rules.d/70-bluetooth.rules
124install %{SOURCE4} $RPM_BUILD_ROOT/lib/udev/bluetooth.sh
96f5fcbe 125install daemon/passkey-agent $RPM_BUILD_ROOT/%{_bindir}
eefd2dea 126mv $RPM_BUILD_ROOT/etc/udev/bluetooth.rules \
127 $RPM_BUILD_ROOT/etc/udev/rules.d/71-bluetooth.rules
128
e1d036a5
AF
129%clean
130rm -rf $RPM_BUILD_ROOT
131
9059e282 132%post init
7173a540 133/sbin/chkconfig --add bluetooth
66a4c701 134%service bluetooth restart
7173a540 135
fbf0e7d5 136%preun init
7173a540 137if [ "$1" = "0" ]; then
66a4c701 138 %service bluetooth stop
7173a540
AF
139 /sbin/chkconfig --del bluetooth
140fi
141
e1d036a5 142%files
a397e1f8 143%defattr(644,root,root,755)
7173a540 144%doc AUTHORS ChangeLog README
a397e1f8
AF
145%attr(755,root,root) %{_bindir}/*
146%attr(755,root,root) %{_sbindir}/*
e1d036a5 147%{_mandir}/man*/*
eefd2dea 148
149%attr(754,root,root) /etc/rc.d/init.d/bluetooth
150%attr(755,root,root) /lib/udev/bluetooth.sh
151%attr(755,root,root) /lib/udev/bluetooth_serial
152%config(noreplace) %verify(not md5 mtime size) /etc/udev/rules.d/70-bluetooth.rules
153%config(noreplace) %verify(not md5 mtime size) /etc/udev/rules.d/71-bluetooth.rules
154
39df08b0 155%dir /etc/bluetooth
eefd2dea 156%dir /etc/sysconfig/bluetooth
eba520e7 157%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/bluetooth
eba520e7 158%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bluetooth/*
75ef92a8 159%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dbus-1/system.d/*
e25494de
JB
160
161%files -n cups-backend-bluetooth
162%defattr(644,root,root,755)
163%attr(755,root,root) %{_prefix}/lib/cups/backend/bluetooth
This page took 0.05839 seconds and 4 git commands to generate.