]>
Commit | Line | Data |
---|---|---|
886fa953 JB |
1 | # TODO: |
2 | # - verify/update bluetooth init script | |
d358118c | 3 | # - separate obex? |
8e2aef6c AM |
4 | Summary: Bluetooth utilities |
5 | Summary(pl.UTF-8): Narzędzia Bluetooth | |
6 | Name: bluez | |
d358118c | 7 | Version: 5.13 |
03afc6b4 | 8 | Release: 2 |
8e2aef6c AM |
9 | License: GPL v2+ |
10 | Group: Applications/System | |
6feb4e6d | 11 | Source0: https://www.kernel.org/pub/linux/bluetooth/%{name}-%{version}.tar.xz |
d358118c | 12 | # Source0-md5: c68f8cb270110256a684403ee43b5f79 |
8e2aef6c AM |
13 | Source1: %{name}.init |
14 | Source2: %{name}.sysconfig | |
886fa953 | 15 | Patch0: %{name}-wacom-mode-2.patch |
8e2aef6c | 16 | URL: http://www.bluez.org/ |
b0a62422 | 17 | BuildRequires: autoconf >= 2.60 |
8e2aef6c | 18 | BuildRequires: automake |
f288002d | 19 | BuildRequires: check-devel >= 0.9.6 |
0ff69826 JB |
20 | BuildRequires: dbus-devel >= 1.4 |
21 | BuildRequires: glib2-devel >= 1:2.28 | |
886fa953 | 22 | BuildRequires: libical-devel |
8e2aef6c | 23 | BuildRequires: libtool |
8e2aef6c | 24 | BuildRequires: pkgconfig >= 1:0.9.0 |
9980fdad | 25 | BuildRequires: readline-devel |
d358118c | 26 | BuildRequires: rpmbuild(macros) >= 1.682 |
886fa953 JB |
27 | BuildRequires: tar >= 1:1.22 |
28 | BuildRequires: udev-devel >= 1:143 | |
29 | BuildRequires: xz | |
e01e2ec1 | 30 | Requires(post,preun,postun): systemd-units >= 38 |
bfe3d974 | 31 | Requires: %{name}-libs = %{version}-%{release} |
0ff69826 JB |
32 | Requires: dbus-libs >= 1.4 |
33 | Requires: glib2 >= 1:2.28 | |
0416a3b3 | 34 | Requires: hwdata >= 0.225 |
9b3fd779 | 35 | Requires: rc-scripts |
e01e2ec1 | 36 | Requires: systemd-units >= 38 |
886fa953 JB |
37 | Requires: udev >= 1:143 |
38 | Provides: bluez-hcidump = %{version} | |
bfe3d974 | 39 | Provides: bluez-utils = %{version}-%{release} |
886fa953 | 40 | Provides: obexd = %{version} |
c8deab5a JR |
41 | Provides: dbus(org.openobex.client) |
42 | Provides: obex-data-server = %{version} | |
886fa953 JB |
43 | # moved somewhere or dropped? |
44 | #Obsoletes: alsa-plugins-bluetooth | |
45 | Obsoletes: bluez-hcidump | |
8e2aef6c AM |
46 | Obsoletes: bluez-hciemu |
47 | Obsoletes: bluez-pan | |
48 | Obsoletes: bluez-sdp | |
6acdd90b | 49 | Obsoletes: bluez-systemd |
5e8dfcdf | 50 | Obsoletes: bluez-utils |
8e2aef6c | 51 | Obsoletes: bluez-utils-init |
886fa953 | 52 | Obsoletes: obexd |
c8deab5a | 53 | Obsoletes: obex-data-server |
886fa953 JB |
54 | # moved somewhere or dropped? |
55 | #Obsoletes: gstreamer-bluetooth < 4.101-3 | |
56 | #Obsoletes: gstreamer0.10-bluetooth < 5 | |
8e2aef6c AM |
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 | |
d80dfd39 | 63 | %define udevdir /lib/udev |
8e2aef6c AM |
64 | |
65 | %description | |
66 | Bluetooth utilities: | |
d8eef2ef | 67 | - bluetoothd |
8e2aef6c AM |
68 | - hciattach |
69 | - hciconfig | |
886fa953 JB |
70 | - hcidump |
71 | - hcitool | |
8e2aef6c | 72 | - l2ping |
8e2aef6c | 73 | - start scripts (PLD) |
8e2aef6c AM |
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: | |
d8eef2ef | 79 | - bluetoothd |
8e2aef6c AM |
80 | - hciattach |
81 | - hciconfig | |
886fa953 JB |
82 | - hcidump |
83 | - hcitool | |
8e2aef6c | 84 | - l2ping |
8e2aef6c | 85 | - skrypty startowe (PLD) |
8e2aef6c AM |
86 | |
87 | Znaki towarowe BLUETOOTH są własnością Bluetooth SIG, Inc. z USA. | |
88 | ||
8e2aef6c AM |
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 | |
bfe3d974 | 93 | Requires: bluez-libs >= %{version}-%{release} |
8e2aef6c AM |
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 | ||
8e2aef6c AM |
102 | %package libs |
103 | Summary: Bluetooth libraries | |
104 | Summary(pl.UTF-8): Biblioteki Bluetooth | |
ce95dcac | 105 | Group: Libraries |
8e2aef6c AM |
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 | |
bfe3d974 | 122 | Requires: %{name}-libs = %{version}-%{release} |
8e2aef6c AM |
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 | |
bfe3d974 | 137 | Requires: %{name}-libs-devel = %{version}-%{release} |
8e2aef6c AM |
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 \ | |
b0a62422 | 159 | --disable-silent-rules \ |
d358118c | 160 | --enable-experimental \ |
886fa953 | 161 | --enable-library \ |
d358118c JB |
162 | --enable-sixaxis \ |
163 | --enable-static \ | |
164 | --with-systemdsystemunitdir=%{systemdunitdir} \ | |
165 | --with-systemduserunitdir=%{systemduserunitdir} | |
8e2aef6c | 166 | |
284a9eb9 | 167 | %{__make} \ |
8e2aef6c | 168 | cupsdir=%{cupsdir} \ |
2b38a1f3 | 169 | rulesdir=%{udevdir}/rules.d \ |
b0a62422 | 170 | udevdir=%{udevdir} |
8e2aef6c AM |
171 | |
172 | %install | |
173 | rm -rf $RPM_BUILD_ROOT | |
f8fe27de | 174 | install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig} \ |
d358118c | 175 | $RPM_BUILD_ROOT{%{_libdir}/{bluetooth,obex}/plugins,%{_sysconfdir}/bluetooth} |
8e2aef6c AM |
176 | |
177 | %{__make} install \ | |
178 | DESTDIR=$RPM_BUILD_ROOT \ | |
179 | cupsdir=%{cupsdir} \ | |
2b38a1f3 | 180 | rulesdir=%{udevdir}/rules.d \ |
b0a62422 | 181 | udevdir=%{udevdir} |
8e2aef6c | 182 | |
d358118c JB |
183 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/bluetooth/plugins/*.{la,a} |
184 | ||
8e2aef6c AM |
185 | install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/bluetooth |
186 | install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/bluetooth | |
9a71d017 | 187 | |
886fa953 JB |
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 | |
16869a45 | 191 | |
886fa953 | 192 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libbluetooth.la |
8e2aef6c AM |
193 | |
194 | %clean | |
195 | rm -rf $RPM_BUILD_ROOT | |
196 | ||
197 | %post | |
198 | /sbin/chkconfig --add bluetooth | |
199 | %service bluetooth restart | |
bfe3d974 | 200 | %systemd_post bluetooth.service |
8e2aef6c AM |
201 | |
202 | %preun | |
203 | if [ "$1" = "0" ]; then | |
204 | %service bluetooth stop | |
205 | /sbin/chkconfig --del bluetooth | |
206 | fi | |
c7fd41e3 BZ |
207 | %systemd_preun bluetooth.service |
208 | ||
bfe3d974 | 209 | %postun |
ef6d37ba | 210 | %systemd_reload |
c7fd41e3 | 211 | |
bfe3d974 JR |
212 | %triggerpostun -- bluez < 4.98-3 |
213 | %systemd_trigger bluetooth.service | |
214 | ||
d358118c JB |
215 | %triggerpostun -- bluez < 5.13-1 |
216 | %service rfcomm stop | |
217 | /sbin/chkconfig --del rfcomm | |
218 | ||
bfe3d974 JR |
219 | %post libs -p /sbin/ldconfig |
220 | %postun libs -p /sbin/ldconfig | |
221 | ||
8e2aef6c AM |
222 | %files |
223 | %defattr(644,root,root,755) | |
f7f17420 | 224 | %doc AUTHORS ChangeLog README |
886fa953 JB |
225 | %attr(755,root,root) %{_bindir}/bccmd |
226 | %attr(755,root,root) %{_bindir}/bluetoothctl | |
227 | %attr(755,root,root) %{_bindir}/btmon | |
3aca1cde | 228 | %attr(755,root,root) %{_bindir}/ciptool |
886fa953 JB |
229 | %attr(755,root,root) %{_bindir}/hciattach |
230 | %attr(755,root,root) %{_bindir}/hciconfig | |
231 | %attr(755,root,root) %{_bindir}/hcidump | |
3aca1cde | 232 | %attr(755,root,root) %{_bindir}/hcitool |
3aca1cde | 233 | %attr(755,root,root) %{_bindir}/l2ping |
886fa953 JB |
234 | %attr(755,root,root) %{_bindir}/l2test |
235 | %attr(755,root,root) %{_bindir}/rctest | |
3aca1cde JB |
236 | %attr(755,root,root) %{_bindir}/rfcomm |
237 | %attr(755,root,root) %{_bindir}/sdptool | |
8e2aef6c | 238 | %dir %{_libdir}/bluetooth |
886fa953 JB |
239 | %attr(755,root,root) %{_libdir}/bluetooth/bluetoothd |
240 | %attr(755,root,root) %{_libdir}/bluetooth/obexd | |
8e2aef6c | 241 | %dir %{_libdir}/bluetooth/plugins |
d358118c | 242 | %attr(755,root,root) %{_libdir}/bluetooth/plugins/sixaxis.so |
049dc700 | 243 | %dir %{_libdir}/obex |
d358118c | 244 | %dir %{_libdir}/obex/plugins |
8e2aef6c | 245 | %dir %{_sysconfdir}/bluetooth |
886fa953 JB |
246 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bluetooth/input.conf |
247 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bluetooth/network.conf | |
248 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bluetooth/proximity.conf | |
8e2aef6c AM |
249 | %attr(754,root,root) /etc/rc.d/init.d/bluetooth |
250 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/bluetooth | |
251 | %config(noreplace) %verify(not md5 mtime size) /etc/dbus-1/system.d/bluetooth.conf | |
bfe3d974 | 252 | %{systemdunitdir}/bluetooth.service |
d358118c | 253 | %{systemduserunitdir}/obex.service |
886fa953 | 254 | %{_datadir}/dbus-1/services/org.bluez.obex.service |
d358118c | 255 | %{_datadir}/dbus-1/system-services/org.bluez.service |
9b2d7208 | 256 | %attr(755,root,root) %{udevdir}/hid2hci |
886fa953 JB |
257 | %{udevdir}/rules.d/97-hid2hci.rules |
258 | %{_mandir}/man1/bccmd.1* | |
3aca1cde | 259 | %{_mandir}/man1/ciptool.1* |
886fa953 JB |
260 | %{_mandir}/man1/hciattach.1* |
261 | %{_mandir}/man1/hciconfig.1* | |
262 | %{_mandir}/man1/hcidump.1* | |
3aca1cde | 263 | %{_mandir}/man1/hcitool.1* |
886fa953 JB |
264 | %{_mandir}/man1/hid2hci.1* |
265 | %{_mandir}/man1/l2ping.1* | |
266 | %{_mandir}/man1/rctest.1* | |
3aca1cde JB |
267 | %{_mandir}/man1/rfcomm.1* |
268 | %{_mandir}/man1/sdptool.1* | |
3aca1cde | 269 | %{_mandir}/man8/bluetoothd.8* |
8e2aef6c AM |
270 | |
271 | %files -n cups-backend-bluetooth | |
272 | %defattr(644,root,root,755) | |
273 | %attr(755,root,root) %{_prefix}/lib/cups/backend/bluetooth | |
274 | ||
8e2aef6c AM |
275 | %files libs |
276 | %defattr(644,root,root,755) | |
277 | %attr(755,root,root) %{_libdir}/libbluetooth.so.*.*.* | |
3aca1cde | 278 | %attr(755,root,root) %ghost %{_libdir}/libbluetooth.so.3 |
8e2aef6c AM |
279 | |
280 | %files libs-devel | |
281 | %defattr(644,root,root,755) | |
282 | %attr(755,root,root) %{_libdir}/libbluetooth.so | |
8e2aef6c | 283 | %{_includedir}/bluetooth |
8e2aef6c AM |
284 | %{_pkgconfigdir}/bluez.pc |
285 | ||
286 | %files libs-static | |
287 | %defattr(644,root,root,755) | |
288 | %{_libdir}/libbluetooth.a |