source: projects/specs/trunk/b/bluez/bluez-vl.spec @ 1401

Revision 1401, 12.3 KB checked in by Takemikaduchi, 14 years ago (diff)

new upstream release

Line 
1Summary: Bluetooth utilities
2Summary(ja): Bluetooth ユーティリティ
3Name: bluez
4Version: 4.69
5Release: 1%{?_dist_release}
6License: GPLv2+
7Group: Applications/System
8
9URL: http://www.bluez.org/
10
11Vendor: Project Vine
12Distribution: Vine Linux
13Packager: babasaki, daisuke
14
15#----------------------------------------------------------------------------
16
17Source: http://www.kernel.org/pub/linux/bluetooth/%{name}-%{version}.tar.gz
18Source1: bluetooth.init.vine
19Source3: bluez-uinput.modules
20
21Source11: trusts.txt
22Source20: main.conf
23
24Patch1: bluez-utils-oui-usage.patch
25# https://bugzilla.redhat.com/show_bug.cgi?id=450081
26# http://thread.gmane.org/gmane.linux.bluez.kernel/1687
27Patch2: bluez-try-utf8-harder.patch
28# http://thread.gmane.org/gmane.linux.bluez.kernel/1754
29Patch3: bluez-activate-wacom-mode2.patch
30# https://bugzilla.redhat.com/show_bug.cgi?id=498756
31Patch4: bluez-socket-mobile-cf-connection-kit.patch
32# http://thread.gmane.org/gmane.linux.bluez.kernel/2396
33Patch5: 0001-Add-sixaxis-cable-pairing-plugin.patch
34# http://thread.gmane.org/gmane.linux.bluez.kernel/2579
35Patch6: 0001-Add-udev-rules-to-start-bluetooth-on-demand.patch
36
37#----------------------------------------------------------------------------
38BuildRoot:      %{_tmppath}/%{name}-%{version}-root
39
40BuildRequires: flex
41BuildRequires: dbus-devel >= 0.90
42BuildRequires: libusb-devel, glib2-devel, alsa-lib-devel
43BuildRequires: gstreamer-plugins-base-devel, gstreamer-devel
44BuildRequires: libsndfile-devel
45
46ExcludeArch: s390 s390x
47
48Obsoletes: bluez-pan < 4.0, bluez-sdp < 4.0
49Requires: initscripts, bluez-libs = %{version}
50Requires: dbus >= 0.60
51# Requires: fuse
52## Requires: hwdata >= 0.215
53Requires: hwdata >= 0.146
54# virtual provides "dbus-bluez-pin-helper" ex. bluez-gnome
55Requires: dbus-bluez-pin-helper
56Requires(preun): /sbin/chkconfig, /sbin/service
57Requires(post): /sbin/chkconfig, /sbin/service
58#----------------------------------------------------------------------------
59
60Obsoletes: bluez-utils < 4.5-2
61Provides: bluez-utils = %{version}-%{release}
62
63#----------------------------------------------------------------------------
64%description
65Utilities for use in Bluetooth applications:
66        - hcitool
67        - hciattach
68        - hciconfig
69        - bluetoothd
70        - l2ping
71        - start scripts VineLinux (RedHat base)
72        - pcmcia configuration files
73
74 Please, read %{_defaultdocdir}/%{name}-%{version}/trusts.txt
75
76The BLUETOOTH trademarks are owned by Bluetooth SIG, Inc., U.S.A.
77
78%description -l ja
79Bluetooth ユーティリティ (bluez-utils):
80        - hcitool
81        - hciattach
82        - hciconfig
83        - l2ping
84        - 起動スクリプト (Red Hat用をVineLinuxに合わせました)
85        - pcmcia コンフィグレーション ファイル
86※付属の%{_defaultdocdir}/%{name}-%{version}/trusts.txtもご覧下さい。
87
88(BLUETOOTH は Bluetooth SIG, Inc.(USA)のトレードマークです)
89
90#----------------------------------------------------------------------------
91%package libs
92Summary: Libraries for use in Bluetooth applications
93Summary(ja): BlueTooth アプリケーションの使用するライブラリ(BlueZ)
94Group: System Environment/Libraries
95
96%description libs
97Libraries for use in Bluetooth applications.
98
99%description libs -l ja
100Bluetooth アプリケーションのためのライブラリです。
101※BlueZ のユーティリティのためにも必要です
102
103#----------------------------------------------------------------------------
104%package libs-devel
105Summary: Development libraries for Bluetooth applications
106Summary(ja): Bluetooth アプリケーション開発のためのdevelパッケージ
107Group: Development/Libraries
108Requires: bluez-libs = %{version}
109Requires: pkgconfig
110Obsoletes: bluez-sdp-devel < 4.0
111
112%description libs-devel
113bluez-libs-devel contains development libraries and headers for
114use in Bluetooth applications.
115
116%description libs-devel -l ja
117bluez-libs-devel パッケージは Bluetooth アプリケーション開発のための
118ライブラリやヘッダーファイルを提供します。
119
120#----------------------------------------------------------------------------
121%package cups
122Summary: CUPS printer backend for Bluetooth printers
123Summary(ja): Bluetooth 経由の CUPS プリンタシステム用
124Group: System Environment/Daemons
125Obsoletes: bluez-utils-cups < 4.5-2
126Provides: bluez-utils-cups = %{version}-%{release}
127Requires: bluez-libs = %{version}
128Requires: cups
129
130%description cups
131This package contains the CUPS backend
132
133%description cups -l ja
134Bluetooth対応 プリンターを CUPS印刷システムから利用する
135ためのバックエンドです。
136
137#----------------------------------------------------------------------------
138%package gstreamer
139Summary: GStreamer support for SBC audio format
140Summary(ja):GStreamer で SBCオーディオプロファイルをサポートします
141Group: System Environment/Daemons
142Obsoletes: bluez-utils-gstreamer < 4.5-2
143Provides: bluez-utils-gstreamer = %{version}-%{release}
144Requires: bluez-libs = %{version}
145
146%description gstreamer
147This package contains gstreamer plugins for the Bluetooth SBC audio format
148
149%description gstreamer -l ja
150Bluetooth の SBCオーディオプロファイルを扱う gstreamer プラグインが
151含まれています。
152
153#----------------------------------------------------------------------------
154%package alsa
155Summary: ALSA support for Bluetooth audio devices
156Summary(ja): Bluetooth オーディオ機器の ALSA サポート
157Obsoletes: bluez-utils-alsa < 4.5-2
158Provides: bluez-utils-alsa = %{version}-%{release}
159Group: System Environment/Daemons
160Requires: bluez-libs = %{version}
161
162%description alsa
163This package contains ALSA support for Bluetooth audio devices
164
165%description alsa -l ja
166Bluetooth オーディオ機器のためのALSAサポートを含むパッケージです。
167
168#----------------------------------------------------------------------------
169
170%prep
171rm -rf $RPM_BUILD_ROOT
172
173%setup -q
174## %patch1 -p0 -b .oui
175%patch2 -p1 -b .non-utf8-name
176%patch3 -p1 -b .wacom
177%patch4 -p1 -b .socket-mobile
178## %patch5 -p1 -b .cable-pairing
179## %patch6 -p1 -b .udev
180
181%build
182libtoolize -f -c
183autoreconf
184%configure \
185    --enable-cups --enable-hid2hci --enable-dfutool \
186    --enable-tools --enable-bccmd --enable-gstreamer \
187    --enable-hidd --enable-pand --enable-dund
188
189# copy txt
190cp %{SOURCE11} .
191
192make
193
194#----------------------------------------------------------------------------
195%install
196rm -rf $RPM_BUILD_ROOT
197make install DESTDIR=$RPM_BUILD_ROOT
198/sbin/ldconfig -n $RPM_BUILD_ROOT/%{_libdir}
199# Remove autocrap and libtool droppings
200rm -f $RPM_BUILD_ROOT/%{_libdir}/*.la                           \
201        $RPM_BUILD_ROOT/%{_libdir}/alsa-lib/*.la                \
202        $RPM_BUILD_ROOT/%{_libdir}/bluetooth/plugins/*.la       \
203        $RPM_BUILD_ROOT/%{_libdir}/gstreamer-0.10/*.la
204
205install -D -m0755 %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/rc.d/init.d/bluetooth
206
207# replace main.conf
208rm -f $RPM_BUILD_ROOT%{_sysconfdir}/bluetooth/main.conf
209install -D -m0644 %{SOURCE20} $RPM_BUILD_ROOT%{_sysconfdir}/bluetooth/
210# rename serial-api.txt
211mv  doc/serial-api.txt doc/serial-api_doc.txt
212
213
214rm -f ${RPM_BUILD_ROOT}/%{_sysconfdir}/udev/*.rules
215install -D -m0644 scripts/bluetooth-serial.rules ${RPM_BUILD_ROOT}/%{_sysconfdir}/udev/rules.d/97-bluetooth-serial.rules
216install -D -m0755 scripts/bluetooth_serial ${RPM_BUILD_ROOT}/lib/udev/bluetooth_serial
217install -D -m0644 scripts/bluetooth-hid2hci.rules ${RPM_BUILD_ROOT}/%{_sysconfdir}/udev/rules.d/97-bluetooth-hid2hci.rules
218install -D -m0644 scripts/bluetooth.rules ${RPM_BUILD_ROOT}/lib/udev/rules.d/96-bluetooth.rules
219
220install -D -m0755 %{SOURCE3} $RPM_BUILD_ROOT/%{_sysconfdir}/sysconfig/modules/bluez-uinput.modules
221
222install -d -m0755 $RPM_BUILD_ROOT/%{_localstatedir}/lib/bluetooth
223
224%clean
225rm -rf $RPM_BUILD_ROOT
226
227#----------------------------------------------------------------------------
228%post
229/sbin/chkconfig --add bluetooth
230if [ "$1" -ge "1" ]; then
231        /sbin/service bluetooth condrestart >/dev/null 2>&1 || :
232fi
233exit 0
234
235%preun
236if [ "$1" = "0" ]; then
237        /sbin/service bluetooth stop >/dev/null 2>&1 || :
238        /sbin/chkconfig --del bluetooth
239fi
240exit 0
241
242%post libs
243/sbin/ldconfig
244
245%postun libs
246/sbin/ldconfig
247
248#----------------------------------------------------------------------------
249%files
250%defattr(-, root, root)
251%{_bindir}/*
252%{_sbindir}/*
253%{_mandir}/man1/*
254%{_mandir}/man8/*
255%dir %{_sysconfdir}/bluetooth/
256%config(noreplace) %{_sysconfdir}/bluetooth/*
257%config(noreplace) %{_sysconfdir}/sysconfig/*
258%config %{_sysconfdir}/dbus-1/system.d/bluetooth.conf
259%{_libdir}/bluetooth/
260/lib/udev/bluetooth_serial
261%{_sysconfdir}/udev/rules.d/*.rules
262/lib/udev/rules.d/*.rules
263%{_sysconfdir}/rc.d/init.d/*
264
265%files libs
266%defattr(-, root, root)
267%{_libdir}/libbluetooth.so.*
268%doc AUTHORS COPYING INSTALL ChangeLog NEWS README trusts.txt
269%doc */*.txt
270
271%files libs-devel
272%defattr(-, root, root)
273%{_libdir}/libbluetooth.so
274%dir %{_includedir}/bluetooth
275%{_includedir}/bluetooth/*
276%{_libdir}/pkgconfig/bluez.pc
277
278%files cups
279%defattr(-, root, root)
280%{_libdir}/cups/backend/bluetooth
281
282%files gstreamer
283%defattr(-, root, root)
284%{_libdir}/gstreamer-*/*.so
285
286%files alsa
287%defattr(-, root, root)
288%config %{_sysconfdir}/alsa/bluetooth.conf
289%{_libdir}/alsa-lib/*.so
290
291%changelog
292* Mon Jul 19 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.69-1
293- new upstream release
294
295* Mon Jun 21 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.66-1
296- new upstream release
297
298* Sat May 01 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.64-1
299- new upstream release
300- drop Patch1, Patch5, Patch6
301
302* Sun Jul 05 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 4.42-2
303- add bluetooth.init again.
304  - on-demand startup on bootup process will fail, because
305    D-BUS service is not started yet.
306
307* Sun Jun 28 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 4.42-1
308- new upstream release
309
310* Mon Jun 22 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 4.41-2
311- remove bluetooth.init
312  - on-demand start/stop bluetoothd using udev
313  - run hid2hci using udev
314- add missing files to %%files
315
316* Fri Jun 19 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 4.41-1
317- new upstream release
318- add udev rule
319- add upstream Patch[2-6]
320
321* Tue May 26 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 4.37-1
322- new upstream release
323
324* Fri Oct 24 2008 Seiichirou Babasaki 4.15-1
325- Update to 4.15
326- added # Maintainers:  comments.
327- FedoraCore - LOGS
328-- 4.14-2
329-- Add script to autoload uinput on startup, so the PS3 remote
330   works out-of-the-box
331-- 4.14-1 - Update to 4.14
332-- 4.13-3
333-- Update udev rules (#246840)
334-- 4.13-2
335-- Fix PS3 BD remote input event generation
336-- 4.13-1 - Update to 4.13
337-- 4.12-1 - Update to 4.12
338-- 4.11-1 - Update to 4.11
339-- 4.10-1 - Update to 4.10
340-- 4.9-1 - Update to 4.9
341-- 4.8-1 - Update to 4.8
342-- 4.7-1 - Update to 4.7
343-- 4.6-4
344-- Fix patch application
345-- 4.6-3
346-- Add fuzz
347-- 4.6-2
348-- Fix possible crasher on resume from suspend
349-- 4.6-1 - Update to 4.6
350-- 4.5-4
351-- SDP browse fixes
352-- 4.5-3
353-- Bluez-alsa needs to provide/obsolete bluez-utils-alsa
354-- Use versioned Obsoletes:
355-- 4.5-2
356-- Change main utils package name to 'bluez'; likewise its subpackages
357-- Remove references to obsolete initscripts (hidd,pand,dund)
358-- 4.5-1
359-- Update to 4.5
360-- Fix initscript to actually start bluetoothd by hand
361-- Add chkconfig information to the initscript
362-- 4.4-2
363-- Fix rpmlint problems
364-- Fix input device handling
365-- 4.4-1
366-- Update to 4.4
367-- Update source address, and remove unneeded deps (thanks Marcel)
368-- 4.1-1
369-- Initial build
370- updated specfile
371- VineLinux-4.2 logfile
372-- *Thu Oct 2 2008 Seiichirou Babasaki 3.24-4
373-- update bleuz-gnome, rebuild bluez-utils
374-- Requires: fuse
375-- updated specfile
376-- *Tue Sep 30 2008 Seiichirou Babasaki 3.24-3
377-- trusts.txt update (added audio profile)
378-- updated specfile
379
380#----------------------------------------------------------------------------
381* Fri Sep 26 2008 Seiichirou Babasaki 3.32-2
382- *.conf update
383- updated specfile
384
385* Fri Jun 13 2008 Seiichirou Babasaki 3.32-1
386- Updated 3.32
387- Updated specfile
388- ** LOGS 3.31-2
389- ** Add a .service file, starting up hcid only when used (#446918)
390- ** Fix descriptions in the initscript headers (#433647)
391- ** LOGS 3.30-2
392- ** Add support for Dell HID/HCI switch
393- ** LOGS 3.27-1
394- ** Ship audio.conf (#278831)
395- ** Ship network service
396
397* Wed Jan 26 2008 Seiichirou Babasaki 3.24-2
398- Updated specfile
399-   marge bluez-utils-3.24-conf-vl.patch
400-      << bluez-utils-2.3-conf.patch
401- add trusts.txt(ja)
402- Updated specfile
403
404* Mon Jan 21 2008 Seiichirou Babasaki 3.24-1vl2
405- Updated specfile for (dbus-devel >= 0.90)
406
407* Wed Jan 16 2008 Seiichirou Babasaki 3.24-1vl1
408- Import bluez-utils - Packager: Babasaki
409- Updated specfile for (dbus-devel >= 0.60)
410- Update to 3.24
Note: See TracBrowser for help on using the repository browser.