]> git.pld-linux.org Git - packages/bluez-utils.git/blame - bluez-utils.spec
- more PLDization
[packages/bluez-utils.git] / bluez-utils.spec
CommitLineData
a397e1f8
AF
1Summary: Bluetooth utilities
2Name: bluez-utils
3Version: 2.2
4Release: 2
7173a540 5License: GPL v2
a397e1f8
AF
6Group: Applications/System
7Source0: http://bluez.sourceforge.net/download/%{name}-%{version}.tar.gz
a397e1f8
AF
8BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
9URL: http://bluez.sourceforge.net
10BuildRequires: bluez-libs-devel >= 2.0
7173a540 11Requires(post,preun): /sbin/chkconfig
a397e1f8 12ExcludeArch: s390 s390x
e1d036a5
AF
13
14%description
15Bluetooth utilities (bluez-utils):
a397e1f8
AF
16 - hcitool
17 - hciattach
18 - hciconfig
19 - hcid
20 - l2ping
21 - start scripts (RedHat)
22 - pcmcia configuration files
e1d036a5
AF
23
24The BLUETOOTH trademarks are owned by Bluetooth SIG, Inc., U.S.A.
25
26
27%prep
28rm -rf $RPM_BUILD_ROOT
29
30%setup -q
e1d036a5
AF
31
32%build
7173a540
AF
33%{__libtoolize}
34%{__aclocal}
35%{__automake}
36%{__autoconf}
37%configure \
38 --enable-pcmcia
a397e1f8 39%{__make}
e1d036a5
AF
40
41%install
42rm -rf $RPM_BUILD_ROOT
7173a540
AF
43%{__make} install DESTDIR=$RPM_BUILD_ROOT \
44 confdir=%{_sysconfdir}/bluetooth \
45 mandir=%{_mandir}
46%{__make} -C scripts \
47 DESTDIR=$RPM_BUILD_ROOT \
48 redhat
e1d036a5
AF
49
50%clean
51rm -rf $RPM_BUILD_ROOT
52
7173a540
AF
53%post
54/sbin/chkconfig --add bluetooth
55
56%postun
57if [ "$1" = "0" ]; then
58 if [ -f /var/lock/subsys/bluetooth ]; then
59 /etc/rc.d/init.d/bluetooth stop 1>&2
60 fi
61 /sbin/chkconfig --del bluetooth
62fi
63
e1d036a5 64%files
a397e1f8 65%defattr(644,root,root,755)
7173a540 66%doc AUTHORS ChangeLog README
e1d036a5 67/etc/rc.d/init.d/bluetooth
a397e1f8
AF
68%attr(755,root,root) %{_bindir}/*
69%attr(755,root,root) %{_sbindir}/*
e1d036a5
AF
70%{_mandir}/man*/*
71%dir %{_sysconfdir}/bluetooth/
72%config %{_sysconfdir}/bluetooth/*
73%config %{_sysconfdir}/pcmcia/bluetooth.conf
74%config %{_sysconfdir}/pcmcia/bluetooth
This page took 0.036712 seconds and 4 git commands to generate.