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