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

Revision 4681, 13.3 KB checked in by Takemikaduchi, 13 years ago (diff)

new upstream release

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