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