]> git.pld-linux.org Git - packages/bluez-utils.git/blob - bluez-utils.spec
- disable sync for now as it does nothing and doesn't build with current opensync
[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.18
5 Release:        1
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:  2b6b4d519b8f75ef3990122934e660ba
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.18
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.18
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
46 %description
47 Bluetooth utilities:
48  - hcitool
49  - hciattach
50  - hciconfig
51  - hcid
52  - l2ping
53  - start scripts (PLD)
54  - PCMCIA configuration files
55
56 The BLUETOOTH trademarks are owned by Bluetooth SIG, Inc., U.S.A.
57
58 %description -l pl.UTF-8
59 Narzędzia Bluetooth:
60  - hcitool
61  - hciattach
62  - hciconfig
63  - hcid
64  - l2ping
65  - skrypty startowe (PLD)
66  - pliki konfiguracji PCMCIA
67
68 Znaki towarowe BLUETOOTH są własnością Bluetooth SIG, Inc. z USA.
69
70 %package -n alsa-plugins-bluetooth
71 Summary:        ALSA plugins for Bluetooth audio devices
72 Summary(pl.UTF-8):      Wtyczki systemu ALSA dla urządzeń dźwiękowych Bluetooth
73 Group:          Libraries
74 # bluetoothd + audio service
75 Requires:       %{name} = %{epoch}:%{version}-%{release}
76 Requires:       alsa-lib >= 1.0.10-1
77
78 %description -n alsa-plugins-bluetooth
79 ALSA plugins for Bluetooth audio devices.
80
81 %description -n alsa-plugins-bluetooth -l pl.UTF-8
82 Wtyczki systemu ALSA dla urządzeń dźwiękowych Bluetooth.
83
84 %package -n cups-backend-bluetooth
85 Summary:        Bluetooth backend for CUPS
86 Summary(pl.UTF-8):      Backend Bluetooth dla CUPS-a
87 Group:          Applications/Printing
88 Requires:       bluez-libs >= 3.18
89 Requires:       cups
90
91 %description -n cups-backend-bluetooth
92 Bluetooth backend for CUPS.
93
94 %description -n cups-backend-bluetooth -l pl.UTF-8
95 Backend Bluetooth dla CUPS-a.
96
97 %package -n gstreamer-bluetooth
98 Summary:        Bluetooth support for gstreamer
99 Summary(pl.UTF-8):      Obsługa Bluetooth dla gstreamera
100 Group:          Libraries
101 Requires:       bluez-libs >= 3.18
102 Requires:       gstreamer >= 0.10
103 Requires:       gstreamer-plugins-base >= 0.10
104
105 %description -n gstreamer-bluetooth
106 Bluetooth support for gstreamer.
107
108 %description -n gstreamer-bluetooth -l pl.UTF-8
109 Obsługa Bluetooth dla gstreamera.
110
111 %prep
112 %setup -q
113 %patch0 -p1
114
115 %build
116 %{__libtoolize}
117 %{__aclocal}
118 %{__autoconf}
119 %{__autoheader}
120 %{__automake}
121 %configure \
122         --enable-alsa \
123         --enable-audio \
124         --enable-avctrl \
125         --enable-bccmd \
126         --enable-cups \
127         --enable-dfutool \
128         --enable-glib \
129         --enable-gstreamer \
130         --enable-hal \
131         --enable-hid2hci \
132         --enable-input \
133         --enable-network \
134         --enable-obex \
135         --enable-pcmciarules \
136         --enable-serial \
137         --disable-sync \
138         --enable-test \
139         --enable-usb \
140         --with-cups=/usr
141
142 %{__make} \
143         cupsdir=%{cupsdir}
144
145 %install
146 rm -rf $RPM_BUILD_ROOT
147 install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig}
148 install -d $RPM_BUILD_ROOT{/etc/udev/rules.d,/lib/udev}
149
150 %{__make} install \
151         DESTDIR=$RPM_BUILD_ROOT \
152         cupsdir=%{cupsdir} \
153         udevdir=/lib/udev
154
155 # noinst
156 install transfer/bluetoothd-service-transfer $RPM_BUILD_ROOT%{_libdir}/bluetooth
157 install transfer/transfer.service $RPM_BUILD_ROOT%{_sysconfdir}/bluetooth
158 #install sync/bluetoothd-service-sync $RPM_BUILD_ROOT%{_libdir}/bluetooth
159
160 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/bluetooth
161 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/bluetooth
162 install %{SOURCE3} $RPM_BUILD_ROOT/etc/udev/rules.d/70-bluetooth.rules
163 install %{SOURCE4} $RPM_BUILD_ROOT/lib/udev/bluetooth.sh
164 install daemon/passkey-agent $RPM_BUILD_ROOT/%{_bindir}
165 mv $RPM_BUILD_ROOT/etc/udev/bluetooth.rules \
166         $RPM_BUILD_ROOT/etc/udev/rules.d/71-bluetooth.rules
167
168 rm -f $RPM_BUILD_ROOT%{_libdir}/alsa-lib/*.la
169 rm -f $RPM_BUILD_ROOT%{_libdir}/gstreamer*/libgstbluetooth.la
170
171 %clean
172 rm -rf $RPM_BUILD_ROOT
173
174 %post
175 /sbin/chkconfig --add bluetooth
176 %service bluetooth restart
177
178 %preun
179 if [ "$1" = "0" ]; then
180         %service bluetooth stop
181         /sbin/chkconfig --del bluetooth
182 fi
183
184 %files
185 %defattr(644,root,root,755)
186 %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
187 %attr(755,root,root) %{_bindir}/*
188 %attr(755,root,root) %{_sbindir}/*
189 %dir %{_libdir}/bluetooth
190 %attr(755,root,root) %{_libdir}/bluetooth/bluetoothd-service-audio
191 %attr(755,root,root) %{_libdir}/bluetooth/bluetoothd-service-network
192 %attr(755,root,root) %{_libdir}/bluetooth/bluetoothd-service-serial
193 %attr(755,root,root) %{_libdir}/bluetooth/bluetoothd-service-input
194 %attr(755,root,root) %{_libdir}/bluetooth/bluetoothd-service-transfer
195 #%attr(755,root,root) %{_libdir}/bluetooth/bluetoothd-service-sync
196 %dir %{_sysconfdir}/bluetooth
197 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bluetooth/hcid.conf
198 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bluetooth/rfcomm.conf
199 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bluetooth/input.service
200 %{_sysconfdir}/bluetooth/audio.service
201 %{_sysconfdir}/bluetooth/network.service
202 %{_sysconfdir}/bluetooth/serial.service
203 %{_sysconfdir}/bluetooth/transfer.service
204 %attr(754,root,root) /etc/rc.d/init.d/bluetooth
205 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/bluetooth
206 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dbus-1/system.d/bluetooth.conf
207 %attr(755,root,root) /lib/udev/bluetooth.sh
208 %attr(755,root,root) /lib/udev/bluetooth_serial
209 %config(noreplace) %verify(not md5 mtime size) /etc/udev/rules.d/70-bluetooth.rules
210 %config(noreplace) %verify(not md5 mtime size) /etc/udev/rules.d/71-bluetooth.rules
211 %{_mandir}/man[18]/*
212 %{_mandir}/man5/hcid.conf.5*
213
214 %files -n alsa-plugins-bluetooth
215 %defattr(644,root,root,755)
216 %attr(755,root,root) %{_libdir}/alsa-lib/libasound_module_ctl_bluetooth.so
217 %attr(755,root,root) %{_libdir}/alsa-lib/libasound_module_pcm_bluetooth.so
218
219 %files -n cups-backend-bluetooth
220 %defattr(644,root,root,755)
221 %attr(755,root,root) %{_prefix}/lib/cups/backend/bluetooth
222
223 %files -n gstreamer-bluetooth
224 %defattr(644,root,root,755)
225 %attr(755,root,root) %{_libdir}/gstreamer*/libgstbluetooth.so
This page took 0.099352 seconds and 3 git commands to generate.