diff options
| author | Michel Alexandre Salim <salimma@fedoraproject.org> | 2012-06-03 13:13:34 +0700 |
|---|---|---|
| committer | Michel Alexandre Salim <salimma@fedoraproject.org> | 2012-06-03 13:13:34 +0700 |
| commit | bcff82938a0f80858137aa9f84d1d4d9ac22bf36 (patch) | |
| tree | 147a78eafcf0417c20c35aaf37a424720543595b /admin/python-ttystatus.spec | |
| parent | d02269009c5f0402f120e8d42e6d291c1277cc24 (diff) | |
| download | specs-bcff82938a0f80858137aa9f84d1d4d9ac22bf36.tar.gz specs-bcff82938a0f80858137aa9f84d1d4d9ac22bf36.tar.xz specs-bcff82938a0f80858137aa9f84d1d4d9ac22bf36.zip | |
Spec files for the Obnam backup tool
Diffstat (limited to 'admin/python-ttystatus.spec')
| -rw-r--r-- | admin/python-ttystatus.spec | 71 |
1 files changed, 71 insertions, 0 deletions
diff --git a/admin/python-ttystatus.spec b/admin/python-ttystatus.spec new file mode 100644 index 0000000..93e7d5d --- /dev/null +++ b/admin/python-ttystatus.spec @@ -0,0 +1,71 @@ +%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")} + +%global pkgname ttystatus + +Name: python-%{pkgname} +Version: 0.18 +Release: 1%{?dist} +Summary: Progress and status updates on terminals for Python + +License: GPLv3+ +URL: http://liw.fi/%{pkgname}/ +Source0: http://code.liw.fi/debian/pool/main/p/%{name}/%{name}_%{version}.orig.tar.gz + +BuildArch: noarch +BuildRequires: python-coverage-test-runner +BuildRequires: python-sphinx + +%description +ttystatus is a Python library for showing progress reporting and +status updates on terminals, for (Unix) command line programs. Output +is automatically adapted to the width of the terminal: truncated if it +does not fit, and re-sized if the terminal size changes. + +Output is provided via widgets. Each widgets formats some data into a +suitable form for output. It gets the data either via its initializer, +or from key/value pairs maintained by the master object. The values +are set by the user. Every time a value is updated, widgets get +updated (although the terminal is only updated every so often to give +user time to actually read the output). + + +%package doc +Summary: Documentation for %{pkgname} +Requires: %{name} = %{version}-%{release} + +%description doc +This package contains the documentation for %{pkgname}, a Python +library providing progress and status updates on terminals. + + +%prep +%setup -q -n %{pkgname}-%{version} + + +%build +%{__python} setup.py build +# Build documentation +make + + +%install +%{__python} setup.py install -O1 --skip-build --root %{buildroot} + + +%check +# note: does not actually fail when code coverage is incomplete, but +# in any case the result should be advisory +make check + + +%files +%doc COPYING NEWS README +%{python_sitelib}/* + +%files doc +%doc doc/_build/html/* + + +%changelog +* Sun Jun 3 2012 Michel Salim <salimma@fedoraproject.org> - 0.18-1 +- Initial package |
