bluez-vl.spec 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450
  1. Summary: Bluetooth utilities
  2. Summary(ja): Bluetooth ユーティリティ
  3. Name: bluez
  4. Version: 4.101
  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 -m0755 %{SOURCE3} $RPM_BUILD_ROOT/%{_sysconfdir}/sysconfig/modules/bluez-uinput.modules
  172. install -d -m0755 $RPM_BUILD_ROOT/%{_localstatedir}/lib/bluetooth
  173. %clean
  174. rm -rf $RPM_BUILD_ROOT
  175. #----------------------------------------------------------------------------
  176. %post
  177. /sbin/chkconfig --add bluetooth
  178. if [ "$1" -ge "1" ]; then
  179. /sbin/service bluetooth condrestart >/dev/null 2>&1 || :
  180. fi
  181. exit 0
  182. %preun
  183. if [ "$1" = "0" ]; then
  184. /sbin/service bluetooth stop >/dev/null 2>&1 || :
  185. /sbin/chkconfig --del bluetooth
  186. fi
  187. exit 0
  188. %post libs
  189. /sbin/ldconfig
  190. %postun libs
  191. /sbin/ldconfig
  192. #----------------------------------------------------------------------------
  193. %files
  194. %defattr(-, root, root)
  195. %{_bindir}/*
  196. %{_sbindir}/*
  197. %{_mandir}/man1/*
  198. %{_mandir}/man8/*
  199. %dir %{_sysconfdir}/bluetooth/
  200. %config(noreplace) %{_sysconfdir}/bluetooth/*
  201. %config(noreplace) %{_sysconfdir}/sysconfig/*
  202. %config %{_sysconfdir}/dbus-1/system.d/bluetooth.conf
  203. %{_sysconfdir}/udev/rules.d/*.rules
  204. %{_sysconfdir}/rc.d/init.d/*
  205. %{_libdir}/bluetooth/
  206. %{_datadir}/dbus-1/system-services/org.bluez.service
  207. /lib/udev/bluetooth_serial
  208. /lib/udev/hid2hci
  209. /lib/udev/rules.d/*.rules
  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 Jun 24 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.101-1
  234. - new upstream release
  235. * Sun Mar 11 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.99-1
  236. - new upstream release
  237. * Thu Feb 23 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.98-1
  238. - new upstream release
  239. * Sun Dec 25 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.97-1
  240. - new upstream release
  241. - add BuildRequires: check-devel, readline-devel
  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