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