python-urwid-vl.spec 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  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: 0.9.9.1
  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-twisted
  15. BuildRequires: pygobject
  16. %description
  17. Urwid is a Python library for making text console applications. It has many
  18. features including fluid interface resizing, support for UTF-8 and CJK
  19. encodings, standard and custom text layout modes, simple markup for setting
  20. text attributes, and a powerful, dynamic list box that handles a mix of widget
  21. types. It is flexible, modular, and leaves the developer in control.
  22. %prep
  23. %setup -q -n urwid-%{version}
  24. find urwid -type f -name "*.py" -exec sed -i -e '/^#!\//, 1d' {} \;
  25. find urwid -type f -name "*.py" -exec chmod 644 {} \;
  26. %build
  27. CFLAGS="%{optflags}" %{__python} setup.py build
  28. %check
  29. ./test_urwid.py
  30. %install
  31. rm -rf %{buildroot}
  32. %{__python} setup.py install --skip-build --no-compile --root %{buildroot}
  33. rm -f tmpl_tutorial.html
  34. mkdir examples
  35. cp -p *.py examples/
  36. rm -f examples/test_urwid.py examples/docgen_*.py
  37. %clean
  38. rm -rf %{buildroot}
  39. %files
  40. %defattr(-,root,root,-)
  41. %doc CHANGELOG *.html examples
  42. %{python_sitearch}/urwid
  43. %{python_sitearch}/urwid-%{version}*.egg-info
  44. %changelog
  45. * Wed Sep 29 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.9.9.1-2
  46. - rebuilt with rpm-4.8.1 for pkg-config
  47. * Fri May 28 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.9.9.1-1
  48. - initial build for VineSeed
  49. * Wed May 19 2010 David Cantrell <dcantrell@redhat.com> - 0.9.9.1-1
  50. - Initial package