2009-06-09 22:31:02 +00:00
|
|
|
#
|
2010-01-26 12:27:09 +00:00
|
|
|
# spec file for package python-urwid
|
2009-06-09 22:31:02 +00:00
|
|
|
#
|
|
|
|
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2007-04-29 11:32:27 +00:00
|
|
|
# norootforbuild
|
|
|
|
|
2009-06-09 22:31:02 +00:00
|
|
|
|
|
|
|
Name: python-urwid
|
2010-01-26 12:27:09 +00:00
|
|
|
Version: 0.9.9.1
|
2009-06-09 22:31:02 +00:00
|
|
|
Release: 1
|
|
|
|
Summary: Console UI Library for Python
|
2010-01-26 12:27:09 +00:00
|
|
|
# http://excess.org/urwid/urwid-%{version}.tar.gz
|
|
|
|
Source: urwid-%{version}.tar.bz2
|
2009-06-09 22:31:02 +00:00
|
|
|
Url: http://excess.org/urwid/
|
|
|
|
Group: Development/Libraries/Python
|
|
|
|
License: GNU Library General Public License (LGPL)
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
BuildRequires: python python-devel
|
2007-04-29 11:32:27 +00:00
|
|
|
%if 0%{suse_version}
|
2009-06-09 22:31:02 +00:00
|
|
|
Requires: python-curses
|
2007-04-29 11:32:27 +00:00
|
|
|
%endif
|
|
|
|
%py_requires
|
|
|
|
|
|
|
|
%description
|
|
|
|
Urwid is a Python library for making text console applications. It has
|
|
|
|
many features including fluid interface resizing, support for UTF-8 and CJK
|
|
|
|
encodings, standard and custom text layout modes, simple markup for setting
|
|
|
|
text attributes, and a powerful, dynamic list box that handles a mix of
|
|
|
|
widget types. It is flexible, modular, and leaves the developer in control.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n "urwid-%{version}"
|
|
|
|
|
|
|
|
%build
|
|
|
|
%__python ./setup.py build
|
|
|
|
|
|
|
|
%install
|
2009-06-09 22:31:02 +00:00
|
|
|
%__python ./setup.py install --prefix="%{_prefix}" --root="%{buildroot}" --record-rpm="files.lst"
|
2007-04-29 11:32:27 +00:00
|
|
|
|
|
|
|
%clean
|
|
|
|
%__rm -rf "%{buildroot}"
|
|
|
|
|
2008-05-30 18:15:35 +00:00
|
|
|
%files -f files.lst
|
2007-04-29 11:32:27 +00:00
|
|
|
%defattr(-,root,root)
|
2008-05-30 18:15:35 +00:00
|
|
|
%doc CHANGELOG
|
2007-04-29 11:32:27 +00:00
|
|
|
%doc reference.html tutorial.html
|
|
|
|
|
2010-01-26 12:27:09 +00:00
|
|
|
%changelog
|
2007-04-29 11:32:27 +00:00
|
|
|
# Local Variables:
|
|
|
|
# mode: rpm-spec
|
|
|
|
# tab-width: 3
|
|
|
|
# End:
|