bluez-vl.spec 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464
  1. Summary: Bluetooth utilities
  2. Summary(ja): Bluetooth ユーティリティ
  3. Name: bluez
  4. Version: 4.101
  5. Release: 4%{?_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: eudev-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. * Tue Jun 17 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.101-4
  236. - change BuildRequires: eudev-libudev-devel instead of libudev-devel
  237. * Sat Jan 04 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.101-3
  238. - rebuild with VineSeed environment
  239. * Thu Jul 11 2013 Daisuke SUZUKI <daisuke@linux.or.jp> 4.101-2
  240. - build with sbc
  241. - add BR: sbc-devel
  242. * Sun Jun 24 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.101-1
  243. - new upstream release
  244. * Sun Mar 11 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.99-1
  245. - new upstream release
  246. * Thu Feb 23 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.98-1
  247. - new upstream release
  248. * Sun Dec 25 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.97-1
  249. - new upstream release
  250. - add BuildRequires: check-devel, readline-devel
  251. * Sun Aug 28 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.96-1
  252. - new upstream release
  253. - add BuildRequires: libudev-devel
  254. * Thu Feb 24 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.89-1
  255. - new upstream release
  256. * Sat Feb 05 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.87-1
  257. - new upstream release
  258. * Thu Dec 30 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.84-1
  259. - new upstream release
  260. * Sun Dec 26 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.82-1
  261. - new upstream release
  262. * Fri Dec 10 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.81-1
  263. - new upstream release
  264. * Tue Nov 16 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.79-1
  265. - new upstream release
  266. - drop Patch2
  267. * Wed Nov 03 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.77-1
  268. - new upstream release
  269. - fix %files (change path of alsa/bluetooth.conf)
  270. * Thu Sep 23 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.69-2
  271. - rebuild with rpm-4.8.1 for pkg-config file
  272. * Mon Jul 19 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.69-1
  273. - new upstream release
  274. * Mon Jun 21 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.66-1
  275. - new upstream release
  276. * Sat May 01 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.64-1
  277. - new upstream release
  278. - drop Patch1, Patch5, Patch6
  279. * Sun Jul 05 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 4.42-2
  280. - add bluetooth.init again.
  281. - on-demand startup on bootup process will fail, because
  282. D-BUS service is not started yet.
  283. * Sun Jun 28 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 4.42-1
  284. - new upstream release
  285. * Mon Jun 22 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 4.41-2
  286. - remove bluetooth.init
  287. - on-demand start/stop bluetoothd using udev
  288. - run hid2hci using udev
  289. - add missing files to %%files
  290. * Fri Jun 19 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 4.41-1
  291. - new upstream release
  292. - add udev rule
  293. - add upstream Patch[2-6]
  294. * Tue May 26 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 4.37-1
  295. - new upstream release
  296. * Fri Oct 24 2008 Seiichirou Babasaki 4.15-1
  297. - Update to 4.15
  298. - added # Maintainers: comments.
  299. - FedoraCore - LOGS
  300. -- 4.14-2
  301. -- Add script to autoload uinput on startup, so the PS3 remote
  302. works out-of-the-box
  303. -- 4.14-1 - Update to 4.14
  304. -- 4.13-3
  305. -- Update udev rules (#246840)
  306. -- 4.13-2
  307. -- Fix PS3 BD remote input event generation
  308. -- 4.13-1 - Update to 4.13
  309. -- 4.12-1 - Update to 4.12
  310. -- 4.11-1 - Update to 4.11
  311. -- 4.10-1 - Update to 4.10
  312. -- 4.9-1 - Update to 4.9
  313. -- 4.8-1 - Update to 4.8
  314. -- 4.7-1 - Update to 4.7
  315. -- 4.6-4
  316. -- Fix patch application
  317. -- 4.6-3
  318. -- Add fuzz
  319. -- 4.6-2
  320. -- Fix possible crasher on resume from suspend
  321. -- 4.6-1 - Update to 4.6
  322. -- 4.5-4
  323. -- SDP browse fixes
  324. -- 4.5-3
  325. -- Bluez-alsa needs to provide/obsolete bluez-utils-alsa
  326. -- Use versioned Obsoletes:
  327. -- 4.5-2
  328. -- Change main utils package name to 'bluez'; likewise its subpackages
  329. -- Remove references to obsolete initscripts (hidd,pand,dund)
  330. -- 4.5-1
  331. -- Update to 4.5
  332. -- Fix initscript to actually start bluetoothd by hand
  333. -- Add chkconfig information to the initscript
  334. -- 4.4-2
  335. -- Fix rpmlint problems
  336. -- Fix input device handling
  337. -- 4.4-1
  338. -- Update to 4.4
  339. -- Update source address, and remove unneeded deps (thanks Marcel)
  340. -- 4.1-1
  341. -- Initial build
  342. - updated specfile
  343. - VineLinux-4.2 logfile
  344. -- *Thu Oct 2 2008 Seiichirou Babasaki 3.24-4
  345. -- update bleuz-gnome, rebuild bluez-utils
  346. -- Requires: fuse
  347. -- updated specfile
  348. -- *Tue Sep 30 2008 Seiichirou Babasaki 3.24-3
  349. -- trusts.txt update (added audio profile)
  350. -- updated specfile
  351. #----------------------------------------------------------------------------
  352. * Fri Sep 26 2008 Seiichirou Babasaki 3.32-2
  353. - *.conf update
  354. - updated specfile
  355. * Fri Jun 13 2008 Seiichirou Babasaki 3.32-1
  356. - Updated 3.32
  357. - Updated specfile
  358. - ** LOGS 3.31-2
  359. - ** Add a .service file, starting up hcid only when used (#446918)
  360. - ** Fix descriptions in the initscript headers (#433647)
  361. - ** LOGS 3.30-2
  362. - ** Add support for Dell HID/HCI switch
  363. - ** LOGS 3.27-1
  364. - ** Ship audio.conf (#278831)
  365. - ** Ship network service
  366. * Sat Jan 26 2008 Seiichirou Babasaki 3.24-2
  367. - Updated specfile
  368. - marge bluez-utils-3.24-conf-vl.patch
  369. - << bluez-utils-2.3-conf.patch
  370. - add trusts.txt(ja)
  371. - Updated specfile
  372. * Mon Jan 21 2008 Seiichirou Babasaki 3.24-1vl2
  373. - Updated specfile for (dbus-devel >= 0.90)
  374. * Wed Jan 16 2008 Seiichirou Babasaki 3.24-1vl1
  375. - Import bluez-utils - Packager: Babasaki
  376. - Updated specfile for (dbus-devel >= 0.60)
  377. - Update to 3.24