bluez-vl.spec 14 KB

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