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