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