bluez-vl.spec 13 KB

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