]> git.pld-linux.org Git - packages/bluez-utils.git/blob - bluez-utils.spec
- build pand util by default
[packages/bluez-utils.git] / bluez-utils.spec
1 Summary:        Bluetooth utilities
2 Summary(pl.UTF-8):      Narzędzia Bluetooth
3 Name:           bluez-utils
4 Version:        3.30
5 Release:        2
6 Epoch:          0
7 License:        GPL v2+
8 Group:          Applications/System
9 #Source0Download: http://www.bluez.org/download.html
10 Source0:        http://bluez.sourceforge.net/download/%{name}-%{version}.tar.gz
11 # Source0-md5:  3d17bb712d243bb1b316f7e8a909fa82
12 Source1:        %{name}.init
13 Source2:        %{name}.sysconfig
14 Source3:        %{name}-udev.rules
15 Source4:        %{name}-udev.script
16 Patch0:         %{name}-etc_dir.patch
17 URL:            http://www.bluez.org/
18 BuildRequires:  alsa-lib-devel >= 1.0.10-1
19 BuildRequires:  autoconf >= 2.50
20 BuildRequires:  automake
21 BuildRequires:  bison
22 BuildRequires:  bluez-libs-devel >= 3.30
23 BuildRequires:  dbus-glib-devel >= 0.60
24 BuildRequires:  glib2-devel >= 2.0
25 BuildRequires:  gstreamer-devel >= 0.10
26 BuildRequires:  gstreamer-plugins-base-devel >= 0.10
27 BuildRequires:  hal-devel >= 0.5.8
28 #BuildRequires: libopensync-devel < 0.30
29 BuildRequires:  libtool
30 BuildRequires:  libusb-devel
31 BuildRequires:  openobex-devel >= 1.1
32 BuildRequires:  pkgconfig >= 1:0.9.0
33 BuildRequires:  rpmbuild(macros) >= 1.268
34 Requires:       bluez-libs >= 3.30
35 Requires:       rc-scripts
36 Obsoletes:      bluez-pan
37 Obsoletes:      bluez-sdp
38 Obsoletes:      bluez-utils-init
39 Conflicts:      bluez-bluefw
40 ExcludeArch:    s390 s390x
41 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
42
43 # currently lib, not %{_lib} (see cups.spec)
44 %define         cupsdir         /usr/lib/cups/backend
45 %define         udevdir         /%{_lib}/udev
46
47 %description
48 Bluetooth utilities:
49  - hcitool
50  - hciattach
51  - hciconfig
52  - hcid
53  - hidd
54  - l2ping
55  - pand
56  - start scripts (PLD)
57  - PCMCIA configuration files
58
59 The BLUETOOTH trademarks are owned by Bluetooth SIG, Inc., U.S.A.
60
61 %description -l pl.UTF-8
62 Narzędzia Bluetooth:
63  - hcitool
64  - hciattach
65  - hciconfig
66  - hcid
67  - hidd
68  - l2ping
69  - pand
70  - skrypty startowe (PLD)
71  - pliki konfiguracji PCMCIA
72
73 Znaki towarowe BLUETOOTH są własnością Bluetooth SIG, Inc. z USA.
74
75 %package -n alsa-plugins-bluetooth
76 Summary:        ALSA plugins for Bluetooth audio devices
77 Summary(pl.UTF-8):      Wtyczki systemu ALSA dla urządzeń dźwiękowych Bluetooth
78 Group:          Libraries
79 # bluetoothd + audio service
80 Requires:       %{name} = %{epoch}:%{version}-%{release}
81 Requires:       alsa-lib >= 1.0.10-1
82
83 %description -n alsa-plugins-bluetooth
84 ALSA plugins for Bluetooth audio devices.
85
86 %description -n alsa-plugins-bluetooth -l pl.UTF-8
87 Wtyczki systemu ALSA dla urządzeń dźwiękowych Bluetooth.
88
89 %package -n cups-backend-bluetooth
90 Summary:        Bluetooth backend for CUPS
91 Summary(pl.UTF-8):      Backend Bluetooth dla CUPS-a
92 Group:          Applications/Printing
93 Requires:       bluez-libs >= 3.30
94 Requires:       cups
95
96 %description -n cups-backend-bluetooth
97 Bluetooth backend for CUPS.
98
99 %description -n cups-backend-bluetooth -l pl.UTF-8
100 Backend Bluetooth dla CUPS-a.
101
102 %package -n gstreamer-bluetooth
103 Summary:        Bluetooth support for gstreamer
104 Summary(pl.UTF-8):      Obsługa Bluetooth dla gstreamera
105 Group:          Libraries
106 Requires:       bluez-libs >= 3.30
107 Requires:       gstreamer >= 0.10
108 Requires:       gstreamer-plugins-base >= 0.10
109
110 %description -n gstreamer-bluetooth
111 Bluetooth support for gstreamer.
112
113 %description -n gstreamer-bluetooth -l pl.UTF-8
114 Obsługa Bluetooth dla gstreamera.
115
116 %prep
117 %setup -q
118 %patch0 -p1
119
120 %build
121 %{__libtoolize}
122 %{__aclocal}
123 %{__autoconf}
124 %{__autoheader}
125 %{__automake}
126 %configure \
127         --enable-alsa \
128         --enable-audio \
129         --enable-avctrl \
130         --enable-bccmd \
131         --enable-cups \
132         --enable-dfutool \
133         --enable-glib \
134         --enable-gstreamer \
135         --enable-hal \
136         --enable-hid2hci \
137         --enable-input \
138         --enable-network \
139         --enable-obex \
140         --enable-pand \
141         --enable-pcmciarules \
142         --enable-sdpd \
143         --enable-hidd \
144         --enable-serial \
145         --disable-sync \
146         --enable-test \
147         --enable-usb \
148         --with-cups=/usr
149
150 %{__make} \
151         cupsdir=%{cupsdir} \
152         udevdir=%{udevdir}
153
154 %install
155 rm -rf $RPM_BUILD_ROOT
156 install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig}
157 install -d $RPM_BUILD_ROOT{/etc/udev/rules.d,%{udevdir}}
158
159 %{__make} install \
160         DESTDIR=$RPM_BUILD_ROOT \
161         cupsdir=%{cupsdir} \
162         udevdir=%{udevdir}
163
164 # noinst
165 #install sync/bluetoothd-service-sync $RPM_BUILD_ROOT%{_libdir}/bluetooth
166
167 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/bluetooth
168 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/bluetooth
169 install %{SOURCE3} $RPM_BUILD_ROOT/etc/udev/rules.d/70-bluetooth.rules
170 install %{SOURCE4} $RPM_BUILD_ROOT%{udevdir}/bluetooth.sh
171 install daemon/passkey-agent $RPM_BUILD_ROOT/%{_bindir}
172 mv $RPM_BUILD_ROOT/etc/udev/bluetooth.rules \
173         $RPM_BUILD_ROOT/etc/udev/rules.d/71-bluetooth.rules
174
175 rm -f $RPM_BUILD_ROOT%{_libdir}/alsa-lib/*.la
176 rm -f $RPM_BUILD_ROOT%{_libdir}/bluetooth/plugins/*.la
177 rm -f $RPM_BUILD_ROOT%{_libdir}/gstreamer*/libgstbluetooth.la
178
179 %clean
180 rm -rf $RPM_BUILD_ROOT
181
182 %post
183 /sbin/chkconfig --add bluetooth
184 %service bluetooth restart
185
186 %preun
187 if [ "$1" = "0" ]; then
188         %service bluetooth stop
189         /sbin/chkconfig --del bluetooth
190 fi
191
192 %files
193 %defattr(644,root,root,755)
194 %doc AUTHORS ChangeLog README audio/audio-api.txt daemon/hal-namespace.txt hcid/dbus-api.txt input/input-api.txt network/network-api.txt serial/serial-api.txt
195 %attr(755,root,root) %{_bindir}/*
196 %attr(755,root,root) %{_sbindir}/*
197 %dir %{_libdir}/bluetooth
198 %dir %{_libdir}/bluetooth/plugins
199 %attr(755,root,root) %{_libdir}/bluetooth/plugins/*.so
200 %dir %{_sysconfdir}/bluetooth
201 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bluetooth/hcid.conf
202 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bluetooth/rfcomm.conf
203 %attr(754,root,root) /etc/rc.d/init.d/bluetooth
204 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/bluetooth
205 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dbus-1/system.d/bluetooth.conf
206 %attr(755,root,root) %{udevdir}/bluetooth.sh
207 %attr(755,root,root) %{udevdir}/bluetooth_serial
208 %config(noreplace) %verify(not md5 mtime size) /etc/udev/rules.d/70-bluetooth.rules
209 %config(noreplace) %verify(not md5 mtime size) /etc/udev/rules.d/71-bluetooth.rules
210 %{_mandir}/man[18]/*
211 %{_mandir}/man5/hcid.conf.5*
212
213 %files -n alsa-plugins-bluetooth
214 %defattr(644,root,root,755)
215 %attr(755,root,root) %{_libdir}/alsa-lib/libasound_module_ctl_bluetooth.so
216 %attr(755,root,root) %{_libdir}/alsa-lib/libasound_module_pcm_bluetooth.so
217
218 %files -n cups-backend-bluetooth
219 %defattr(644,root,root,755)
220 %attr(755,root,root) %{_prefix}/lib/cups/backend/bluetooth
221
222 %files -n gstreamer-bluetooth
223 %defattr(644,root,root,755)
224 %attr(755,root,root) %{_libdir}/gstreamer*/libgstbluetooth.so
This page took 0.073534 seconds and 3 git commands to generate.