pybluez-vl.spec 3.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. %{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
  2. Name: pybluez
  3. Version: 0.18
  4. Release: 3%{?_dist_release}
  5. Summary: Python API for the BlueZ bluetooth stack
  6. Summary(ja): BlueZ bluetooth スタックの Python API
  7. Group: Development/Languages
  8. License: GPLv2
  9. URL: http://code.google.com/p/pybluez/
  10. Source0: http://pybluez.googlecode.com/files/PyBluez-0.18.tar.gz
  11. #----------------------------------------------------------------------------
  12. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  13. #----------------------------------------------------------------------------
  14. BuildRequires: python-devel, bluez-libs-devel
  15. #----------------------------------------------------------------------------
  16. %description
  17. PyBluez is an effort to create python wrappers around system Bluetooth
  18. resources to allow Python developers to easily and quickly create Bluetooth
  19. applications.
  20. %description -l ja
  21. PyBluez は Python 開発者が容易かつ迅速にBluetoothのアプリケーションを作成
  22. できるようにシステム回りの Bluetooth リソースの Pythonラッパーを作成します。
  23. #----------------------------------------------------------------------------
  24. %prep
  25. %setup -q -n PyBluez-%{version}
  26. %build
  27. CFLAGS="$RPM_OPT_FLAGS" %{__python} setup.py build
  28. #----------------------------------------------------------------------------
  29. %install
  30. rm -rf $RPM_BUILD_ROOT
  31. # This file shouldn't be executable - it's going into %doc
  32. chmod a-x examples/bluezchat/bluezchat.py
  33. %{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
  34. %clean
  35. rm -rf $RPM_BUILD_ROOT
  36. #----------------------------------------------------------------------------
  37. %files
  38. %defattr(-,root,root,-)
  39. %doc README CHANGELOG COPYING examples
  40. %{python_sitearch}/*
  41. #----------------------------------------------------------------------------
  42. # Maintainers: babasaki@mindgear.org
  43. #
  44. #----------------------------------------------------------------------------
  45. %changelog
  46. * Sun Jan 12 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.18-3
  47. - rebuild with VineSeed environment
  48. * Sun Feb 19 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.18-2
  49. - rebuild with python-2.7.2
  50. * Sat Jul 31 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.18-1
  51. - new upstream release
  52. * Mon Apr 19 2010 Shu KONNO <owa@bg.wakwak.com> 0.15-4
  53. - rebuilt with python-2.6
  54. * Fri Oct 24 2008 Seiichirou Babasaki 0.15-2
  55. - Import bluez-gnome - Packager: Babasaki
  56. - added "# Maintainers: " comments.
  57. - changed UTF-8 encode at pybluez.vs.spec
  58. - updated specfile
  59. #----------------------------------------------------------------------------
  60. * Thu Sep 11 2008 - Bastien Nocera <bnocera@redhat.com> - 0.15-2
  61. - Rebuild
  62. * Wed Jun 4 2008 Will Woods <wwoods@redhat.com> - 0.15-1
  63. - New upstream version
  64. * Wed Feb 20 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0.9.1-4
  65. - Autorebuild for GCC 4.3
  66. * Fri Dec 29 2006 - Will Woods <wwoods@redhat.com> - 0.9.1-3
  67. - Clean up spec file some more after further comments in bug #218678
  68. * Fri Dec 15 2006 - Will Woods <wwoods@redhat.com> - 0.9.1-2
  69. - Clean up spec file according to comments in bug #218678
  70. * Wed Dec 6 2006 - Will Woods <wwoods@redhat.com> - 0.9.1-1
  71. - Initial packaging attempt.