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