- updated to 5.43 (contains a fix for a regression in 5.42 that caused connection...
[packages/bluez.git] / bluez.spec
CommitLineData
886fa953
JB
1# TODO:
2# - verify/update bluetooth init script
d358118c 3# - separate obex?
8e2aef6c
AM
4Summary: Bluetooth utilities
5Summary(pl.UTF-8): Narzędzia Bluetooth
6Name: bluez
8aa97653
BS
7Version: 5.43
8Release: 1
8e2aef6c
AM
9License: GPL v2+
10Group: Applications/System
6feb4e6d 11Source0: https://www.kernel.org/pub/linux/bluetooth/%{name}-%{version}.tar.xz
8aa97653 12# Source0-md5: 698def88df96840dfbb0858bb6d73350
8e2aef6c
AM
13Source1: %{name}.init
14Source2: %{name}.sysconfig
8e2aef6c 15URL: http://www.bluez.org/
b0a62422 16BuildRequires: autoconf >= 2.60
8e2aef6c 17BuildRequires: automake
f288002d 18BuildRequires: check-devel >= 0.9.6
a5b81081 19BuildRequires: dbus-devel >= 1.6
0ff69826 20BuildRequires: glib2-devel >= 1:2.28
886fa953 21BuildRequires: libical-devel
8e2aef6c 22BuildRequires: libtool
8e2aef6c 23BuildRequires: pkgconfig >= 1:0.9.0
9980fdad 24BuildRequires: readline-devel
d358118c 25BuildRequires: rpmbuild(macros) >= 1.682
886fa953 26BuildRequires: tar >= 1:1.22
e4a249a5 27BuildRequires: udev-devel >= 1:172
886fa953 28BuildRequires: xz
e01e2ec1 29Requires(post,preun,postun): systemd-units >= 38
bfe3d974 30Requires: %{name}-libs = %{version}-%{release}
a5b81081 31Requires: dbus-libs >= 1.6
0ff69826 32Requires: glib2 >= 1:2.28
0416a3b3 33Requires: hwdata >= 0.225
9b3fd779 34Requires: rc-scripts
e01e2ec1 35Requires: systemd-units >= 38
e4a249a5 36Requires: udev >= 1:172
886fa953 37Provides: bluez-hcidump = %{version}
bfe3d974 38Provides: bluez-utils = %{version}-%{release}
886fa953 39Provides: obexd = %{version}
c8deab5a
JR
40Provides: dbus(org.openobex.client)
41Provides: obex-data-server = %{version}
886fa953
JB
42# moved somewhere or dropped?
43#Obsoletes: alsa-plugins-bluetooth
44Obsoletes: bluez-hcidump
8e2aef6c
AM
45Obsoletes: bluez-hciemu
46Obsoletes: bluez-pan
47Obsoletes: bluez-sdp
6acdd90b 48Obsoletes: bluez-systemd
5e8dfcdf 49Obsoletes: bluez-utils
8e2aef6c 50Obsoletes: bluez-utils-init
886fa953 51Obsoletes: obexd
c8deab5a 52Obsoletes: 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
56Conflicts: bluez-bluefw
57ExcludeArch: s390 s390x
58BuildRoot: %{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
65Bluetooth 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
74The BLUETOOTH trademarks are owned by Bluetooth SIG, Inc., U.S.A.
75
76%description -l pl.UTF-8
77Narzę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
86Znaki towarowe BLUETOOTH są własnością Bluetooth SIG, Inc. z USA.
87
8e2aef6c
AM
88%package -n cups-backend-bluetooth
89Summary: Bluetooth backend for CUPS
90Summary(pl.UTF-8): Backend Bluetooth dla CUPS-a
91Group: Applications/Printing
bfe3d974 92Requires: bluez-libs >= %{version}-%{release}
8e2aef6c
AM
93Requires: cups
94
95%description -n cups-backend-bluetooth
96Bluetooth backend for CUPS.
97
98%description -n cups-backend-bluetooth -l pl.UTF-8
99Backend Bluetooth dla CUPS-a.
100
8e2aef6c
AM
101%package libs
102Summary: Bluetooth libraries
103Summary(pl.UTF-8): Biblioteki Bluetooth
ce95dcac 104Group: Libraries
8e2aef6c
AM
105Obsoletes: bluez-sdp
106
107%description libs
108Libraries for use in Bluetooth applications.
109
110The BLUETOOTH trademarks are owned by Bluetooth SIG, Inc., U.S.A.
111
112%description libs -l pl.UTF-8
113Biblioteki do używania w aplikacjach Bluetooth.
114
115Znaki towarowe BLUETOOTH są własnością Bluetooth SIG, Inc. z USA.
116
117%package libs-devel
118Summary: Header files for Bluetooth applications
119Summary(pl.UTF-8): Pliki nagłówkowe dla aplikacji Bluetooth
120Group: Development/Libraries
bfe3d974 121Requires: %{name}-libs = %{version}-%{release}
8e2aef6c
AM
122Obsoletes: bluez-sdp-devel
123
124%description libs-devel
125bluez-libs-devel contains header files for use in Bluetooth
126applications.
127
128%description libs-devel -l pl.UTF-8
129Ten pakiet zawiera pliki nagłówkowe do używania w aplikacjach
130Bluetooth.
131
132%package libs-static
133Summary: Static Bluetooth libraries
134Summary(pl.UTF-8): Biblioteki statyczne Bluetooth
135Group: Development/Libraries
bfe3d974 136Requires: %{name}-libs-devel = %{version}-%{release}
8e2aef6c
AM
137Obsoletes: bluez-sdp-static
138
139%description libs-static
140bluez-libs-static contains development static libraries for use in
141Bluetooth applications.
142
143%description libs-static -l pl.UTF-8
144Ten pakiet zawiera biblioteki statyczne, których można używać do
145aplikacji 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
171rm -rf $RPM_BUILD_ROOT
f8fe27de 172install -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
183install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/bluetooth
184install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/bluetooth
9a71d017 185
886fa953
JB
186install profiles/input/*.conf $RPM_BUILD_ROOT%{_sysconfdir}/bluetooth
187install profiles/network/*.conf $RPM_BUILD_ROOT%{_sysconfdir}/bluetooth
188install profiles/proximity/*.conf $RPM_BUILD_ROOT%{_sysconfdir}/bluetooth
16869a45 189
886fa953 190%{__rm} $RPM_BUILD_ROOT%{_libdir}/libbluetooth.la
8e2aef6c
AM
191
192%clean
193rm -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
201if [ "$1" = "0" ]; then
202 %service bluetooth stop
203 /sbin/chkconfig --del bluetooth
204fi
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 225%attr(755,root,root) %{_bindir}/bluetoothctl
a9cb60b8 226%attr(755,root,root) %{_bindir}/btattach
886fa953 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
05f769ed 233%attr(755,root,root) %{_bindir}/hex2hcd
3aca1cde 234%attr(755,root,root) %{_bindir}/l2ping
886fa953 235%attr(755,root,root) %{_bindir}/l2test
e4a249a5 236%attr(755,root,root) %{_bindir}/mpris-proxy
886fa953 237%attr(755,root,root) %{_bindir}/rctest
3aca1cde
JB
238%attr(755,root,root) %{_bindir}/rfcomm
239%attr(755,root,root) %{_bindir}/sdptool
8e2aef6c 240%dir %{_libdir}/bluetooth
886fa953
JB
241%attr(755,root,root) %{_libdir}/bluetooth/bluetoothd
242%attr(755,root,root) %{_libdir}/bluetooth/obexd
8e2aef6c 243%dir %{_libdir}/bluetooth/plugins
d358118c 244%attr(755,root,root) %{_libdir}/bluetooth/plugins/sixaxis.so
049dc700 245%dir %{_libdir}/obex
d358118c 246%dir %{_libdir}/obex/plugins
8e2aef6c 247%dir %{_sysconfdir}/bluetooth
886fa953
JB
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
8e2aef6c
AM
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
bfe3d974 254%{systemdunitdir}/bluetooth.service
d358118c 255%{systemduserunitdir}/obex.service
886fa953 256%{_datadir}/dbus-1/services/org.bluez.obex.service
d358118c 257%{_datadir}/dbus-1/system-services/org.bluez.service
9b2d7208 258%attr(755,root,root) %{udevdir}/hid2hci
886fa953
JB
259%{udevdir}/rules.d/97-hid2hci.rules
260%{_mandir}/man1/bccmd.1*
a9cb60b8 261%{_mandir}/man1/btattach.1*
3aca1cde 262%{_mandir}/man1/ciptool.1*
886fa953
JB
263%{_mandir}/man1/hciattach.1*
264%{_mandir}/man1/hciconfig.1*
265%{_mandir}/man1/hcidump.1*
3aca1cde 266%{_mandir}/man1/hcitool.1*
886fa953
JB
267%{_mandir}/man1/hid2hci.1*
268%{_mandir}/man1/l2ping.1*
269%{_mandir}/man1/rctest.1*
3aca1cde
JB
270%{_mandir}/man1/rfcomm.1*
271%{_mandir}/man1/sdptool.1*
3aca1cde 272%{_mandir}/man8/bluetoothd.8*
8e2aef6c
AM
273
274%files -n cups-backend-bluetooth
275%defattr(644,root,root,755)
276%attr(755,root,root) %{_prefix}/lib/cups/backend/bluetooth
277
8e2aef6c
AM
278%files libs
279%defattr(644,root,root,755)
280%attr(755,root,root) %{_libdir}/libbluetooth.so.*.*.*
3aca1cde 281%attr(755,root,root) %ghost %{_libdir}/libbluetooth.so.3
8e2aef6c
AM
282
283%files libs-devel
284%defattr(644,root,root,755)
285%attr(755,root,root) %{_libdir}/libbluetooth.so
8e2aef6c 286%{_includedir}/bluetooth
8e2aef6c
AM
287%{_pkgconfigdir}/bluez.pc
288
289%files libs-static
290%defattr(644,root,root,755)
291%{_libdir}/libbluetooth.a
This page took 0.954491 seconds and 4 git commands to generate.