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