bluez-vl.spec 13 KB

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