python-urwid-vl.spec 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  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.0
  4. Release: 2%{?_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. * Thu Oct 20 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.0.0-2
  48. - added BuildRequires: python-setuptools
  49. - run %%check
  50. * Fri Sep 23 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.0.0-1
  51. - new upstream release
  52. * Sat Aug 20 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.9.9.2-1
  53. - new upstream release
  54. * Wed Sep 29 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.9.9.1-2
  55. - rebuilt with rpm-4.8.1 for pkg-config
  56. * Fri May 28 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.9.9.1-1
  57. - initial build for VineSeed
  58. * Wed May 19 2010 David Cantrell <dcantrell@redhat.com> - 0.9.9.1-1
  59. - Initial package