bluez-vl.spec 13 KB

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