pybluez-vl.spec 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  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: 1%{?_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 Jul 31 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.18-1
  47. - new upstream release
  48. * Mon Apr 19 2010 Shu KONNO <owa@bg.wakwak.com> 0.15-4
  49. - rebuilt with python-2.6
  50. * Fri Oct 24 2008 Seiichirou Babasaki 0.15-2
  51. - Import bluez-gnome - Packager: Babasaki
  52. - added "# Maintainers: " comments.
  53. - changed UTF-8 encode at pybluez.vs.spec
  54. - updated specfile
  55. #----------------------------------------------------------------------------
  56. * Thu Sep 11 2008 - Bastien Nocera <bnocera@redhat.com> - 0.15-2
  57. - Rebuild
  58. * Wed Jun 4 2008 Will Woods <wwoods@redhat.com> - 0.15-1
  59. - New upstream version
  60. * Wed Feb 20 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0.9.1-4
  61. - Autorebuild for GCC 4.3
  62. * Fri Dec 29 2006 - Will Woods <wwoods@redhat.com> - 0.9.1-3
  63. - Clean up spec file some more after further comments in bug #218678
  64. * Fri Dec 15 2006 - Will Woods <wwoods@redhat.com> - 0.9.1-2
  65. - Clean up spec file according to comments in bug #218678
  66. * Wed Dec 6 2006 - Will Woods <wwoods@redhat.com> - 0.9.1-1
  67. - Initial packaging attempt.