]> git.pld-linux.org Git - packages/bluez.git/blob - bluez.spec
rel 2; added audio,input,network,serial config files
[packages/bluez.git] / bluez.spec
1 Summary:        Bluetooth utilities
2 Summary(pl.UTF-8):      Narzędzia Bluetooth
3 Name:           bluez
4 Version:        4.53
5 Release:        2
6 License:        GPL v2+
7 Group:          Applications/System
8 #Source0Download: http://www.bluez.org/download.html
9 Source0:        http://www.kernel.org/pub/linux/bluetooth/%{name}-%{version}.tar.gz
10 # Source0-md5:  432509193ea508da5ce23fe056625d0f
11 Source1:        %{name}.init
12 Source2:        %{name}.sysconfig
13 Source3:        dund.init
14 Source4:        pand.init
15 Source5:        rfcomm.init
16 Patch0:         %{name}-etc_dir.patch
17 Patch1:         %{name}-oui.patch
18 Patch2:         %{name}-wacom-mode-2.patch
19 Patch3:         %{name}-try-utf8-harder.patch
20 Patch4:         %{name}-parallel-make.patch
21 URL:            http://www.bluez.org/
22 BuildRequires:  alsa-lib-devel >= 1.0.10-1
23 BuildRequires:  autoconf >= 2.50
24 BuildRequires:  automake
25 BuildRequires:  bison
26 BuildRequires:  dbus-glib-devel >= 0.60
27 BuildRequires:  glib2-devel >= 2.0
28 BuildRequires:  gstreamer-devel >= 0.10
29 BuildRequires:  gstreamer-plugins-base-devel >= 0.10
30 BuildRequires:  libnl-devel
31 BuildRequires:  libsndfile-devel
32 BuildRequires:  libtool
33 BuildRequires:  libusb-compat-devel
34 BuildRequires:  pkgconfig >= 1:0.9.0
35 BuildRequires:  rpmbuild(macros) >= 1.268
36 BuildRequires:  udev-devel
37 Requires:       %{name}-libs = %{epoch}:%{version}-%{release}
38 Requires:       hwdata >= 0.225
39 Requires:       rc-scripts
40 Provides:       bluez-utils = %{epoch}:%{version}-%{release}
41 Obsoletes:      bluez-hciemu
42 Obsoletes:      bluez-pan
43 Obsoletes:      bluez-sdp
44 Obsoletes:      bluez-utils
45 Obsoletes:      bluez-utils-init
46 Conflicts:      bluez-bluefw
47 ExcludeArch:    s390 s390x
48 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
49
50 # currently lib, not %{_lib} (see cups.spec)
51 %define         cupsdir         /usr/lib/cups/backend
52 %define         udevdir         /lib/udev
53
54 %description
55 Bluetooth utilities:
56  - bluetoothd
57  - dund
58  - hcitool
59  - hciattach
60  - hciconfig
61  - hciemu
62  - hidd
63  - l2ping
64  - pand
65  - start scripts (PLD)
66  - PCMCIA configuration files
67
68 The BLUETOOTH trademarks are owned by Bluetooth SIG, Inc., U.S.A.
69
70 %description -l pl.UTF-8
71 Narzędzia Bluetooth:
72  - bluetoothd
73  - dund
74  - hcitool
75  - hciattach
76  - hciconfig
77  - hciemu
78  - hidd
79  - l2ping
80  - pand
81  - skrypty startowe (PLD)
82  - pliki konfiguracji PCMCIA
83
84 Znaki towarowe BLUETOOTH są własnością Bluetooth SIG, Inc. z USA.
85
86 %package -n alsa-plugins-bluetooth
87 Summary:        ALSA plugins for Bluetooth audio devices
88 Summary(pl.UTF-8):      Wtyczki systemu ALSA dla urządzeń dźwiękowych Bluetooth
89 Group:          Libraries
90 # bluetoothd + audio service
91 Requires:       %{name} = %{epoch}:%{version}-%{release}
92 Requires:       alsa-lib >= 1.0.10-1
93
94 %description -n alsa-plugins-bluetooth
95 ALSA plugins for Bluetooth audio devices.
96
97 %description -n alsa-plugins-bluetooth -l pl.UTF-8
98 Wtyczki systemu ALSA dla urządzeń dźwiękowych Bluetooth.
99
100 %package -n cups-backend-bluetooth
101 Summary:        Bluetooth backend for CUPS
102 Summary(pl.UTF-8):      Backend Bluetooth dla CUPS-a
103 Group:          Applications/Printing
104 Requires:       bluez-libs >= %{epoch}:%{version}-%{release}
105 Requires:       cups
106
107 %description -n cups-backend-bluetooth
108 Bluetooth backend for CUPS.
109
110 %description -n cups-backend-bluetooth -l pl.UTF-8
111 Backend Bluetooth dla CUPS-a.
112
113 %package -n gstreamer-bluetooth
114 Summary:        Bluetooth support for gstreamer
115 Summary(pl.UTF-8):      Obsługa Bluetooth dla gstreamera
116 Group:          Libraries
117 Requires:       bluez-libs >= %{epoch}:%{version}-%{release}
118 Requires:       gstreamer >= 0.10
119 Requires:       gstreamer-plugins-base >= 0.10
120
121 %description -n gstreamer-bluetooth
122 Bluetooth support for gstreamer.
123
124 %description -n gstreamer-bluetooth -l pl.UTF-8
125 Obsługa Bluetooth dla gstreamera.
126
127 %package libs
128 Summary:        Bluetooth libraries
129 Summary(pl.UTF-8):      Biblioteki Bluetooth
130 Group:          Development/Libraries
131 Obsoletes:      bluez-sdp
132
133 %description libs
134 Libraries for use in Bluetooth applications.
135
136 The BLUETOOTH trademarks are owned by Bluetooth SIG, Inc., U.S.A.
137
138 %description libs -l pl.UTF-8
139 Biblioteki do używania w aplikacjach Bluetooth.
140
141 Znaki towarowe BLUETOOTH są własnością Bluetooth SIG, Inc. z USA.
142
143 %package libs-devel
144 Summary:        Header files for Bluetooth applications
145 Summary(pl.UTF-8):      Pliki nagłówkowe dla aplikacji Bluetooth
146 Group:          Development/Libraries
147 Requires:       %{name}-libs = %{epoch}:%{version}-%{release}
148 Obsoletes:      bluez-sdp-devel
149
150 %description libs-devel
151 bluez-libs-devel contains header files for use in Bluetooth
152 applications.
153
154 %description libs-devel -l pl.UTF-8
155 Ten pakiet zawiera pliki nagłówkowe do używania w aplikacjach
156 Bluetooth.
157
158 %package libs-static
159 Summary:        Static Bluetooth libraries
160 Summary(pl.UTF-8):      Biblioteki statyczne Bluetooth
161 Group:          Development/Libraries
162 Requires:       %{name}-libs-devel = %{epoch}:%{version}-%{release}
163 Obsoletes:      bluez-sdp-static
164
165 %description libs-static
166 bluez-libs-static contains development static libraries for use in
167 Bluetooth applications.
168
169 %description libs-static -l pl.UTF-8
170 Ten pakiet zawiera biblioteki statyczne, których można używać do
171 aplikacji Bluetooth.
172
173 %prep
174 %setup -q
175 %patch0 -p1
176 %patch1 -p1
177 %patch2 -p1
178 %patch3 -p1
179 %patch4 -p1
180
181 %build
182 %{__libtoolize}
183 %{__aclocal}
184 %{__autoconf}
185 %{__autoheader}
186 %{__automake}
187 %configure \
188         --enable-shared \
189         --enable-static \
190         --enable-alsa \
191         --enable-audio \
192         --enable-bccmd \
193         --enable-configfiles \
194         --enable-cups \
195         --enable-dfutool \
196         --enable-dund \
197         --enable-gstreamer \
198         --enable-hid2hci \
199         --enable-hidd \
200         --enable-input \
201         --enable-manpages \
202         --enable-netlink \
203         --enable-network \
204         --enable-pand \
205         --enable-pcmcia \
206         --enable-serial \
207         --enable-tools \
208         --enable-usb \
209         --enable-udevrules
210
211 %{__make} \
212         cupsdir=%{cupsdir} \
213         udevdir=%{udevdir}
214
215 %install
216 rm -rf $RPM_BUILD_ROOT
217 install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig}
218
219 %{__make} install \
220         DESTDIR=$RPM_BUILD_ROOT \
221         cupsdir=%{cupsdir} \
222         udevdir=%{udevdir}
223
224 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/bluetooth
225 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/bluetooth
226 install %{SOURCE3} $RPM_BUILD_ROOT/etc/rc.d/init.d/dund
227 install %{SOURCE4} $RPM_BUILD_ROOT/etc/rc.d/init.d/pand
228 install %{SOURCE5} $RPM_BUILD_ROOT/etc/rc.d/init.d/rfcomm
229
230 install audio/*.conf $RPM_BUILD_ROOT%{_sysconfdir}/bluetooth
231 install input/*.conf $RPM_BUILD_ROOT%{_sysconfdir}/bluetooth
232 install network/*.conf $RPM_BUILD_ROOT%{_sysconfdir}/bluetooth
233 install serial/*.conf $RPM_BUILD_ROOT%{_sysconfdir}/bluetooth
234
235 rm -f $RPM_BUILD_ROOT%{_libdir}/alsa-lib/*.{,l}a
236 rm -f $RPM_BUILD_ROOT%{_libdir}/bluetooth/plugins/*.{,l}a
237 rm -f $RPM_BUILD_ROOT%{_libdir}/gstreamer*/libgstbluetooth.{,l}a
238
239 %clean
240 rm -rf $RPM_BUILD_ROOT
241
242 %post
243 /sbin/chkconfig --add bluetooth
244 /sbin/chkconfig --add dund
245 /sbin/chkconfig --add pand
246 /sbin/chkconfig --add rfcomm
247 %service bluetooth restart
248 %service dund restart
249 %service pand restart
250 %service rfcomm restart
251
252 %preun
253 if [ "$1" = "0" ]; then
254         %service bluetooth stop
255         %service dund stop
256         %service pand stop
257         %service rfcomm stop
258         /sbin/chkconfig --del bluetooth
259         /sbin/chkconfig --del dund
260         /sbin/chkconfig --del pand
261         /sbin/chkconfig --del rfcomm
262 fi
263
264 %post   libs -p /sbin/ldconfig
265 %postun libs -p /sbin/ldconfig
266
267 %files
268 %defattr(644,root,root,755)
269 %doc AUTHORS ChangeLog README
270 %attr(755,root,root) %{_bindir}/*
271 %attr(755,root,root) %{_sbindir}/*
272 %dir %{_libdir}/bluetooth
273 %dir %{_libdir}/bluetooth/plugins
274 %attr(755,root,root) %{_libdir}/bluetooth/plugins/*.so
275 %dir %{_sysconfdir}/bluetooth
276 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bluetooth/*.conf
277 %attr(754,root,root) /etc/rc.d/init.d/bluetooth
278 %attr(754,root,root) /etc/rc.d/init.d/dund
279 %attr(754,root,root) /etc/rc.d/init.d/pand
280 %attr(754,root,root) /etc/rc.d/init.d/rfcomm
281 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/bluetooth
282 %config(noreplace) %verify(not md5 mtime size) /etc/dbus-1/system.d/bluetooth.conf
283 %attr(755,root,root) %{udevdir}/bluetooth_serial
284 %config(noreplace) %verify(not md5 mtime size) %{udevdir}/rules.d/97-bluetooth.rules
285 %config(noreplace) %verify(not md5 mtime size) %{udevdir}/rules.d/97-bluetooth-hid2hci.rules
286 %config(noreplace) %verify(not md5 mtime size) %{udevdir}/rules.d/97-bluetooth-serial.rules
287 %{_mandir}/man[18]/*
288
289 %files -n alsa-plugins-bluetooth
290 %defattr(644,root,root,755)
291 %dir %{_sysconfdir}/alsa
292 %{_sysconfdir}/alsa/bluetooth.conf
293 %attr(755,root,root) %{_libdir}/alsa-lib/libasound_module_ctl_bluetooth.so
294 %attr(755,root,root) %{_libdir}/alsa-lib/libasound_module_pcm_bluetooth.so
295
296 %files -n cups-backend-bluetooth
297 %defattr(644,root,root,755)
298 %attr(755,root,root) %{_prefix}/lib/cups/backend/bluetooth
299
300 %files -n gstreamer-bluetooth
301 %defattr(644,root,root,755)
302 %attr(755,root,root) %{_libdir}/gstreamer*/libgstbluetooth.so
303
304 %files libs
305 %defattr(644,root,root,755)
306 %attr(755,root,root) %{_libdir}/libbluetooth.so.*.*.*
307 %attr(755,root,root) %ghost %{_libdir}/libbluetooth.so.[0-9]
308
309 %files libs-devel
310 %defattr(644,root,root,755)
311 %attr(755,root,root) %{_libdir}/libbluetooth.so
312 %{_libdir}/libbluetooth.la
313 %{_includedir}/bluetooth
314 %{_pkgconfigdir}/bluez.pc
315
316 %files libs-static
317 %defattr(644,root,root,755)
318 %{_libdir}/libbluetooth.a
This page took 0.101751 seconds and 4 git commands to generate.