]> git.pld-linux.org Git - packages/bluez-utils.git/blob - bluez-utils.spec
- pl description (but changed note about init scripts - it isn't RedHat)
[packages/bluez-utils.git] / bluez-utils.spec
1 Summary:        Bluetooth utilities
2 Summary(pl):    Narzêdzia Bluetooth
3 Name:           bluez-utils
4 Version:        2.2
5 Release:        2
6 License:        GPL v2
7 Group:          Applications/System
8 Source0:        http://bluez.sourceforge.net/download/%{name}-%{version}.tar.gz
9 URL:            http://bluez.sourceforge.net/
10 BuildRequires:  autoconf
11 BuildRequires:  automake
12 BuildRequires:  bluez-libs-devel >= 2.0
13 BuildRequires:  libtool
14 Requires(post,preun):   /sbin/chkconfig
15 ExcludeArch:    s390 s390x
16 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17
18 %description
19 Bluetooth utilities (bluez-utils):
20  - hcitool
21  - hciattach
22  - hciconfig
23  - hcid
24  - l2ping
25  - start scripts (PLD)
26  - PCMCIA configuration files
27
28 The BLUETOOTH trademarks are owned by Bluetooth SIG, Inc., U.S.A.
29
30 %description -l pl
31 Narzêdzia Bluetooth (bluez-utils):
32  - hcitool
33  - hciattach
34  - hciconfig
35  - hcid
36  - l2ping
37  - skrypty startowe (PLD)
38  - pliki konfiguracji PCMCIA
39  
40 %prep
41 %setup -q
42
43 %build
44 %{__libtoolize}
45 %{__aclocal}
46 %{__automake}
47 %{__autoconf}
48 %configure \
49         --enable-pcmcia
50 %{__make}
51
52 %install
53 rm -rf $RPM_BUILD_ROOT
54 %{__make} install \
55         DESTDIR=$RPM_BUILD_ROOT \
56         confdir=%{_sysconfdir}/bluetooth \
57         mandir=%{_mandir}
58
59 %{__make} -C scripts \
60         DESTDIR=$RPM_BUILD_ROOT \
61         redhat
62
63 %clean
64 rm -rf $RPM_BUILD_ROOT
65
66 %post
67 /sbin/chkconfig --add bluetooth
68 if [ -f /var/lock/subsys/bluetooth ]; then
69         /etc/rc.d/init.d/bluetooth restart >&2
70 else
71         echo "Run \"/etc/rc.d/init.d/bluetooth\" to start bluetooth." >&2
72 fi
73
74 %postun
75 if [ "$1" = "0" ]; then
76         if [ -f /var/lock/subsys/bluetooth ]; then
77                 /etc/rc.d/init.d/bluetooth stop 1>&2
78         fi
79         /sbin/chkconfig --del bluetooth
80 fi
81
82 %files
83 %defattr(644,root,root,755)
84 %doc AUTHORS ChangeLog README
85 %attr(754,root,root) /etc/rc.d/init.d/bluetooth
86 %attr(755,root,root) %{_bindir}/*
87 %attr(755,root,root) %{_sbindir}/*
88 %{_mandir}/man*/*
89 %dir %{_sysconfdir}/bluetooth
90 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/bluetooth/*
91 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/pcmcia/bluetooth.conf
92 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/pcmcia/bluetooth
This page took 0.040866 seconds and 4 git commands to generate.