]> git.pld-linux.org Git - packages/bluez.git/blob - bluez.spec
- updated to 5.8
[packages/bluez.git] / bluez.spec
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
5 Summary:        Bluetooth utilities
6 Summary(pl.UTF-8):      Narzędzia Bluetooth
7 Name:           bluez
8 Version:        5.8
9 Release:        1
10 License:        GPL v2+
11 Group:          Applications/System
12 #Source0Download: http://www.bluez.org/download.html
13 Source0:        https://www.kernel.org/pub/linux/bluetooth/%{name}-%{version}.tar.xz
14 # Source0-md5:  e0d8a362c714bd48d9bd9393f009201c
15 Source1:        %{name}.init
16 Source2:        %{name}.sysconfig
17 # FIXME: rfcomm.conf no longer supported
18 Source5:        rfcomm.init
19 Patch0:         %{name}-wacom-mode-2.patch
20 URL:            http://www.bluez.org/
21 BuildRequires:  autoconf >= 2.60
22 BuildRequires:  automake
23 BuildRequires:  check-devel >= 0.9.6
24 BuildRequires:  dbus-devel >= 1.4
25 BuildRequires:  glib2-devel >= 1:2.28
26 BuildRequires:  libical-devel
27 BuildRequires:  libtool
28 BuildRequires:  libusb-compat-devel >= 0.1
29 BuildRequires:  pkgconfig >= 1:0.9.0
30 BuildRequires:  readline-devel
31 BuildRequires:  rpmbuild(macros) >= 1.626
32 BuildRequires:  systemd-units >= 38
33 BuildRequires:  tar >= 1:1.22
34 BuildRequires:  udev-devel >= 1:143
35 BuildRequires:  xz
36 Requires(post,preun,postun):    systemd-units >= 38
37 Requires:       %{name}-libs = %{version}-%{release}
38 Requires:       dbus-libs >= 1.4
39 Requires:       glib2 >= 1:2.28
40 Requires:       hwdata >= 0.225
41 Requires:       rc-scripts
42 Requires:       systemd-units >= 38
43 Requires:       udev >= 1:143
44 Provides:       bluez-hcidump = %{version}
45 Provides:       bluez-utils = %{version}-%{release}
46 Provides:       obexd = %{version}
47 Provides:       dbus(org.openobex.client)
48 Provides:       obex-data-server = %{version}
49 # moved somewhere or dropped?
50 #Obsoletes:     alsa-plugins-bluetooth
51 Obsoletes:      bluez-hcidump
52 Obsoletes:      bluez-hciemu
53 Obsoletes:      bluez-pan
54 Obsoletes:      bluez-sdp
55 Obsoletes:      bluez-systemd
56 Obsoletes:      bluez-utils
57 Obsoletes:      bluez-utils-init
58 Obsoletes:      obexd
59 Obsoletes:      obex-data-server
60 # moved somewhere or dropped?
61 #Obsoletes:     gstreamer-bluetooth < 4.101-3
62 #Obsoletes:     gstreamer0.10-bluetooth < 5
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
69 %define         udevdir         /lib/udev
70
71 %description
72 Bluetooth utilities:
73  - bluetoothd
74  - hciattach
75  - hciconfig
76  - hcidump
77  - hcitool
78  - l2ping
79  - start scripts (PLD)
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:
85  - bluetoothd
86  - hciattach
87  - hciconfig
88  - hcidump
89  - hcitool
90  - l2ping
91  - skrypty startowe (PLD)
92
93 Znaki towarowe BLUETOOTH są własnością Bluetooth SIG, Inc. z USA.
94
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
99 Requires:       bluez-libs >= %{version}-%{release}
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
108 %package libs
109 Summary:        Bluetooth libraries
110 Summary(pl.UTF-8):      Biblioteki Bluetooth
111 Group:          Libraries
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
128 Requires:       %{name}-libs = %{version}-%{release}
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
143 Requires:       %{name}-libs-devel = %{version}-%{release}
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 \
165         --disable-silent-rules \
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 \
171
172 %{__make} \
173         cupsdir=%{cupsdir} \
174         rulesdir=%{udevdir}/rules.d \
175         udevdir=%{udevdir}
176
177 %install
178 rm -rf $RPM_BUILD_ROOT
179 install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig} \
180         $RPM_BUILD_ROOT{%{_libdir}/bluetooth/plugins,%{_sysconfdir}/bluetooth}
181
182 %{__make} install \
183         DESTDIR=$RPM_BUILD_ROOT \
184         cupsdir=%{cupsdir} \
185         rulesdir=%{udevdir}/rules.d \
186         udevdir=%{udevdir}
187
188 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/bluetooth
189 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/bluetooth
190 install %{SOURCE5} $RPM_BUILD_ROOT/etc/rc.d/init.d/rfcomm
191
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
195
196 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libbluetooth.la
197
198 %clean
199 rm -rf $RPM_BUILD_ROOT
200
201 %post
202 /sbin/chkconfig --add bluetooth
203 /sbin/chkconfig --add rfcomm
204 %service bluetooth restart
205 %service rfcomm restart
206 %systemd_post bluetooth.service
207
208 %preun
209 if [ "$1" = "0" ]; then
210         %service bluetooth stop
211         %service rfcomm stop
212         /sbin/chkconfig --del bluetooth
213         /sbin/chkconfig --del rfcomm
214 fi
215 %systemd_preun bluetooth.service
216
217 %postun
218 %systemd_reload
219
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
226 %files
227 %defattr(644,root,root,755)
228 %doc AUTHORS ChangeLog README
229 %attr(755,root,root) %{_bindir}/bccmd
230 %attr(755,root,root) %{_bindir}/bluetoothctl
231 %attr(755,root,root) %{_bindir}/btmon
232 %attr(755,root,root) %{_bindir}/ciptool
233 %attr(755,root,root) %{_bindir}/hciattach
234 %attr(755,root,root) %{_bindir}/hciconfig
235 %attr(755,root,root) %{_bindir}/hcidump
236 %attr(755,root,root) %{_bindir}/hcitool
237 %attr(755,root,root) %{_bindir}/l2ping
238 %attr(755,root,root) %{_bindir}/l2test
239 %attr(755,root,root) %{_bindir}/rctest
240 %attr(755,root,root) %{_bindir}/rfcomm
241 %attr(755,root,root) %{_bindir}/sdptool
242 %dir %{_libdir}/bluetooth
243 %attr(755,root,root) %{_libdir}/bluetooth/bluetoothd
244 %attr(755,root,root) %{_libdir}/bluetooth/obexd
245 %dir %{_libdir}/bluetooth/plugins
246 %dir %{_sysconfdir}/bluetooth
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
250 %attr(754,root,root) /etc/rc.d/init.d/bluetooth
251 %attr(754,root,root) /etc/rc.d/init.d/rfcomm
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 %{_prefix}/lib/systemd/user/obex.service
256 %{_datadir}/dbus-1/system-services/org.bluez.service
257 %{_datadir}/dbus-1/services/org.bluez.obex.service
258 %attr(755,root,root) %{udevdir}/hid2hci
259 %{udevdir}/rules.d/97-hid2hci.rules
260 %{_mandir}/man1/bccmd.1*
261 %{_mandir}/man1/ciptool.1*
262 %{_mandir}/man1/hciattach.1*
263 %{_mandir}/man1/hciconfig.1*
264 %{_mandir}/man1/hcidump.1*
265 %{_mandir}/man1/hcitool.1*
266 %{_mandir}/man1/hid2hci.1*
267 %{_mandir}/man1/l2ping.1*
268 %{_mandir}/man1/rctest.1*
269 %{_mandir}/man1/rfcomm.1*
270 %{_mandir}/man1/sdptool.1*
271 %{_mandir}/man8/bluetoothd.8*
272
273 %files -n cups-backend-bluetooth
274 %defattr(644,root,root,755)
275 %attr(755,root,root) %{_prefix}/lib/cups/backend/bluetooth
276
277 %files libs
278 %defattr(644,root,root,755)
279 %attr(755,root,root) %{_libdir}/libbluetooth.so.*.*.*
280 %attr(755,root,root) %ghost %{_libdir}/libbluetooth.so.3
281
282 %files libs-devel
283 %defattr(644,root,root,755)
284 %attr(755,root,root) %{_libdir}/libbluetooth.so
285 %{_includedir}/bluetooth
286 %{_pkgconfigdir}/bluez.pc
287
288 %files libs-static
289 %defattr(644,root,root,755)
290 %{_libdir}/libbluetooth.a
This page took 0.1073 seconds and 4 git commands to generate.