python-urwid-vl.spec 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  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.3.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 COPYING README.rst examples
  43. %{python_sitearch}/urwid
  44. %{python_sitearch}/urwid-%{version}*.egg-info
  45. %changelog
  46. * Tue May 24 2016 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.3.1-1
  47. - new upstream release
  48. - fixed %%doc
  49. * Fri Nov 23 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.1.1-1
  50. - new upstream release
  51. * Fri Nov 09 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.1.0-1
  52. - new upstream release
  53. * Sat Jul 14 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.0.2-1
  54. - new upstream release
  55. * Sun Feb 19 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 1.0.1-2
  56. - rebuild with python-2.7.2
  57. * Sat Dec 03 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.0.1-1
  58. - new upstream release
  59. * Thu Oct 20 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.0.0-2
  60. - new upstream release
  61. - added BuildRequires: python-setuptools
  62. - run %%check
  63. * Fri Sep 23 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.0.0-1
  64. - new upstream release
  65. * Sat Aug 20 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.9.9.2-1
  66. - new upstream release
  67. * Wed Sep 29 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.9.9.1-2
  68. - rebuilt with rpm-4.8.1 for pkg-config
  69. * Fri May 28 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.9.9.1-1
  70. - initial build for VineSeed
  71. * Wed May 19 2010 David Cantrell <dcantrell@redhat.com> - 0.9.9.1-1
  72. - Initial package