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