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