]>
Commit | Line | Data |
---|---|---|
1 | # TODO: | |
2 | # - verify/update bluetooth init script | |
3 | # - separate obex? | |
4 | Summary: Bluetooth utilities | |
5 | Summary(pl.UTF-8): Narzędzia Bluetooth | |
6 | Name: bluez | |
7 | Version: 5.13 | |
8 | Release: 1 | |
9 | License: GPL v2+ | |
10 | Group: Applications/System | |
11 | Source0: https://www.kernel.org/pub/linux/bluetooth/%{name}-%{version}.tar.xz | |
12 | # Source0-md5: c68f8cb270110256a684403ee43b5f79 | |
13 | Source1: %{name}.init | |
14 | Source2: %{name}.sysconfig | |
15 | Patch0: %{name}-wacom-mode-2.patch | |
16 | URL: http://www.bluez.org/ | |
17 | BuildRequires: autoconf >= 2.60 | |
18 | BuildRequires: automake | |
19 | BuildRequires: check-devel >= 0.9.6 | |
20 | BuildRequires: dbus-devel >= 1.4 | |
21 | BuildRequires: glib2-devel >= 1:2.28 | |
22 | BuildRequires: libical-devel | |
23 | BuildRequires: libtool | |
24 | BuildRequires: pkgconfig >= 1:0.9.0 | |
25 | BuildRequires: readline-devel | |
26 | BuildRequires: rpmbuild(macros) >= 1.682 | |
27 | BuildRequires: tar >= 1:1.22 | |
28 | BuildRequires: udev-devel >= 1:143 | |
29 | BuildRequires: xz | |
30 | Requires(post,preun,postun): systemd-units >= 38 | |
31 | Requires: %{name}-libs = %{version}-%{release} | |
32 | Requires: dbus-libs >= 1.4 | |
33 | Requires: glib2 >= 1:2.28 | |
34 | Requires: hwdata >= 0.225 | |
35 | Requires: rc-scripts | |
36 | Requires: systemd-units >= 38 | |
37 | Requires: udev >= 1:143 | |
38 | Provides: bluez-hcidump = %{version} | |
39 | Provides: bluez-utils = %{version}-%{release} | |
40 | Provides: obexd = %{version} | |
41 | Provides: dbus(org.openobex.client) | |
42 | Provides: obex-data-server = %{version} | |
43 | # moved somewhere or dropped? | |
44 | #Obsoletes: alsa-plugins-bluetooth | |
45 | Obsoletes: bluez-hcidump | |
46 | Obsoletes: bluez-hciemu | |
47 | Obsoletes: bluez-pan | |
48 | Obsoletes: bluez-sdp | |
49 | Obsoletes: bluez-systemd | |
50 | Obsoletes: bluez-utils | |
51 | Obsoletes: bluez-utils-init | |
52 | Obsoletes: obexd | |
53 | Obsoletes: obex-data-server | |
54 | # moved somewhere or dropped? | |
55 | #Obsoletes: gstreamer-bluetooth < 4.101-3 | |
56 | #Obsoletes: gstreamer0.10-bluetooth < 5 | |
57 | Conflicts: bluez-bluefw | |
58 | ExcludeArch: s390 s390x | |
59 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
60 | ||
61 | # currently lib, not %{_lib} (see cups.spec) | |
62 | %define cupsdir /usr/lib/cups/backend | |
63 | %define udevdir /lib/udev | |
64 | ||
65 | %description | |
66 | Bluetooth utilities: | |
67 | - bluetoothd | |
68 | - hciattach | |
69 | - hciconfig | |
70 | - hcidump | |
71 | - hcitool | |
72 | - l2ping | |
73 | - start scripts (PLD) | |
74 | ||
75 | The BLUETOOTH trademarks are owned by Bluetooth SIG, Inc., U.S.A. | |
76 | ||
77 | %description -l pl.UTF-8 | |
78 | Narzędzia Bluetooth: | |
79 | - bluetoothd | |
80 | - hciattach | |
81 | - hciconfig | |
82 | - hcidump | |
83 | - hcitool | |
84 | - l2ping | |
85 | - skrypty startowe (PLD) | |
86 | ||
87 | Znaki towarowe BLUETOOTH są własnością Bluetooth SIG, Inc. z USA. | |
88 | ||
89 | %package -n cups-backend-bluetooth | |
90 | Summary: Bluetooth backend for CUPS | |
91 | Summary(pl.UTF-8): Backend Bluetooth dla CUPS-a | |
92 | Group: Applications/Printing | |
93 | Requires: bluez-libs >= %{version}-%{release} | |
94 | Requires: cups | |
95 | ||
96 | %description -n cups-backend-bluetooth | |
97 | Bluetooth backend for CUPS. | |
98 | ||
99 | %description -n cups-backend-bluetooth -l pl.UTF-8 | |
100 | Backend Bluetooth dla CUPS-a. | |
101 | ||
102 | %package libs | |
103 | Summary: Bluetooth libraries | |
104 | Summary(pl.UTF-8): Biblioteki Bluetooth | |
105 | Group: Libraries | |
106 | Obsoletes: bluez-sdp | |
107 | ||
108 | %description libs | |
109 | Libraries for use in Bluetooth applications. | |
110 | ||
111 | The BLUETOOTH trademarks are owned by Bluetooth SIG, Inc., U.S.A. | |
112 | ||
113 | %description libs -l pl.UTF-8 | |
114 | Biblioteki do używania w aplikacjach Bluetooth. | |
115 | ||
116 | Znaki towarowe BLUETOOTH są własnością Bluetooth SIG, Inc. z USA. | |
117 | ||
118 | %package libs-devel | |
119 | Summary: Header files for Bluetooth applications | |
120 | Summary(pl.UTF-8): Pliki nagłówkowe dla aplikacji Bluetooth | |
121 | Group: Development/Libraries | |
122 | Requires: %{name}-libs = %{version}-%{release} | |
123 | Obsoletes: bluez-sdp-devel | |
124 | ||
125 | %description libs-devel | |
126 | bluez-libs-devel contains header files for use in Bluetooth | |
127 | applications. | |
128 | ||
129 | %description libs-devel -l pl.UTF-8 | |
130 | Ten pakiet zawiera pliki nagłówkowe do używania w aplikacjach | |
131 | Bluetooth. | |
132 | ||
133 | %package libs-static | |
134 | Summary: Static Bluetooth libraries | |
135 | Summary(pl.UTF-8): Biblioteki statyczne Bluetooth | |
136 | Group: Development/Libraries | |
137 | Requires: %{name}-libs-devel = %{version}-%{release} | |
138 | Obsoletes: bluez-sdp-static | |
139 | ||
140 | %description libs-static | |
141 | bluez-libs-static contains development static libraries for use in | |
142 | Bluetooth applications. | |
143 | ||
144 | %description libs-static -l pl.UTF-8 | |
145 | Ten pakiet zawiera biblioteki statyczne, których można używać do | |
146 | aplikacji Bluetooth. | |
147 | ||
148 | %prep | |
149 | %setup -q | |
150 | %patch0 -p1 | |
151 | ||
152 | %build | |
153 | %{__libtoolize} | |
154 | %{__aclocal} | |
155 | %{__autoconf} | |
156 | %{__autoheader} | |
157 | %{__automake} | |
158 | %configure \ | |
159 | --disable-silent-rules \ | |
160 | --enable-experimental \ | |
161 | --enable-library \ | |
162 | --enable-sixaxis \ | |
163 | --enable-static \ | |
164 | --with-systemdsystemunitdir=%{systemdunitdir} \ | |
165 | --with-systemduserunitdir=%{systemduserunitdir} | |
166 | ||
167 | %{__make} \ | |
168 | cupsdir=%{cupsdir} \ | |
169 | rulesdir=%{udevdir}/rules.d \ | |
170 | udevdir=%{udevdir} | |
171 | ||
172 | %install | |
173 | rm -rf $RPM_BUILD_ROOT | |
174 | install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig} \ | |
175 | $RPM_BUILD_ROOT{%{_libdir}/{bluetooth,obex}/plugins,%{_sysconfdir}/bluetooth} | |
176 | ||
177 | %{__make} install \ | |
178 | DESTDIR=$RPM_BUILD_ROOT \ | |
179 | cupsdir=%{cupsdir} \ | |
180 | rulesdir=%{udevdir}/rules.d \ | |
181 | udevdir=%{udevdir} | |
182 | ||
183 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/bluetooth/plugins/*.{la,a} | |
184 | ||
185 | install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/bluetooth | |
186 | install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/bluetooth | |
187 | ||
188 | install profiles/input/*.conf $RPM_BUILD_ROOT%{_sysconfdir}/bluetooth | |
189 | install profiles/network/*.conf $RPM_BUILD_ROOT%{_sysconfdir}/bluetooth | |
190 | install profiles/proximity/*.conf $RPM_BUILD_ROOT%{_sysconfdir}/bluetooth | |
191 | ||
192 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libbluetooth.la | |
193 | ||
194 | %clean | |
195 | rm -rf $RPM_BUILD_ROOT | |
196 | ||
197 | %post | |
198 | /sbin/chkconfig --add bluetooth | |
199 | %service bluetooth restart | |
200 | %systemd_post bluetooth.service | |
201 | ||
202 | %preun | |
203 | if [ "$1" = "0" ]; then | |
204 | %service bluetooth stop | |
205 | /sbin/chkconfig --del bluetooth | |
206 | fi | |
207 | %systemd_preun bluetooth.service | |
208 | ||
209 | %postun | |
210 | %systemd_reload | |
211 | ||
212 | %triggerpostun -- bluez < 4.98-3 | |
213 | %systemd_trigger bluetooth.service | |
214 | ||
215 | %triggerpostun -- bluez < 5.13-1 | |
216 | %service rfcomm stop | |
217 | /sbin/chkconfig --del rfcomm | |
218 | ||
219 | %post libs -p /sbin/ldconfig | |
220 | %postun libs -p /sbin/ldconfig | |
221 | ||
222 | %files | |
223 | %defattr(644,root,root,755) | |
224 | %doc AUTHORS ChangeLog README | |
225 | %attr(755,root,root) %{_bindir}/bccmd | |
226 | %attr(755,root,root) %{_bindir}/bluetoothctl | |
227 | %attr(755,root,root) %{_bindir}/btmon | |
228 | %attr(755,root,root) %{_bindir}/ciptool | |
229 | %attr(755,root,root) %{_bindir}/hciattach | |
230 | %attr(755,root,root) %{_bindir}/hciconfig | |
231 | %attr(755,root,root) %{_bindir}/hcidump | |
232 | %attr(755,root,root) %{_bindir}/hcitool | |
233 | %attr(755,root,root) %{_bindir}/l2ping | |
234 | %attr(755,root,root) %{_bindir}/l2test | |
235 | %attr(755,root,root) %{_bindir}/rctest | |
236 | %attr(755,root,root) %{_bindir}/rfcomm | |
237 | %attr(755,root,root) %{_bindir}/sdptool | |
238 | %dir %{_libdir}/bluetooth | |
239 | %attr(755,root,root) %{_libdir}/bluetooth/bluetoothd | |
240 | %attr(755,root,root) %{_libdir}/bluetooth/obexd | |
241 | %dir %{_libdir}/bluetooth/plugins | |
242 | %attr(755,root,root) %{_libdir}/bluetooth/plugins/sixaxis.so | |
243 | %dir %{_libdir}/obex/plugins | |
244 | %dir %{_sysconfdir}/bluetooth | |
245 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bluetooth/input.conf | |
246 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bluetooth/network.conf | |
247 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bluetooth/proximity.conf | |
248 | %attr(754,root,root) /etc/rc.d/init.d/bluetooth | |
249 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/bluetooth | |
250 | %config(noreplace) %verify(not md5 mtime size) /etc/dbus-1/system.d/bluetooth.conf | |
251 | %{systemdunitdir}/bluetooth.service | |
252 | %{systemduserunitdir}/obex.service | |
253 | %{_datadir}/dbus-1/services/org.bluez.obex.service | |
254 | %{_datadir}/dbus-1/system-services/org.bluez.service | |
255 | %attr(755,root,root) %{udevdir}/hid2hci | |
256 | %{udevdir}/rules.d/97-hid2hci.rules | |
257 | %{_mandir}/man1/bccmd.1* | |
258 | %{_mandir}/man1/ciptool.1* | |
259 | %{_mandir}/man1/hciattach.1* | |
260 | %{_mandir}/man1/hciconfig.1* | |
261 | %{_mandir}/man1/hcidump.1* | |
262 | %{_mandir}/man1/hcitool.1* | |
263 | %{_mandir}/man1/hid2hci.1* | |
264 | %{_mandir}/man1/l2ping.1* | |
265 | %{_mandir}/man1/rctest.1* | |
266 | %{_mandir}/man1/rfcomm.1* | |
267 | %{_mandir}/man1/sdptool.1* | |
268 | %{_mandir}/man8/bluetoothd.8* | |
269 | ||
270 | %files -n cups-backend-bluetooth | |
271 | %defattr(644,root,root,755) | |
272 | %attr(755,root,root) %{_prefix}/lib/cups/backend/bluetooth | |
273 | ||
274 | %files libs | |
275 | %defattr(644,root,root,755) | |
276 | %attr(755,root,root) %{_libdir}/libbluetooth.so.*.*.* | |
277 | %attr(755,root,root) %ghost %{_libdir}/libbluetooth.so.3 | |
278 | ||
279 | %files libs-devel | |
280 | %defattr(644,root,root,755) | |
281 | %attr(755,root,root) %{_libdir}/libbluetooth.so | |
282 | %{_includedir}/bluetooth | |
283 | %{_pkgconfigdir}/bluez.pc | |
284 | ||
285 | %files libs-static | |
286 | %defattr(644,root,root,755) | |
287 | %{_libdir}/libbluetooth.a |