forked from pool/python-urwid
This commit is contained in:
54
python-urwid.spec
Normal file
54
python-urwid.spec
Normal file
@@ -0,0 +1,54 @@
|
||||
# norootforbuild
|
||||
|
||||
%define _prefix /usr
|
||||
|
||||
Name: python-urwid
|
||||
Version: 0.9.7.2
|
||||
Release: 0
|
||||
Summary: Console UI Library for Python
|
||||
Source: http://excess.org/urwid/urwid-%{version}.tar.gz
|
||||
URL: http://excess.org/urwid/
|
||||
Group: Development/Libraries/Python
|
||||
License: GNU Library General Public License (LGPL)
|
||||
BuildRoot: %{_tmppath}/build-%{name}-%{version}
|
||||
BuildRequires: python
|
||||
%if 0%{suse_version}
|
||||
Requires: python-curses
|
||||
%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
|
||||
%__python ./setup.py install --prefix="%{_prefix}" --root="%{buildroot}"
|
||||
|
||||
%clean
|
||||
%__rm -rf "%{buildroot}"
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%doc reference.html tutorial.html
|
||||
%{py_sitedir}/urwid
|
||||
%if %suse_version >= 1020
|
||||
%{py_sitedir}/urwid-%{version}-py%{py_ver}.egg-info
|
||||
%endif
|
||||
|
||||
%changelog
|
||||
* Sun Apr 29 2007 Pascal Bleser <guru@unixtech.be> 0.9.7.2
|
||||
- initial build service submission
|
||||
|
||||
# Local Variables:
|
||||
# mode: rpm-spec
|
||||
# tab-width: 3
|
||||
# End:
|
Reference in New Issue
Block a user