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