]> git.pld-linux.org Git - packages/bluez-utils.git/blob - bluez-utils.spec
- more PLDization
[packages/bluez-utils.git] / bluez-utils.spec
1 Summary:        Bluetooth utilities
2 Name:           bluez-utils
3 Version:        2.2
4 Release:        2
5 License:        GPL v2
6 Group:          Applications/System
7 Source0:        http://bluez.sourceforge.net/download/%{name}-%{version}.tar.gz
8 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
9 URL:            http://bluez.sourceforge.net
10 BuildRequires:  bluez-libs-devel >= 2.0
11 Requires(post,preun):   /sbin/chkconfig
12 ExcludeArch:    s390 s390x
13
14 %description
15 Bluetooth utilities (bluez-utils):
16  - hcitool
17  - hciattach
18  - hciconfig
19  - hcid
20  - l2ping
21  - start scripts (RedHat)
22  - pcmcia configuration files
23
24 The BLUETOOTH trademarks are owned by Bluetooth SIG, Inc., U.S.A.
25
26
27 %prep
28 rm -rf $RPM_BUILD_ROOT
29
30 %setup -q
31
32 %build
33 %{__libtoolize}
34 %{__aclocal}
35 %{__automake}
36 %{__autoconf}
37 %configure \
38         --enable-pcmcia
39 %{__make}
40
41 %install
42 rm -rf $RPM_BUILD_ROOT
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
49
50 %clean
51 rm -rf $RPM_BUILD_ROOT
52
53 %post
54 /sbin/chkconfig --add bluetooth
55
56 %postun
57 if [ "$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
62 fi
63
64 %files
65 %defattr(644,root,root,755)
66 %doc AUTHORS ChangeLog README
67 /etc/rc.d/init.d/bluetooth
68 %attr(755,root,root) %{_bindir}/*
69 %attr(755,root,root) %{_sbindir}/*
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.048525 seconds and 3 git commands to generate.