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