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