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