python-urwid-vl.spec 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. %{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
  2. Name: python-urwid
  3. Version: 1.1.1
  4. Release: 1%{?_dist_release}
  5. Summary: Console user interface library
  6. Summary(ja): コンソールユーザーインターフェースライブラリ
  7. Group: Development/Libraries
  8. License: LGPLv2+
  9. URL: http://excess.org/urwid/
  10. Source0: http://excess.org/urwid/urwid-%{version}.tar.gz
  11. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  12. BuildRequires: ncurses-devel
  13. BuildRequires: python-devel
  14. BuildRequires: python-setuptools
  15. BuildRequires: python-twisted
  16. BuildRequires: pygobject
  17. %description
  18. Urwid is a Python library for making text console applications. It has many
  19. features including fluid interface resizing, support for UTF-8 and CJK
  20. encodings, standard and custom text layout modes, simple markup for setting
  21. text attributes, and a powerful, dynamic list box that handles a mix of widget
  22. types. It is flexible, modular, and leaves the developer in control.
  23. %prep
  24. %setup -q -n urwid-%{version}
  25. find urwid -type f -name "*.py" -exec sed -i -e '/^#!\//, 1d' {} \;
  26. find urwid -type f -name "*.py" -exec chmod 644 {} \;
  27. %build
  28. CFLAGS="%{optflags}" %{__python} setup.py build
  29. %check
  30. #./test_urwid.py
  31. python setup.py test
  32. %install
  33. rm -rf %{buildroot}
  34. %{__python} setup.py install --skip-build --no-compile --root %{buildroot}
  35. #rm -f tmpl_tutorial.html
  36. cp -p *.py examples/
  37. rm -f examples/test_urwid.py examples/docgen_*.py
  38. %clean
  39. rm -rf %{buildroot}
  40. %files
  41. %defattr(-,root,root,-)
  42. %doc CHANGELOG examples
  43. %{python_sitearch}/urwid
  44. %{python_sitearch}/urwid-%{version}*.egg-info
  45. %changelog
  46. * Fri Nov 23 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.1.1-1
  47. - new upstream release
  48. * Fri Nov 09 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.1.0-1
  49. - new upstream release
  50. * Sat Jul 14 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.0.2-1
  51. - new upstream release
  52. * Sun Feb 19 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 1.0.1-2
  53. - rebuild with python-2.7.2
  54. * Sat Dec 03 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.0.1-1
  55. - new upstream release
  56. * Thu Oct 20 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.0.0-2
  57. - new upstream release
  58. - added BuildRequires: python-setuptools
  59. - run %%check
  60. * Fri Sep 23 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.0.0-1
  61. - new upstream release
  62. * Sat Aug 20 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.9.9.2-1
  63. - new upstream release
  64. * Wed Sep 29 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.9.9.1-2
  65. - rebuilt with rpm-4.8.1 for pkg-config
  66. * Fri May 28 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.9.9.1-1
  67. - initial build for VineSeed
  68. * Wed May 19 2010 David Cantrell <dcantrell@redhat.com> - 0.9.9.1-1
  69. - Initial package