summaryrefslogtreecommitdiffstats
path: root/utils.spec
blob: 8d8c40fb3596b22e8f103e1ba6bd78bec7ae404f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
# Note that this is NOT a relocatable package
%define ver      2.8
%define RELEASE  1
%define rel      %{?CUSTOM_RELEASE} %{!?CUSTOM_RELEASE:%RELEASE}
%define prefix   /usr

Summary: Bluetooth utilities 
Name: bluez-utils
Version: %ver
Release: %rel
Copyright: GPL
Group: Applications/System
Vendor: Official Linux Bluetooth protocol stack
Packager: Sebastian Frankfurt <sf@infesto.de>
Source: http://bluez.sf.net/download/%{name}-%{ver}.tar.gz
Patch0: %{name}-%{ver}.patch
BuildRoot: /var/tmp/%{name}-%{PACKAGE_VERSION}-root
URL: http://www.bluez.org
Docdir: %{prefix}/share/doc
Requires: glibc >= 2.2.4
Requires: bluez-libs >= 2.8
BuildRequires: glibc >= 2.2.4
BuildRequires: bluez-libs >= 2.8

%description
Bluetooth utilities (bluez-utils):
	- hcitool
	- hciattach
	- hciconfig
	- hcid
	- sdpd
	- dund
	- pand
	- hidd
	- sdptool
	- ciptool
	- l2ping
	- start scripts (RedHat)
	- pcmcia configuration files

The BLUETOOTH trademarks are owned by Bluetooth SIG, Inc., U.S.A.

%changelog
* Tue Aug 13 2002 Sebastian Frankfurt <sf@infesto.de>
- Initial RPM

%prep
rm -rf $RPM_BUILD_ROOT

%setup -q

%build
CFLAGS="$RPM_OPT_FLAGS" ./configure --enable-pcmcia --prefix=%{prefix} --mandir=%{_mandir} --sysconfdir=%{_sysconfdir}
make

%install
rm -rf $RPM_BUILD_ROOT
make DESTDIR=$RPM_BUILD_ROOT prefix=%{prefix} mandir=%{_mandir} install

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-, root, root)

%{_sysconfdir}/init.d/bluetooth
%{_sysconfdir}/default/bluetooth
%{_bindir}/hcitool
%{_bindir}/l2ping
%{_bindir}/bluepin
%{_bindir}/rfcomm
%{_sbindir}/hciattach
%{_sbindir}/hciconfig
%{_sbindir}/hcid
%{_sbindir}/hid2hci
%{_sbindir}/sdpd
%{_bindir}/dund
%{_bindir}/pand
%{_bindir}/hidd
%{_bindir}/sdptool
%{_bindir}/ciptool
%{_mandir}/man8/hciattach.8.gz
%{_mandir}/man8/hciconfig.8.gz
%{_mandir}/man5/hcid.conf.5.gz
%{_mandir}/man8/hcid.8.gz
%{_mandir}/man8/sdpd.8.gz
%{_mandir}/man8/hid2hci.8.gz
%{_mandir}/man1/dund.1.gz
%{_mandir}/man1/pand.1.gz
%{_mandir}/man1/hcitool.1.gz
%{_mandir}/man1/sdptool.1.gz
%{_mandir}/man1/ciptool.1.gz
%{_mandir}/man1/rfcomm.1.gz
%{_mandir}/man1/l2ping.1.gz
%{_sysconfdir}/bluetooth/*
%{_sysconfdir}/pcmcia/bluetooth.conf
%{_sysconfdir}/pcmcia/bluetooth

%doc AUTHORS COPYING INSTALL ChangeLog NEWS README