- updated to 5.50
[packages/bluez.git] / bluez.spec
CommitLineData
886fa953
JB
1# TODO:
2# - verify/update bluetooth init script
d358118c 3# - separate obex?
b7b1b136
JB
4#
5# Conditional build:
6%bcond_without deprecated # deprecated tools (ciptool,hciattach,hciconfig,hcidump,hcitool,rfcomm,sdptool)
7#
8e2aef6c
AM
8Summary: Bluetooth utilities
9Summary(pl.UTF-8): Narzędzia Bluetooth
10Name: bluez
2686afe6 11Version: 5.50
2bd54339 12Release: 1
8e2aef6c
AM
13License: GPL v2+
14Group: Applications/System
6feb4e6d 15Source0: https://www.kernel.org/pub/linux/bluetooth/%{name}-%{version}.tar.xz
2686afe6 16# Source0-md5: 8e35c67c81a55d3ad4c9f22280dae178
8e2aef6c
AM
17Source1: %{name}.init
18Source2: %{name}.sysconfig
8e2aef6c 19URL: http://www.bluez.org/
b7b1b136 20BuildRequires: alsa-lib-devel >= 1.0
b0a62422 21BuildRequires: autoconf >= 2.60
8e2aef6c 22BuildRequires: automake
f288002d 23BuildRequires: check-devel >= 0.9.6
a5b81081 24BuildRequires: dbus-devel >= 1.6
2686afe6 25BuildRequires: ell-devel >= 0.3
0ff69826 26BuildRequires: glib2-devel >= 1:2.28
2686afe6 27BuildRequires: json-c-devel
886fa953 28BuildRequires: libical-devel
8e2aef6c 29BuildRequires: libtool
8e2aef6c 30BuildRequires: pkgconfig >= 1:0.9.0
9980fdad 31BuildRequires: readline-devel
d358118c 32BuildRequires: rpmbuild(macros) >= 1.682
886fa953 33BuildRequires: tar >= 1:1.22
e4a249a5 34BuildRequires: udev-devel >= 1:172
886fa953 35BuildRequires: xz
e01e2ec1 36Requires(post,preun,postun): systemd-units >= 38
bfe3d974 37Requires: %{name}-libs = %{version}-%{release}
a5b81081 38Requires: dbus-libs >= 1.6
0ff69826 39Requires: glib2 >= 1:2.28
0416a3b3 40Requires: hwdata >= 0.225
9b3fd779 41Requires: rc-scripts
e01e2ec1 42Requires: systemd-units >= 38
e4a249a5 43Requires: udev >= 1:172
886fa953 44Provides: bluez-hcidump = %{version}
bfe3d974 45Provides: bluez-utils = %{version}-%{release}
886fa953 46Provides: obexd = %{version}
c8deab5a
JR
47Provides: dbus(org.openobex.client)
48Provides: obex-data-server = %{version}
886fa953
JB
49# moved somewhere or dropped?
50#Obsoletes: alsa-plugins-bluetooth
51Obsoletes: bluez-hcidump
8e2aef6c
AM
52Obsoletes: bluez-hciemu
53Obsoletes: bluez-pan
54Obsoletes: bluez-sdp
6acdd90b 55Obsoletes: bluez-systemd
5e8dfcdf 56Obsoletes: bluez-utils
8e2aef6c 57Obsoletes: bluez-utils-init
886fa953 58Obsoletes: obexd
c8deab5a 59Obsoletes: 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
63Conflicts: bluez-bluefw
64ExcludeArch: s390 s390x
65BuildRoot: %{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
72Bluetooth 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
81The BLUETOOTH trademarks are owned by Bluetooth SIG, Inc., U.S.A.
82
83%description -l pl.UTF-8
84Narzę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
93Znaki towarowe BLUETOOTH są własnością Bluetooth SIG, Inc. z USA.
94
8e2aef6c
AM
95%package -n cups-backend-bluetooth
96Summary: Bluetooth backend for CUPS
97Summary(pl.UTF-8): Backend Bluetooth dla CUPS-a
98Group: Applications/Printing
bfe3d974 99Requires: bluez-libs >= %{version}-%{release}
8e2aef6c
AM
100Requires: cups
101
102%description -n cups-backend-bluetooth
103Bluetooth backend for CUPS.
104
105%description -n cups-backend-bluetooth -l pl.UTF-8
106Backend Bluetooth dla CUPS-a.
107
8e2aef6c
AM
108%package libs
109Summary: Bluetooth libraries
110Summary(pl.UTF-8): Biblioteki Bluetooth
ce95dcac 111Group: Libraries
8e2aef6c
AM
112Obsoletes: bluez-sdp
113
114%description libs
115Libraries for use in Bluetooth applications.
116
117The BLUETOOTH trademarks are owned by Bluetooth SIG, Inc., U.S.A.
118
119%description libs -l pl.UTF-8
120Biblioteki do używania w aplikacjach Bluetooth.
121
122Znaki towarowe BLUETOOTH są własnością Bluetooth SIG, Inc. z USA.
123
124%package libs-devel
125Summary: Header files for Bluetooth applications
126Summary(pl.UTF-8): Pliki nagłówkowe dla aplikacji Bluetooth
127Group: Development/Libraries
bfe3d974 128Requires: %{name}-libs = %{version}-%{release}
8e2aef6c
AM
129Obsoletes: bluez-sdp-devel
130
131%description libs-devel
132bluez-libs-devel contains header files for use in Bluetooth
133applications.
134
135%description libs-devel -l pl.UTF-8
136Ten pakiet zawiera pliki nagłówkowe do używania w aplikacjach
137Bluetooth.
138
139%package libs-static
140Summary: Static Bluetooth libraries
141Summary(pl.UTF-8): Biblioteki statyczne Bluetooth
142Group: Development/Libraries
bfe3d974 143Requires: %{name}-libs-devel = %{version}-%{release}
8e2aef6c
AM
144Obsoletes: bluez-sdp-static
145
146%description libs-static
147bluez-libs-static contains development static libraries for use in
148Bluetooth applications.
149
150%description libs-static -l pl.UTF-8
151Ten pakiet zawiera biblioteki statyczne, których można używać do
152aplikacji Bluetooth.
153
154%prep
155%setup -q
8e2aef6c
AM
156
157%build
158%{__libtoolize}
159%{__aclocal}
160%{__autoconf}
161%{__autoheader}
162%{__automake}
163%configure \
b0a62422 164 --disable-silent-rules \
b7b1b136 165 %{?with_deprecated:--enable-deprecated} \
2686afe6 166 --enable-btpclient \
d358118c 167 --enable-experimental \
b7b1b136 168 --enable-health \
886fa953 169 --enable-library \
2686afe6 170 --enable-mesh \
b7b1b136
JB
171 --enable-midi \
172 --enable-nfc \
173 --enable-sap \
d358118c
JB
174 --enable-sixaxis \
175 --enable-static \
176 --with-systemdsystemunitdir=%{systemdunitdir} \
177 --with-systemduserunitdir=%{systemduserunitdir}
8e2aef6c 178
284a9eb9 179%{__make} \
8e2aef6c 180 cupsdir=%{cupsdir} \
2b38a1f3 181 rulesdir=%{udevdir}/rules.d \
b0a62422 182 udevdir=%{udevdir}
8e2aef6c
AM
183
184%install
185rm -rf $RPM_BUILD_ROOT
f8fe27de 186install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig} \
d358118c 187 $RPM_BUILD_ROOT{%{_libdir}/{bluetooth,obex}/plugins,%{_sysconfdir}/bluetooth}
8e2aef6c
AM
188
189%{__make} install \
190 DESTDIR=$RPM_BUILD_ROOT \
191 cupsdir=%{cupsdir} \
2b38a1f3 192 rulesdir=%{udevdir}/rules.d \
b0a62422 193 udevdir=%{udevdir}
8e2aef6c 194
d358118c
JB
195%{__rm} $RPM_BUILD_ROOT%{_libdir}/bluetooth/plugins/*.{la,a}
196
8e2aef6c
AM
197install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/bluetooth
198install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/bluetooth
9a71d017 199
886fa953
JB
200install profiles/input/*.conf $RPM_BUILD_ROOT%{_sysconfdir}/bluetooth
201install profiles/network/*.conf $RPM_BUILD_ROOT%{_sysconfdir}/bluetooth
16869a45 202
886fa953 203%{__rm} $RPM_BUILD_ROOT%{_libdir}/libbluetooth.la
8e2aef6c
AM
204
205%clean
206rm -rf $RPM_BUILD_ROOT
207
208%post
209/sbin/chkconfig --add bluetooth
210%service bluetooth restart
bfe3d974 211%systemd_post bluetooth.service
8e2aef6c
AM
212
213%preun
214if [ "$1" = "0" ]; then
215 %service bluetooth stop
216 /sbin/chkconfig --del bluetooth
217fi
c7fd41e3
BZ
218%systemd_preun bluetooth.service
219
bfe3d974 220%postun
ef6d37ba 221%systemd_reload
c7fd41e3 222
bfe3d974
JR
223%triggerpostun -- bluez < 4.98-3
224%systemd_trigger bluetooth.service
225
d358118c
JB
226%triggerpostun -- bluez < 5.13-1
227%service rfcomm stop
228/sbin/chkconfig --del rfcomm
229
bfe3d974
JR
230%post libs -p /sbin/ldconfig
231%postun libs -p /sbin/ldconfig
232
8e2aef6c
AM
233%files
234%defattr(644,root,root,755)
f7f17420 235%doc AUTHORS ChangeLog README
886fa953 236%attr(755,root,root) %{_bindir}/bccmd
a5b81081 237%attr(755,root,root) %{_bindir}/bluemoon
886fa953 238%attr(755,root,root) %{_bindir}/bluetoothctl
a9cb60b8 239%attr(755,root,root) %{_bindir}/btattach
886fa953 240%attr(755,root,root) %{_bindir}/btmon
05f769ed 241%attr(755,root,root) %{_bindir}/hex2hcd
3aca1cde 242%attr(755,root,root) %{_bindir}/l2ping
886fa953 243%attr(755,root,root) %{_bindir}/l2test
2686afe6 244%attr(755,root,root) %{_bindir}/meshctl
e4a249a5 245%attr(755,root,root) %{_bindir}/mpris-proxy
886fa953 246%attr(755,root,root) %{_bindir}/rctest
b7b1b136
JB
247%if %{with deprecated}
248%attr(755,root,root) %{_bindir}/ciptool
249%attr(755,root,root) %{_bindir}/hciattach
250%attr(755,root,root) %{_bindir}/hciconfig
251%attr(755,root,root) %{_bindir}/hcidump
252%attr(755,root,root) %{_bindir}/hcitool
3aca1cde
JB
253%attr(755,root,root) %{_bindir}/rfcomm
254%attr(755,root,root) %{_bindir}/sdptool
b7b1b136 255%endif
2686afe6 256%if "%{_libexecdir}" != "%{_libdir}"
749521e9 257%dir %{_libexecdir}/bluetooth
2686afe6 258%endif
749521e9
JR
259%attr(755,root,root) %{_libexecdir}/bluetooth/bluetoothd
260%attr(755,root,root) %{_libexecdir}/bluetooth/obexd
8e2aef6c
AM
261%dir %{_libdir}/bluetooth
262%dir %{_libdir}/bluetooth/plugins
d358118c 263%attr(755,root,root) %{_libdir}/bluetooth/plugins/sixaxis.so
049dc700 264%dir %{_libdir}/obex
d358118c 265%dir %{_libdir}/obex/plugins
8e2aef6c 266%dir %{_sysconfdir}/bluetooth
886fa953
JB
267%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bluetooth/input.conf
268%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bluetooth/network.conf
8e2aef6c
AM
269%attr(754,root,root) /etc/rc.d/init.d/bluetooth
270%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/bluetooth
271%config(noreplace) %verify(not md5 mtime size) /etc/dbus-1/system.d/bluetooth.conf
bfe3d974 272%{systemdunitdir}/bluetooth.service
d358118c 273%{systemduserunitdir}/obex.service
886fa953 274%{_datadir}/dbus-1/services/org.bluez.obex.service
d358118c 275%{_datadir}/dbus-1/system-services/org.bluez.service
9b2d7208 276%attr(755,root,root) %{udevdir}/hid2hci
886fa953
JB
277%{udevdir}/rules.d/97-hid2hci.rules
278%{_mandir}/man1/bccmd.1*
a9cb60b8 279%{_mandir}/man1/btattach.1*
b7b1b136
JB
280%{_mandir}/man1/hid2hci.1*
281%{_mandir}/man1/l2ping.1*
282%{_mandir}/man1/rctest.1*
283%if %{with deprecated}
3aca1cde 284%{_mandir}/man1/ciptool.1*
886fa953
JB
285%{_mandir}/man1/hciattach.1*
286%{_mandir}/man1/hciconfig.1*
287%{_mandir}/man1/hcidump.1*
3aca1cde 288%{_mandir}/man1/hcitool.1*
3aca1cde
JB
289%{_mandir}/man1/rfcomm.1*
290%{_mandir}/man1/sdptool.1*
b7b1b136 291%endif
3aca1cde 292%{_mandir}/man8/bluetoothd.8*
8e2aef6c
AM
293
294%files -n cups-backend-bluetooth
295%defattr(644,root,root,755)
296%attr(755,root,root) %{_prefix}/lib/cups/backend/bluetooth
297
8e2aef6c
AM
298%files libs
299%defattr(644,root,root,755)
300%attr(755,root,root) %{_libdir}/libbluetooth.so.*.*.*
3aca1cde 301%attr(755,root,root) %ghost %{_libdir}/libbluetooth.so.3
8e2aef6c
AM
302
303%files libs-devel
304%defattr(644,root,root,755)
305%attr(755,root,root) %{_libdir}/libbluetooth.so
8e2aef6c 306%{_includedir}/bluetooth
8e2aef6c
AM
307%{_pkgconfigdir}/bluez.pc
308
309%files libs-static
310%defattr(644,root,root,755)
311%{_libdir}/libbluetooth.a
This page took 0.529063 seconds and 4 git commands to generate.