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