]> git.pld-linux.org Git - packages/bluez.git/blame - bluez.spec
- add patches to prevent bluetoothd from crashing
[packages/bluez.git] / bluez.spec
CommitLineData
8e2aef6c
AM
1Summary: Bluetooth utilities
2Summary(pl.UTF-8): Narzędzia Bluetooth
3Name: bluez
2dbefe61 4Version: 4.41
7865d03f 5Release: 2
8e2aef6c
AM
6License: GPL v2+
7Group: Applications/System
8#Source0Download: http://www.bluez.org/download.html
9Source0: http://www.kernel.org/pub/linux/bluetooth/%{name}-%{version}.tar.gz
2dbefe61 10# Source0-md5: 4629236517df280be321f009917a52be
8e2aef6c
AM
11Source1: %{name}.init
12Source2: %{name}.sysconfig
13Source3: %{name}-udev.rules
14Source4: %{name}-udev.script
15Patch0: %{name}-etc_dir.patch
31ae8b61 16Patch1: %{name}-udev-path.patch
7865d03f
PZ
17Patch2: %{name}-null-session.patch
18Patch3: %{name}-bt_cancel_discovery.patch
8e2aef6c
AM
19URL: http://www.bluez.org/
20BuildRequires: alsa-lib-devel >= 1.0.10-1
21BuildRequires: autoconf >= 2.50
22BuildRequires: automake
23BuildRequires: bison
24BuildRequires: dbus-glib-devel >= 0.60
25BuildRequires: glib2-devel >= 2.0
26BuildRequires: gstreamer-devel >= 0.10
27BuildRequires: gstreamer-plugins-base-devel >= 0.10
2dbefe61 28BuildRequires: libnl-devel
8e2aef6c
AM
29BuildRequires: libsndfile-devel
30BuildRequires: libtool
8743dbe7 31BuildRequires: libusb-compat-devel
8e2aef6c
AM
32BuildRequires: openobex-devel >= 1.1
33BuildRequires: pkgconfig >= 1:0.9.0
34BuildRequires: rpmbuild(macros) >= 1.268
35Requires: %{name}-libs = %{epoch}:%{version}-%{release}
36Requires: rc-scripts
37Obsoletes: bluez-hciemu
38Obsoletes: bluez-pan
39Obsoletes: bluez-sdp
5e8dfcdf 40Obsoletes: bluez-utils
8e2aef6c
AM
41Obsoletes: bluez-utils-init
42Conflicts: bluez-bluefw
890b2714 43Provides: bluez-utils = %{epoch}:%{version}-%{release}
8e2aef6c
AM
44ExcludeArch: s390 s390x
45BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
46
47# currently lib, not %{_lib} (see cups.spec)
48%define cupsdir /usr/lib/cups/backend
d80dfd39 49%define udevdir /lib/udev
8e2aef6c
AM
50
51%description
52Bluetooth utilities:
d8eef2ef
TP
53 - bluetoothd
54 - dund
8e2aef6c
AM
55 - hcitool
56 - hciattach
57 - hciconfig
8e2aef6c
AM
58 - hciemu
59 - hidd
60 - l2ping
61 - pand
62 - start scripts (PLD)
63 - PCMCIA configuration files
64
65The BLUETOOTH trademarks are owned by Bluetooth SIG, Inc., U.S.A.
66
67%description -l pl.UTF-8
68Narzędzia Bluetooth:
d8eef2ef
TP
69 - bluetoothd
70 - dund
8e2aef6c
AM
71 - hcitool
72 - hciattach
73 - hciconfig
8e2aef6c
AM
74 - hciemu
75 - hidd
76 - l2ping
77 - pand
78 - skrypty startowe (PLD)
79 - pliki konfiguracji PCMCIA
80
81Znaki towarowe BLUETOOTH są własnością Bluetooth SIG, Inc. z USA.
82
83%package -n alsa-plugins-bluetooth
84Summary: ALSA plugins for Bluetooth audio devices
85Summary(pl.UTF-8): Wtyczki systemu ALSA dla urządzeń dźwiękowych Bluetooth
86Group: Libraries
87# bluetoothd + audio service
88Requires: %{name} = %{epoch}:%{version}-%{release}
89Requires: alsa-lib >= 1.0.10-1
90
91%description -n alsa-plugins-bluetooth
92ALSA plugins for Bluetooth audio devices.
93
94%description -n alsa-plugins-bluetooth -l pl.UTF-8
95Wtyczki systemu ALSA dla urządzeń dźwiękowych Bluetooth.
96
97%package -n cups-backend-bluetooth
98Summary: Bluetooth backend for CUPS
99Summary(pl.UTF-8): Backend Bluetooth dla CUPS-a
100Group: Applications/Printing
101Requires: bluez-libs >= %{epoch}:%{version}-%{release}
102Requires: cups
103
104%description -n cups-backend-bluetooth
105Bluetooth backend for CUPS.
106
107%description -n cups-backend-bluetooth -l pl.UTF-8
108Backend Bluetooth dla CUPS-a.
109
110%package -n gstreamer-bluetooth
111Summary: Bluetooth support for gstreamer
112Summary(pl.UTF-8): Obsługa Bluetooth dla gstreamera
113Group: Libraries
114Requires: bluez-libs >= %{epoch}:%{version}-%{release}
115Requires: gstreamer >= 0.10
116Requires: gstreamer-plugins-base >= 0.10
117
118%description -n gstreamer-bluetooth
119Bluetooth support for gstreamer.
120
121%description -n gstreamer-bluetooth -l pl.UTF-8
122Obsługa Bluetooth dla gstreamera.
123
124%package libs
125Summary: Bluetooth libraries
126Summary(pl.UTF-8): Biblioteki Bluetooth
127Group: Development/Libraries
128Obsoletes: bluez-sdp
129
130%description libs
131Libraries for use in Bluetooth applications.
132
133The BLUETOOTH trademarks are owned by Bluetooth SIG, Inc., U.S.A.
134
135%description libs -l pl.UTF-8
136Biblioteki do używania w aplikacjach Bluetooth.
137
138Znaki towarowe BLUETOOTH są własnością Bluetooth SIG, Inc. z USA.
139
140%package libs-devel
141Summary: Header files for Bluetooth applications
142Summary(pl.UTF-8): Pliki nagłówkowe dla aplikacji Bluetooth
143Group: Development/Libraries
144Requires: %{name}-libs = %{epoch}:%{version}-%{release}
145Obsoletes: bluez-sdp-devel
146
147%description libs-devel
148bluez-libs-devel contains header files for use in Bluetooth
149applications.
150
151%description libs-devel -l pl.UTF-8
152Ten pakiet zawiera pliki nagłówkowe do używania w aplikacjach
153Bluetooth.
154
155%package libs-static
156Summary: Static Bluetooth libraries
157Summary(pl.UTF-8): Biblioteki statyczne Bluetooth
158Group: Development/Libraries
159Requires: %{name}-libs-devel = %{epoch}:%{version}-%{release}
160Obsoletes: bluez-sdp-static
161
162%description libs-static
163bluez-libs-static contains development static libraries for use in
164Bluetooth applications.
165
166%description libs-static -l pl.UTF-8
167Ten pakiet zawiera biblioteki statyczne, których można używać do
168aplikacji Bluetooth.
169
170%prep
171%setup -q
172%patch0 -p1
31ae8b61 173%patch1 -p1
7865d03f
PZ
174%patch2 -p1
175%patch3 -p1
8e2aef6c
AM
176
177%build
178%{__libtoolize}
179%{__aclocal}
180%{__autoconf}
181%{__autoheader}
182%{__automake}
183%configure \
184 --enable-shared \
185 --enable-static \
186 --enable-alsa \
8e2aef6c
AM
187 --enable-audio \
188 --enable-bccmd \
ebcc455c 189 --enable-configfiles \
8e2aef6c
AM
190 --enable-cups \
191 --enable-dfutool \
192 --enable-dund \
193 --enable-gstreamer \
194 --enable-hid2hci \
195 --enable-hidd \
196 --enable-input \
197 --enable-manpages \
ebcc455c 198 --enable-netlink \
8e2aef6c
AM
199 --enable-network \
200 --enable-pand \
201 --enable-pcmciarules \
202 --enable-serial \
203 --enable-tools \
8e2aef6c
AM
204 --enable-usb
205
206%{__make} \
207 cupsdir=%{cupsdir} \
208 udevdir=%{udevdir}
209
210%install
211rm -rf $RPM_BUILD_ROOT
212install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig}
213install -d $RPM_BUILD_ROOT{/etc/udev/rules.d,%{udevdir}}
214
215%{__make} install \
216 DESTDIR=$RPM_BUILD_ROOT \
217 cupsdir=%{cupsdir} \
218 udevdir=%{udevdir}
219
220# noinst
56b2eeb4 221install audio/audio.conf $RPM_BUILD_ROOT%{_sysconfdir}/bluetooth
2dbefe61
KK
222install input/input.conf $RPM_BUILD_ROOT%{_sysconfdir}/bluetooth
223install network/network.conf $RPM_BUILD_ROOT%{_sysconfdir}/bluetooth
8e2aef6c
AM
224
225install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/bluetooth
226install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/bluetooth
227install %{SOURCE3} $RPM_BUILD_ROOT/etc/udev/rules.d/70-bluetooth.rules
228install %{SOURCE4} $RPM_BUILD_ROOT%{udevdir}/bluetooth.sh
1094cbf6
AM
229rm -f $RPM_BUILD_ROOT%{_libdir}/alsa-lib/*.{,l}a
230rm -f $RPM_BUILD_ROOT%{_libdir}/bluetooth/plugins/*.{,l}a
231rm -f $RPM_BUILD_ROOT%{_libdir}/gstreamer*/libgstbluetooth.{,l}a
8e2aef6c
AM
232
233%clean
234rm -rf $RPM_BUILD_ROOT
235
236%post
237/sbin/chkconfig --add bluetooth
238%service bluetooth restart
239
240%preun
241if [ "$1" = "0" ]; then
242 %service bluetooth stop
243 /sbin/chkconfig --del bluetooth
244fi
245
d8eef2ef 246%post libs -p /sbin/ldconfig
8e2aef6c
AM
247%postun libs -p /sbin/ldconfig
248
249%files
250%defattr(644,root,root,755)
f7f17420 251%doc AUTHORS ChangeLog README
8e2aef6c
AM
252%attr(755,root,root) %{_bindir}/*
253%attr(755,root,root) %{_sbindir}/*
254%dir %{_libdir}/bluetooth
255%dir %{_libdir}/bluetooth/plugins
256%attr(755,root,root) %{_libdir}/bluetooth/plugins/*.so
257%dir %{_sysconfdir}/bluetooth
56b2eeb4 258%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bluetooth/audio.conf
2dbefe61 259%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bluetooth/input.conf
8e2aef6c 260%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bluetooth/main.conf
2dbefe61 261%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bluetooth/network.conf
8e2aef6c
AM
262%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bluetooth/rfcomm.conf
263%attr(754,root,root) /etc/rc.d/init.d/bluetooth
264%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/bluetooth
265%config(noreplace) %verify(not md5 mtime size) /etc/dbus-1/system.d/bluetooth.conf
266%attr(755,root,root) %{udevdir}/bluetooth.sh
267%attr(755,root,root) %{udevdir}/bluetooth_serial
268%config(noreplace) %verify(not md5 mtime size) /etc/udev/rules.d/70-bluetooth.rules
31ae8b61
PZ
269%config(noreplace) %verify(not md5 mtime size) /etc/udev/rules.d/bluetooth-hid2hci.rules
270%config(noreplace) %verify(not md5 mtime size) /etc/udev/rules.d/bluetooth-serial.rules
8e2aef6c
AM
271%{_mandir}/man[18]/*
272
273%files -n alsa-plugins-bluetooth
274%defattr(644,root,root,755)
31ae8b61 275%{_sysconfdir}/alsa/bluetooth.conf
8e2aef6c
AM
276%attr(755,root,root) %{_libdir}/alsa-lib/libasound_module_ctl_bluetooth.so
277%attr(755,root,root) %{_libdir}/alsa-lib/libasound_module_pcm_bluetooth.so
278
279%files -n cups-backend-bluetooth
280%defattr(644,root,root,755)
281%attr(755,root,root) %{_prefix}/lib/cups/backend/bluetooth
282
283%files -n gstreamer-bluetooth
284%defattr(644,root,root,755)
285%attr(755,root,root) %{_libdir}/gstreamer*/libgstbluetooth.so
286
287%files libs
288%defattr(644,root,root,755)
289%attr(755,root,root) %{_libdir}/libbluetooth.so.*.*.*
290%attr(755,root,root) %ghost %{_libdir}/libbluetooth.so.[0-9]
291
292%files libs-devel
293%defattr(644,root,root,755)
294%attr(755,root,root) %{_libdir}/libbluetooth.so
295%{_libdir}/libbluetooth.la
296%{_includedir}/bluetooth
8e2aef6c
AM
297%{_pkgconfigdir}/bluez.pc
298
299%files libs-static
300%defattr(644,root,root,755)
301%{_libdir}/libbluetooth.a
This page took 0.083805 seconds and 4 git commands to generate.