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