python-urwid-vl.spec 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  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.0.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. mkdir examples
  37. cp -p *.py examples/
  38. rm -f examples/test_urwid.py examples/docgen_*.py
  39. %clean
  40. rm -rf %{buildroot}
  41. %files
  42. %defattr(-,root,root,-)
  43. %doc CHANGELOG *.html examples
  44. %{python_sitearch}/urwid
  45. %{python_sitearch}/urwid-%{version}*.egg-info
  46. %changelog
  47. * Sat Dec 03 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.0.1-2
  48. - new upstream release
  49. * Thu Oct 20 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.0.0-2
  50. - new upstream release
  51. - added BuildRequires: python-setuptools
  52. - run %%check
  53. * Fri Sep 23 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.0.0-1
  54. - new upstream release
  55. * Sat Aug 20 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.9.9.2-1
  56. - new upstream release
  57. * Wed Sep 29 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.9.9.1-2
  58. - rebuilt with rpm-4.8.1 for pkg-config
  59. * Fri May 28 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.9.9.1-1
  60. - initial build for VineSeed
  61. * Wed May 19 2010 David Cantrell <dcantrell@redhat.com> - 0.9.9.1-1
  62. - Initial package