]> git.pld-linux.org Git - packages/bluez-utils.git/blob - bluez-utils.spec
- updated to 2.15
[packages/bluez-utils.git] / bluez-utils.spec
1 # TODO:
2 # - check init script, add support for rfcomm bind on startup
3 #
4 Summary:        Bluetooth utilities
5 Summary(pl):    Narzêdzia Bluetooth
6 Name:           bluez-utils
7 Version:        2.15
8 Release:        1
9 Epoch:          0
10 License:        GPL v2
11 Group:          Applications/System
12 Source0:        http://bluez.sourceforge.net/download/%{name}-%{version}.tar.gz
13 # Source0-md5:  4e86dfd4449ff49e82696d8a3b254002
14 Source1:        %{name}.init
15 Source2:        %{name}.sysconfig
16 Patch0:         %{name}-etc_dir.patch
17 URL:            http://bluez.sourceforge.net/
18 BuildRequires:  autoconf
19 BuildRequires:  automake
20 BuildRequires:  bison
21 BuildRequires:  bluez-libs-devel >= 2.15
22 BuildRequires:  dbus-devel
23 BuildRequires:  libtool
24 BuildRequires:  libusb-devel
25 # alsa-lib-devel, openobex-devel - currently only checked for, not used
26 PreReq:         rc-scripts
27 Requires:       bluez-libs >= 2.15
28 Obsoletes:      bluez-pan
29 Obsoletes:      bluez-sdp
30 Conflicts:      bluez-bluefw
31 ExcludeArch:    s390 s390x
32 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
33
34 # currently lib, not %{_lib} (see cups.spec)
35 %define         cupsdir         /usr/lib/cups/backend
36
37 %description
38 Bluetooth utilities:
39  - hcitool
40  - hciattach
41  - hciconfig
42  - hcid
43  - l2ping
44  - start scripts (PLD)
45  - PCMCIA configuration files
46
47 The BLUETOOTH trademarks are owned by Bluetooth SIG, Inc., U.S.A.
48
49 %description -l pl
50 Narzêdzia Bluetooth:
51  - hcitool
52  - hciattach
53  - hciconfig
54  - hcid
55  - l2ping
56  - skrypty startowe (PLD)
57  - pliki konfiguracji PCMCIA
58
59 %package -n cups-backend-bluetooth
60 Summary:        Bluetooth backend for CUPS
61 Summary(pl):    Backend Bluetooth dla CUPS-a
62 Group:          Applications/Printing
63 Requires:       bluez-libs >= 2.11
64 Requires:       cups
65
66 %description -n cups-backend-bluetooth
67 Bluetooth backend for CUPS.
68
69 %description -n cups-backend-bluetooth -l pl
70 Backend Bluetooth dla CUPS-a.
71
72 %package init
73 Summary:        Init script for Bluetooth subsystem
74 Summary(pl):    Skrypt init dla podsystemu Bluetooth
75 Group:          Applications/System
76 Requires:       %{name} = %{epoch}:%{version}-%{release}
77 Requires(post,preun):   /sbin/chkconfig
78
79 %description init
80 Init script for Bluetooth subsystem.
81
82 %description init -l pl
83 Skrypt init dla podsystemu Bluetooth.
84
85 %prep
86 %setup -q
87 %patch0 -p1
88
89 %build
90 %{__libtoolize}
91 %{__aclocal}
92 %{__autoconf}
93 %{__automake}
94 %configure \
95         --enable-bcm203x \
96         --enable-cups \
97         --enable-pcmcia \
98         --with-cups=/usr
99 %{__make} \
100         cupsdir=%{cupsdir}
101
102 %install
103 rm -rf $RPM_BUILD_ROOT
104 install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig}
105
106 %{__make} install \
107         DESTDIR=$RPM_BUILD_ROOT \
108         cupsdir=%{cupsdir}
109
110 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/bluetooth
111 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/bluetooth
112
113 %clean
114 rm -rf $RPM_BUILD_ROOT
115
116 %post init
117 /sbin/chkconfig --add bluetooth
118 if [ -f /var/lock/subsys/bluetooth ]; then
119         /etc/rc.d/init.d/bluetooth restart >&2
120 else
121         echo "Run \"/etc/rc.d/init.d/bluetooth\" to start bluetooth." >&2
122 fi
123
124 %postun init
125 if [ "$1" = "0" ]; then
126         if [ -f /var/lock/subsys/bluetooth ]; then
127                 /etc/rc.d/init.d/bluetooth stop 1>&2
128         fi
129         /sbin/chkconfig --del bluetooth
130 fi
131
132 %files
133 %defattr(644,root,root,755)
134 %doc AUTHORS ChangeLog README
135 %attr(755,root,root) %{_bindir}/*
136 %attr(755,root,root) %{_sbindir}/*
137 %{_mandir}/man*/*
138 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) /etc/sysconfig/bluetooth
139 %dir %{_sysconfdir}/bluetooth
140 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/bluetooth/*
141 %attr(755,root,root) %{_sysconfdir}/hotplug/usb/bcm203x
142 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/hotplug/usb/bcm203x.usermap
143 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/pcmcia/bluetooth.conf
144 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/pcmcia/bluetooth
145
146 %files -n cups-backend-bluetooth
147 %defattr(644,root,root,755)
148 %attr(755,root,root) %{_prefix}/lib/cups/backend/bluetooth
149
150 %files init
151 %defattr(644,root,root,755)
152 %attr(754,root,root) /etc/rc.d/init.d/bluetooth
This page took 0.033396 seconds and 3 git commands to generate.