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