bluez-vl.spec 12 KB

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