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