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

Revision 5333, 13.0 KB checked in by Takemikaduchi, 12 years ago (diff)

new upstream release

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