]> git.pld-linux.org Git - packages/bluez.git/blame - bluez.spec
- added bluez-audio_socket.patch (After updating to 4.97 it might happen,
[packages/bluez.git] / bluez.spec
CommitLineData
8e2aef6c
AM
1Summary: Bluetooth utilities
2Summary(pl.UTF-8): Narzędzia Bluetooth
3Name: bluez
f288002d 4Version: 4.99
f5d97921 5Release: 2
8e2aef6c
AM
6License: GPL v2+
7Group: Applications/System
8#Source0Download: http://www.bluez.org/download.html
68f03ff6 9Source0: http://www.kernel.org/pub/linux/bluetooth/%{name}-%{version}.tar.bz2
f288002d 10# Source0-md5: 2387053eb5a7b02f37df4871df022a02
8e2aef6c
AM
11Source1: %{name}.init
12Source2: %{name}.sysconfig
829382b7
AM
13Source3: dund.init
14Source4: pand.init
15Source5: rfcomm.init
8e2aef6c 16Patch0: %{name}-etc_dir.patch
16869a45 17Patch1: %{name}-wacom-mode-2.patch
7fec19c2 18Patch2: %{name}-systemd.patch
f5d97921 19Patch3: %{name}-audio_socket.patch
8e2aef6c
AM
20URL: http://www.bluez.org/
21BuildRequires: alsa-lib-devel >= 1.0.10-1
b0a62422 22BuildRequires: autoconf >= 2.60
8e2aef6c
AM
23BuildRequires: automake
24BuildRequires: bison
f288002d 25BuildRequires: check-devel >= 0.9.6
b0a62422 26BuildRequires: dbus-devel >= 1.0
c150cb86
JB
27BuildRequires: glib2-devel >= 1:2.16
28BuildRequires: gstreamer-devel >= 0.10.30
8e2aef6c 29BuildRequires: gstreamer-plugins-base-devel >= 0.10
2b38a1f3 30BuildRequires: libcap-ng-devel
8e2aef6c
AM
31BuildRequires: libsndfile-devel
32BuildRequires: libtool
8743dbe7 33BuildRequires: libusb-compat-devel
8e2aef6c 34BuildRequires: pkgconfig >= 1:0.9.0
9980fdad 35BuildRequires: readline-devel
ef6d37ba 36BuildRequires: rpmbuild(macros) >= 1.626
9b3fd779 37BuildRequires: udev-devel
bfe3d974 38Requires: %{name}-libs = %{version}-%{release}
c150cb86 39Requires: glib2 >= 1:2.16
0416a3b3 40Requires: hwdata >= 0.225
9b3fd779 41Requires: rc-scripts
bfe3d974
JR
42Requires: systemd-units >= 37-0.10
43Provides: bluez-utils = %{version}-%{release}
8e2aef6c
AM
44Obsoletes: bluez-hciemu
45Obsoletes: bluez-pan
46Obsoletes: bluez-sdp
6acdd90b 47Obsoletes: bluez-systemd
5e8dfcdf 48Obsoletes: bluez-utils
8e2aef6c
AM
49Obsoletes: bluez-utils-init
50Conflicts: bluez-bluefw
51ExcludeArch: s390 s390x
52BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
53
54# currently lib, not %{_lib} (see cups.spec)
55%define cupsdir /usr/lib/cups/backend
d80dfd39 56%define udevdir /lib/udev
8e2aef6c
AM
57
58%description
59Bluetooth utilities:
d8eef2ef
TP
60 - bluetoothd
61 - dund
8e2aef6c
AM
62 - hcitool
63 - hciattach
64 - hciconfig
8e2aef6c
AM
65 - hciemu
66 - hidd
67 - l2ping
68 - pand
69 - start scripts (PLD)
70 - PCMCIA configuration files
71
72The BLUETOOTH trademarks are owned by Bluetooth SIG, Inc., U.S.A.
73
74%description -l pl.UTF-8
75Narzędzia Bluetooth:
d8eef2ef
TP
76 - bluetoothd
77 - dund
8e2aef6c
AM
78 - hcitool
79 - hciattach
80 - hciconfig
8e2aef6c
AM
81 - hciemu
82 - hidd
83 - l2ping
84 - pand
85 - skrypty startowe (PLD)
86 - pliki konfiguracji PCMCIA
87
88Znaki towarowe BLUETOOTH są własnością Bluetooth SIG, Inc. z USA.
89
90%package -n alsa-plugins-bluetooth
91Summary: ALSA plugins for Bluetooth audio devices
92Summary(pl.UTF-8): Wtyczki systemu ALSA dla urządzeń dźwiękowych Bluetooth
93Group: Libraries
94# bluetoothd + audio service
bfe3d974 95Requires: %{name} = %{version}-%{release}
8e2aef6c
AM
96Requires: alsa-lib >= 1.0.10-1
97
98%description -n alsa-plugins-bluetooth
99ALSA plugins for Bluetooth audio devices.
100
101%description -n alsa-plugins-bluetooth -l pl.UTF-8
102Wtyczki systemu ALSA dla urządzeń dźwiękowych Bluetooth.
103
104%package -n cups-backend-bluetooth
105Summary: Bluetooth backend for CUPS
106Summary(pl.UTF-8): Backend Bluetooth dla CUPS-a
107Group: Applications/Printing
bfe3d974 108Requires: bluez-libs >= %{version}-%{release}
8e2aef6c
AM
109Requires: cups
110
111%description -n cups-backend-bluetooth
112Bluetooth backend for CUPS.
113
114%description -n cups-backend-bluetooth -l pl.UTF-8
115Backend Bluetooth dla CUPS-a.
116
117%package -n gstreamer-bluetooth
118Summary: Bluetooth support for gstreamer
119Summary(pl.UTF-8): Obsługa Bluetooth dla gstreamera
120Group: Libraries
bfe3d974 121Requires: bluez-libs >= %{version}-%{release}
c150cb86 122Requires: gstreamer >= 0.10.30
8e2aef6c
AM
123Requires: gstreamer-plugins-base >= 0.10
124
125%description -n gstreamer-bluetooth
126Bluetooth support for gstreamer.
127
128%description -n gstreamer-bluetooth -l pl.UTF-8
129Obsługa Bluetooth dla gstreamera.
130
131%package libs
132Summary: Bluetooth libraries
133Summary(pl.UTF-8): Biblioteki Bluetooth
ce95dcac 134Group: Libraries
8e2aef6c
AM
135Obsoletes: bluez-sdp
136
137%description libs
138Libraries for use in Bluetooth applications.
139
140The BLUETOOTH trademarks are owned by Bluetooth SIG, Inc., U.S.A.
141
142%description libs -l pl.UTF-8
143Biblioteki do używania w aplikacjach Bluetooth.
144
145Znaki towarowe BLUETOOTH są własnością Bluetooth SIG, Inc. z USA.
146
147%package libs-devel
148Summary: Header files for Bluetooth applications
149Summary(pl.UTF-8): Pliki nagłówkowe dla aplikacji Bluetooth
150Group: Development/Libraries
bfe3d974 151Requires: %{name}-libs = %{version}-%{release}
8e2aef6c
AM
152Obsoletes: bluez-sdp-devel
153
154%description libs-devel
155bluez-libs-devel contains header files for use in Bluetooth
156applications.
157
158%description libs-devel -l pl.UTF-8
159Ten pakiet zawiera pliki nagłówkowe do używania w aplikacjach
160Bluetooth.
161
162%package libs-static
163Summary: Static Bluetooth libraries
164Summary(pl.UTF-8): Biblioteki statyczne Bluetooth
165Group: Development/Libraries
bfe3d974 166Requires: %{name}-libs-devel = %{version}-%{release}
8e2aef6c
AM
167Obsoletes: bluez-sdp-static
168
169%description libs-static
170bluez-libs-static contains development static libraries for use in
171Bluetooth applications.
172
173%description libs-static -l pl.UTF-8
174Ten pakiet zawiera biblioteki statyczne, których można używać do
175aplikacji Bluetooth.
176
177%prep
178%setup -q
179%patch0 -p1
0416a3b3 180%patch1 -p1
7fec19c2 181%patch2 -p1
f5d97921 182%patch3 -p1
8e2aef6c
AM
183
184%build
185%{__libtoolize}
186%{__aclocal}
187%{__autoconf}
188%{__autoheader}
189%{__automake}
190%configure \
16869a45 191 --with-ouifile=%{_datadir}/hwdata/oui.txt \
c7fd41e3 192 --with-systemdsystemunitdir=%{systemdunitdir} \
b0a62422 193 --disable-silent-rules \
8e2aef6c
AM
194 --enable-shared \
195 --enable-static \
196 --enable-alsa \
8e2aef6c
AM
197 --enable-audio \
198 --enable-bccmd \
b0a62422 199 --enable-capng \
8e2aef6c 200 --enable-cups \
c150cb86 201 --enable-dbusoob \
8e2aef6c
AM
202 --enable-dfutool \
203 --enable-dund \
204 --enable-gstreamer \
c150cb86 205 --enable-health \
8e2aef6c
AM
206 --enable-hid2hci \
207 --enable-hidd \
208 --enable-input \
8e2aef6c
AM
209 --enable-network \
210 --enable-pand \
5be4f75f 211 --enable-pcmcia \
c150cb86 212 --enable-pnat \
8e2aef6c 213 --enable-serial \
ab22d2c3 214 --enable-thermometer \
8e2aef6c 215 --enable-tools \
5be4f75f 216 --enable-usb \
68f03ff6 217 --enable-wiimote
8e2aef6c 218
284a9eb9 219%{__make} \
8e2aef6c 220 cupsdir=%{cupsdir} \
2b38a1f3 221 rulesdir=%{udevdir}/rules.d \
b0a62422 222 udevdir=%{udevdir}
8e2aef6c
AM
223
224%install
225rm -rf $RPM_BUILD_ROOT
226install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig}
8e2aef6c
AM
227
228%{__make} install \
229 DESTDIR=$RPM_BUILD_ROOT \
230 cupsdir=%{cupsdir} \
2b38a1f3 231 rulesdir=%{udevdir}/rules.d \
b0a62422 232 udevdir=%{udevdir}
8e2aef6c 233
8e2aef6c
AM
234install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/bluetooth
235install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/bluetooth
829382b7
AM
236install %{SOURCE3} $RPM_BUILD_ROOT/etc/rc.d/init.d/dund
237install %{SOURCE4} $RPM_BUILD_ROOT/etc/rc.d/init.d/pand
238install %{SOURCE5} $RPM_BUILD_ROOT/etc/rc.d/init.d/rfcomm
9a71d017
BZ
239
240install audio/*.conf $RPM_BUILD_ROOT%{_sysconfdir}/bluetooth
241install input/*.conf $RPM_BUILD_ROOT%{_sysconfdir}/bluetooth
242install network/*.conf $RPM_BUILD_ROOT%{_sysconfdir}/bluetooth
243install serial/*.conf $RPM_BUILD_ROOT%{_sysconfdir}/bluetooth
244
16869a45 245mv -fT $RPM_BUILD_ROOT{%{_datadir},%{_sysconfdir}}/alsa
246
0859c749 247%{__rm} $RPM_BUILD_ROOT%{_libdir}/{alsa-lib/*.{la,a},gstreamer*/libgstbluetooth.{la,a},libbluetooth.la}
8e2aef6c
AM
248
249%clean
250rm -rf $RPM_BUILD_ROOT
251
252%post
253/sbin/chkconfig --add bluetooth
829382b7
AM
254/sbin/chkconfig --add dund
255/sbin/chkconfig --add pand
256/sbin/chkconfig --add rfcomm
8e2aef6c 257%service bluetooth restart
829382b7
AM
258%service dund restart
259%service pand restart
260%service rfcomm restart
bfe3d974 261%systemd_post bluetooth.service
8e2aef6c
AM
262
263%preun
264if [ "$1" = "0" ]; then
265 %service bluetooth stop
829382b7
AM
266 %service dund stop
267 %service pand stop
268 %service rfcomm stop
8e2aef6c 269 /sbin/chkconfig --del bluetooth
829382b7
AM
270 /sbin/chkconfig --del dund
271 /sbin/chkconfig --del pand
272 /sbin/chkconfig --del rfcomm
8e2aef6c 273fi
c7fd41e3
BZ
274%systemd_preun bluetooth.service
275
bfe3d974 276%postun
ef6d37ba 277%systemd_reload
c7fd41e3 278
bfe3d974
JR
279%triggerpostun -- bluez < 4.98-3
280%systemd_trigger bluetooth.service
281
282%post libs -p /sbin/ldconfig
283%postun libs -p /sbin/ldconfig
284
8e2aef6c
AM
285%files
286%defattr(644,root,root,755)
f7f17420 287%doc AUTHORS ChangeLog README
3aca1cde
JB
288%attr(755,root,root) %{_bindir}/ciptool
289%attr(755,root,root) %{_bindir}/dfutool
290%attr(755,root,root) %{_bindir}/dund
c150cb86 291%attr(755,root,root) %{_bindir}/gatttool
3aca1cde
JB
292%attr(755,root,root) %{_bindir}/hcitool
293%attr(755,root,root) %{_bindir}/hidd
294%attr(755,root,root) %{_bindir}/l2ping
295%attr(755,root,root) %{_bindir}/pand
296%attr(755,root,root) %{_bindir}/rfcomm
297%attr(755,root,root) %{_bindir}/sdptool
298%attr(755,root,root) %{_sbindir}/bccmd
299%attr(755,root,root) %{_sbindir}/bluetoothd
300%attr(755,root,root) %{_sbindir}/hciattach
301%attr(755,root,root) %{_sbindir}/hciconfig
8e2aef6c
AM
302%dir %{_libdir}/bluetooth
303%dir %{_libdir}/bluetooth/plugins
8e2aef6c 304%dir %{_sysconfdir}/bluetooth
9a71d017 305%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bluetooth/*.conf
8e2aef6c 306%attr(754,root,root) /etc/rc.d/init.d/bluetooth
829382b7
AM
307%attr(754,root,root) /etc/rc.d/init.d/dund
308%attr(754,root,root) /etc/rc.d/init.d/pand
309%attr(754,root,root) /etc/rc.d/init.d/rfcomm
8e2aef6c
AM
310%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/bluetooth
311%config(noreplace) %verify(not md5 mtime size) /etc/dbus-1/system.d/bluetooth.conf
bfe3d974
JR
312%{systemdunitdir}/bluetooth.service
313%{_datadir}/dbus-1/system-services/org.bluez.service
8e2aef6c 314%attr(755,root,root) %{udevdir}/bluetooth_serial
9b2d7208 315%attr(755,root,root) %{udevdir}/hid2hci
8240ea13
ER
316%{udevdir}/rules.d/97-bluetooth.rules
317%{udevdir}/rules.d/97-bluetooth-hid2hci.rules
318%{udevdir}/rules.d/97-bluetooth-serial.rules
3aca1cde
JB
319%{_mandir}/man1/ciptool.1*
320%{_mandir}/man1/dfutool.1*
321%{_mandir}/man1/dund.1*
322%{_mandir}/man1/hcitool.1*
323%{_mandir}/man1/hidd.1*
324%{_mandir}/man1/pand.1*
325%{_mandir}/man1/rfcomm.1*
326%{_mandir}/man1/sdptool.1*
327%{_mandir}/man8/bccmd.8*
328%{_mandir}/man8/bluetoothd.8*
329%{_mandir}/man8/hciattach.8*
330%{_mandir}/man8/hciconfig.8*
331%{_mandir}/man8/hid2hci.8*
332%{_mandir}/man8/l2ping.8*
8e2aef6c
AM
333
334%files -n alsa-plugins-bluetooth
335%defattr(644,root,root,755)
31ae8b61 336%{_sysconfdir}/alsa/bluetooth.conf
8e2aef6c
AM
337%attr(755,root,root) %{_libdir}/alsa-lib/libasound_module_ctl_bluetooth.so
338%attr(755,root,root) %{_libdir}/alsa-lib/libasound_module_pcm_bluetooth.so
339
340%files -n cups-backend-bluetooth
341%defattr(644,root,root,755)
342%attr(755,root,root) %{_prefix}/lib/cups/backend/bluetooth
343
344%files -n gstreamer-bluetooth
345%defattr(644,root,root,755)
346%attr(755,root,root) %{_libdir}/gstreamer*/libgstbluetooth.so
347
348%files libs
349%defattr(644,root,root,755)
350%attr(755,root,root) %{_libdir}/libbluetooth.so.*.*.*
3aca1cde 351%attr(755,root,root) %ghost %{_libdir}/libbluetooth.so.3
8e2aef6c
AM
352
353%files libs-devel
354%defattr(644,root,root,755)
355%attr(755,root,root) %{_libdir}/libbluetooth.so
8e2aef6c 356%{_includedir}/bluetooth
8e2aef6c
AM
357%{_pkgconfigdir}/bluez.pc
358
359%files libs-static
360%defattr(644,root,root,755)
361%{_libdir}/libbluetooth.a
This page took 0.110535 seconds and 4 git commands to generate.