- updated to 5.42
[packages/bluez.git] / bluez.spec
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.42
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:  cc8c53133d5be0d6c126e00cf2529028
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:172
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:172
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}/btattach
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}/hex2hcd
234 %attr(755,root,root) %{_bindir}/l2ping
235 %attr(755,root,root) %{_bindir}/l2test
236 %attr(755,root,root) %{_bindir}/mpris-proxy
237 %attr(755,root,root) %{_bindir}/rctest
238 %attr(755,root,root) %{_bindir}/rfcomm
239 %attr(755,root,root) %{_bindir}/sdptool
240 %dir %{_libdir}/bluetooth
241 %attr(755,root,root) %{_libdir}/bluetooth/bluetoothd
242 %attr(755,root,root) %{_libdir}/bluetooth/obexd
243 %dir %{_libdir}/bluetooth/plugins
244 %attr(755,root,root) %{_libdir}/bluetooth/plugins/sixaxis.so
245 %dir %{_libdir}/obex
246 %dir %{_libdir}/obex/plugins
247 %dir %{_sysconfdir}/bluetooth
248 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bluetooth/input.conf
249 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bluetooth/network.conf
250 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bluetooth/proximity.conf
251 %attr(754,root,root) /etc/rc.d/init.d/bluetooth
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
254 %{systemdunitdir}/bluetooth.service
255 %{systemduserunitdir}/obex.service
256 %{_datadir}/dbus-1/services/org.bluez.obex.service
257 %{_datadir}/dbus-1/system-services/org.bluez.service
258 %attr(755,root,root) %{udevdir}/hid2hci
259 %{udevdir}/rules.d/97-hid2hci.rules
260 %{_mandir}/man1/bccmd.1*
261 %{_mandir}/man1/btattach.1*
262 %{_mandir}/man1/ciptool.1*
263 %{_mandir}/man1/hciattach.1*
264 %{_mandir}/man1/hciconfig.1*
265 %{_mandir}/man1/hcidump.1*
266 %{_mandir}/man1/hcitool.1*
267 %{_mandir}/man1/hid2hci.1*
268 %{_mandir}/man1/l2ping.1*
269 %{_mandir}/man1/rctest.1*
270 %{_mandir}/man1/rfcomm.1*
271 %{_mandir}/man1/sdptool.1*
272 %{_mandir}/man8/bluetoothd.8*
273
274 %files -n cups-backend-bluetooth
275 %defattr(644,root,root,755)
276 %attr(755,root,root) %{_prefix}/lib/cups/backend/bluetooth
277
278 %files libs
279 %defattr(644,root,root,755)
280 %attr(755,root,root) %{_libdir}/libbluetooth.so.*.*.*
281 %attr(755,root,root) %ghost %{_libdir}/libbluetooth.so.3
282
283 %files libs-devel
284 %defattr(644,root,root,755)
285 %attr(755,root,root) %{_libdir}/libbluetooth.so
286 %{_includedir}/bluetooth
287 %{_pkgconfigdir}/bluez.pc
288
289 %files libs-static
290 %defattr(644,root,root,755)
291 %{_libdir}/libbluetooth.a
This page took 0.068524 seconds and 3 git commands to generate.