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