bluez-vl.spec 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459
  1. Summary: Bluetooth utilities
  2. Summary(ja): Bluetooth ユーティリティ
  3. Name: bluez
  4. Version: 4.101
  5. Release: 2%{?_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. BuildRequires: sbc-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. %patch3 -p1 -b .wacom
  141. %patch4 -p1 -b .socket-mobile
  142. %build
  143. libtoolize -f -c
  144. autoreconf
  145. %configure \
  146. --enable-cups --enable-hid2hci --enable-dfutool \
  147. --enable-tools --enable-bccmd --enable-gstreamer \
  148. --enable-hidd --enable-pand --enable-dund
  149. # copy txt
  150. cp %{SOURCE11} .
  151. make
  152. #----------------------------------------------------------------------------
  153. %install
  154. rm -rf $RPM_BUILD_ROOT
  155. make install DESTDIR=$RPM_BUILD_ROOT
  156. /sbin/ldconfig -n $RPM_BUILD_ROOT/%{_libdir}
  157. # Remove autocrap and libtool droppings
  158. rm -f $RPM_BUILD_ROOT/%{_libdir}/*.la \
  159. $RPM_BUILD_ROOT/%{_libdir}/alsa-lib/*.la \
  160. $RPM_BUILD_ROOT/%{_libdir}/bluetooth/plugins/*.la \
  161. $RPM_BUILD_ROOT/%{_libdir}/gstreamer-0.10/*.la
  162. install -D -m0755 %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/rc.d/init.d/bluetooth
  163. # replace main.conf
  164. rm -f $RPM_BUILD_ROOT%{_sysconfdir}/bluetooth/main.conf
  165. install -D -m0644 %{SOURCE20} $RPM_BUILD_ROOT%{_sysconfdir}/bluetooth/
  166. # rename serial-api.txt
  167. mv doc/serial-api.txt doc/serial-api_doc.txt
  168. rm -f ${RPM_BUILD_ROOT}/%{_sysconfdir}/udev/*.rules
  169. install -D -m0644 scripts/bluetooth-serial.rules ${RPM_BUILD_ROOT}/%{_sysconfdir}/udev/rules.d/97-bluetooth-serial.rules
  170. install -D -m0755 scripts/bluetooth_serial ${RPM_BUILD_ROOT}/lib/udev/bluetooth_serial
  171. install -D -m0644 scripts/bluetooth-hid2hci.rules ${RPM_BUILD_ROOT}/%{_sysconfdir}/udev/rules.d/97-bluetooth-hid2hci.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. mkdir -p $RPM_BUILD_ROOT/%{_libdir}/bluetooth/
  175. install -D -p -m0644 audio/audio.conf ${RPM_BUILD_ROOT}/etc/bluetooth/
  176. %clean
  177. rm -rf $RPM_BUILD_ROOT
  178. #----------------------------------------------------------------------------
  179. %post
  180. /sbin/chkconfig --add bluetooth
  181. if [ "$1" -ge "1" ]; then
  182. /sbin/service bluetooth condrestart >/dev/null 2>&1 || :
  183. fi
  184. exit 0
  185. %preun
  186. if [ "$1" = "0" ]; then
  187. /sbin/service bluetooth stop >/dev/null 2>&1 || :
  188. /sbin/chkconfig --del bluetooth
  189. fi
  190. exit 0
  191. %post libs
  192. /sbin/ldconfig
  193. %postun libs
  194. /sbin/ldconfig
  195. #----------------------------------------------------------------------------
  196. %files
  197. %defattr(-, root, root)
  198. %{_bindir}/*
  199. %{_sbindir}/*
  200. %{_mandir}/man1/*
  201. %{_mandir}/man8/*
  202. %dir %{_sysconfdir}/bluetooth/
  203. %config(noreplace) %{_sysconfdir}/bluetooth/*
  204. %config(noreplace) %{_sysconfdir}/sysconfig/*
  205. %config %{_sysconfdir}/dbus-1/system.d/bluetooth.conf
  206. %{_sysconfdir}/udev/rules.d/*.rules
  207. %{_sysconfdir}/rc.d/init.d/*
  208. %{_libdir}/bluetooth/
  209. %{_datadir}/dbus-1/system-services/org.bluez.service
  210. /lib/udev/bluetooth_serial
  211. /lib/udev/hid2hci
  212. /lib/udev/rules.d/*.rules
  213. %files libs
  214. %defattr(-, root, root)
  215. %{_libdir}/libbluetooth.so.*
  216. %doc AUTHORS COPYING INSTALL ChangeLog NEWS README trusts.txt
  217. %doc */*.txt
  218. %files libs-devel
  219. %defattr(-, root, root)
  220. %{_libdir}/libbluetooth.so
  221. %dir %{_includedir}/bluetooth
  222. %{_includedir}/bluetooth/*
  223. %{_libdir}/pkgconfig/bluez.pc
  224. %files cups
  225. %defattr(-, root, root)
  226. %{_libdir}/cups/backend/bluetooth
  227. %files gstreamer
  228. %defattr(-, root, root)
  229. %{_libdir}/gstreamer-*/*.so
  230. %files alsa
  231. %defattr(-, root, root)
  232. #%config %{_sysconfdir}/alsa/bluetooth.conf
  233. %config %{_datadir}/alsa/bluetooth.conf
  234. %{_libdir}/alsa-lib/*.so
  235. %changelog
  236. * Thu Jul 11 2013 Daisuke SUZUKI <daisuke@linux.or.jp> 4.101-2
  237. - build with sbc
  238. - add BR: sbc-devel
  239. * Sun Jun 24 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.101-1
  240. - new upstream release
  241. * Sun Mar 11 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.99-1
  242. - new upstream release
  243. * Thu Feb 23 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.98-1
  244. - new upstream release
  245. * Sun Dec 25 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.97-1
  246. - new upstream release
  247. - add BuildRequires: check-devel, readline-devel
  248. * Sun Aug 28 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.96-1
  249. - new upstream release
  250. - add BuildRequires: libudev-devel
  251. * Thu Feb 24 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.89-1
  252. - new upstream release
  253. * Sat Feb 05 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.87-1
  254. - new upstream release
  255. * Thu Dec 30 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.84-1
  256. - new upstream release
  257. * Sun Dec 26 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.82-1
  258. - new upstream release
  259. * Fri Dec 10 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.81-1
  260. - new upstream release
  261. * Tue Nov 16 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.79-1
  262. - new upstream release
  263. - drop Patch2
  264. * Wed Nov 03 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.77-1
  265. - new upstream release
  266. - fix %files (change path of alsa/bluetooth.conf)
  267. * Thu Sep 23 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.69-2
  268. - rebuild with rpm-4.8.1 for pkg-config file
  269. * Mon Jul 19 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.69-1
  270. - new upstream release
  271. * Mon Jun 21 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.66-1
  272. - new upstream release
  273. * Sat May 01 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.64-1
  274. - new upstream release
  275. - drop Patch1, Patch5, Patch6
  276. * Sun Jul 05 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 4.42-2
  277. - add bluetooth.init again.
  278. - on-demand startup on bootup process will fail, because
  279. D-BUS service is not started yet.
  280. * Sun Jun 28 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 4.42-1
  281. - new upstream release
  282. * Mon Jun 22 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 4.41-2
  283. - remove bluetooth.init
  284. - on-demand start/stop bluetoothd using udev
  285. - run hid2hci using udev
  286. - add missing files to %%files
  287. * Fri Jun 19 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 4.41-1
  288. - new upstream release
  289. - add udev rule
  290. - add upstream Patch[2-6]
  291. * Tue May 26 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 4.37-1
  292. - new upstream release
  293. * Fri Oct 24 2008 Seiichirou Babasaki 4.15-1
  294. - Update to 4.15
  295. - added # Maintainers: comments.
  296. - FedoraCore - LOGS
  297. -- 4.14-2
  298. -- Add script to autoload uinput on startup, so the PS3 remote
  299. works out-of-the-box
  300. -- 4.14-1 - Update to 4.14
  301. -- 4.13-3
  302. -- Update udev rules (#246840)
  303. -- 4.13-2
  304. -- Fix PS3 BD remote input event generation
  305. -- 4.13-1 - Update to 4.13
  306. -- 4.12-1 - Update to 4.12
  307. -- 4.11-1 - Update to 4.11
  308. -- 4.10-1 - Update to 4.10
  309. -- 4.9-1 - Update to 4.9
  310. -- 4.8-1 - Update to 4.8
  311. -- 4.7-1 - Update to 4.7
  312. -- 4.6-4
  313. -- Fix patch application
  314. -- 4.6-3
  315. -- Add fuzz
  316. -- 4.6-2
  317. -- Fix possible crasher on resume from suspend
  318. -- 4.6-1 - Update to 4.6
  319. -- 4.5-4
  320. -- SDP browse fixes
  321. -- 4.5-3
  322. -- Bluez-alsa needs to provide/obsolete bluez-utils-alsa
  323. -- Use versioned Obsoletes:
  324. -- 4.5-2
  325. -- Change main utils package name to 'bluez'; likewise its subpackages
  326. -- Remove references to obsolete initscripts (hidd,pand,dund)
  327. -- 4.5-1
  328. -- Update to 4.5
  329. -- Fix initscript to actually start bluetoothd by hand
  330. -- Add chkconfig information to the initscript
  331. -- 4.4-2
  332. -- Fix rpmlint problems
  333. -- Fix input device handling
  334. -- 4.4-1
  335. -- Update to 4.4
  336. -- Update source address, and remove unneeded deps (thanks Marcel)
  337. -- 4.1-1
  338. -- Initial build
  339. - updated specfile
  340. - VineLinux-4.2 logfile
  341. -- *Thu Oct 2 2008 Seiichirou Babasaki 3.24-4
  342. -- update bleuz-gnome, rebuild bluez-utils
  343. -- Requires: fuse
  344. -- updated specfile
  345. -- *Tue Sep 30 2008 Seiichirou Babasaki 3.24-3
  346. -- trusts.txt update (added audio profile)
  347. -- updated specfile
  348. #----------------------------------------------------------------------------
  349. * Fri Sep 26 2008 Seiichirou Babasaki 3.32-2
  350. - *.conf update
  351. - updated specfile
  352. * Fri Jun 13 2008 Seiichirou Babasaki 3.32-1
  353. - Updated 3.32
  354. - Updated specfile
  355. - ** LOGS 3.31-2
  356. - ** Add a .service file, starting up hcid only when used (#446918)
  357. - ** Fix descriptions in the initscript headers (#433647)
  358. - ** LOGS 3.30-2
  359. - ** Add support for Dell HID/HCI switch
  360. - ** LOGS 3.27-1
  361. - ** Ship audio.conf (#278831)
  362. - ** Ship network service
  363. * Wed Jan 26 2008 Seiichirou Babasaki 3.24-2
  364. - Updated specfile
  365. - marge bluez-utils-3.24-conf-vl.patch
  366. - << bluez-utils-2.3-conf.patch
  367. - add trusts.txt(ja)
  368. - Updated specfile
  369. * Mon Jan 21 2008 Seiichirou Babasaki 3.24-1vl2
  370. - Updated specfile for (dbus-devel >= 0.90)
  371. * Wed Jan 16 2008 Seiichirou Babasaki 3.24-1vl1
  372. - Import bluez-utils - Packager: Babasaki
  373. - Updated specfile for (dbus-devel >= 0.60)
  374. - Update to 3.24