bluez-vl.spec 12 KB

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