bluez-vl.spec 12 KB

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