bluez-vl.spec 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418
  1. Summary: Bluetooth utilities
  2. Summary(ja): Bluetooth ユーティリティ
  3. Name: bluez
  4. Version: 4.77
  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: babasaki, daisuke
  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. * Wed Nov 03 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.77-1
  238. - new upstream release
  239. - fix %files (change path of alsa/bluetooth.conf)
  240. * Thu Sep 23 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.69-2
  241. - rebuild with rpm-4.8.1 for pkg-config file
  242. * Mon Jul 19 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.69-1
  243. - new upstream release
  244. * Mon Jun 21 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.66-1
  245. - new upstream release
  246. * Sat May 01 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.64-1
  247. - new upstream release
  248. - drop Patch1, Patch5, Patch6
  249. * Sun Jul 05 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 4.42-2
  250. - add bluetooth.init again.
  251. - on-demand startup on bootup process will fail, because
  252. D-BUS service is not started yet.
  253. * Sun Jun 28 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 4.42-1
  254. - new upstream release
  255. * Mon Jun 22 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 4.41-2
  256. - remove bluetooth.init
  257. - on-demand start/stop bluetoothd using udev
  258. - run hid2hci using udev
  259. - add missing files to %%files
  260. * Fri Jun 19 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 4.41-1
  261. - new upstream release
  262. - add udev rule
  263. - add upstream Patch[2-6]
  264. * Tue May 26 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 4.37-1
  265. - new upstream release
  266. * Fri Oct 24 2008 Seiichirou Babasaki 4.15-1
  267. - Update to 4.15
  268. - added # Maintainers: comments.
  269. - FedoraCore - LOGS
  270. -- 4.14-2
  271. -- Add script to autoload uinput on startup, so the PS3 remote
  272. works out-of-the-box
  273. -- 4.14-1 - Update to 4.14
  274. -- 4.13-3
  275. -- Update udev rules (#246840)
  276. -- 4.13-2
  277. -- Fix PS3 BD remote input event generation
  278. -- 4.13-1 - Update to 4.13
  279. -- 4.12-1 - Update to 4.12
  280. -- 4.11-1 - Update to 4.11
  281. -- 4.10-1 - Update to 4.10
  282. -- 4.9-1 - Update to 4.9
  283. -- 4.8-1 - Update to 4.8
  284. -- 4.7-1 - Update to 4.7
  285. -- 4.6-4
  286. -- Fix patch application
  287. -- 4.6-3
  288. -- Add fuzz
  289. -- 4.6-2
  290. -- Fix possible crasher on resume from suspend
  291. -- 4.6-1 - Update to 4.6
  292. -- 4.5-4
  293. -- SDP browse fixes
  294. -- 4.5-3
  295. -- Bluez-alsa needs to provide/obsolete bluez-utils-alsa
  296. -- Use versioned Obsoletes:
  297. -- 4.5-2
  298. -- Change main utils package name to 'bluez'; likewise its subpackages
  299. -- Remove references to obsolete initscripts (hidd,pand,dund)
  300. -- 4.5-1
  301. -- Update to 4.5
  302. -- Fix initscript to actually start bluetoothd by hand
  303. -- Add chkconfig information to the initscript
  304. -- 4.4-2
  305. -- Fix rpmlint problems
  306. -- Fix input device handling
  307. -- 4.4-1
  308. -- Update to 4.4
  309. -- Update source address, and remove unneeded deps (thanks Marcel)
  310. -- 4.1-1
  311. -- Initial build
  312. - updated specfile
  313. - VineLinux-4.2 logfile
  314. -- *Thu Oct 2 2008 Seiichirou Babasaki 3.24-4
  315. -- update bleuz-gnome, rebuild bluez-utils
  316. -- Requires: fuse
  317. -- updated specfile
  318. -- *Tue Sep 30 2008 Seiichirou Babasaki 3.24-3
  319. -- trusts.txt update (added audio profile)
  320. -- updated specfile
  321. #----------------------------------------------------------------------------
  322. * Fri Sep 26 2008 Seiichirou Babasaki 3.32-2
  323. - *.conf update
  324. - updated specfile
  325. * Fri Jun 13 2008 Seiichirou Babasaki 3.32-1
  326. - Updated 3.32
  327. - Updated specfile
  328. - ** LOGS 3.31-2
  329. - ** Add a .service file, starting up hcid only when used (#446918)
  330. - ** Fix descriptions in the initscript headers (#433647)
  331. - ** LOGS 3.30-2
  332. - ** Add support for Dell HID/HCI switch
  333. - ** LOGS 3.27-1
  334. - ** Ship audio.conf (#278831)
  335. - ** Ship network service
  336. * Wed Jan 26 2008 Seiichirou Babasaki 3.24-2
  337. - Updated specfile
  338. - marge bluez-utils-3.24-conf-vl.patch
  339. - << bluez-utils-2.3-conf.patch
  340. - add trusts.txt(ja)
  341. - Updated specfile
  342. * Mon Jan 21 2008 Seiichirou Babasaki 3.24-1vl2
  343. - Updated specfile for (dbus-devel >= 0.90)
  344. * Wed Jan 16 2008 Seiichirou Babasaki 3.24-1vl1
  345. - Import bluez-utils - Packager: Babasaki
  346. - Updated specfile for (dbus-devel >= 0.60)
  347. - Update to 3.24