[packages/python-ttystatus] new, version 0.23
glen
glen at pld-linux.org
Tue Jan 21 00:43:59 CET 2014
commit c53fa794953bc315f98e40f191c6e69367923ea9
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Mon Jan 20 23:43:22 2014 +0000
new, version 0.23
based on fedora package
a814388515a3930df953086c26221bad4a5f9da9
python-ttystatus.spec | 79 +++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 79 insertions(+)
---
diff --git a/python-ttystatus.spec b/python-ttystatus.spec
new file mode 100644
index 0000000..13ea252
--- /dev/null
+++ b/python-ttystatus.spec
@@ -0,0 +1,79 @@
+%define module ttystatus
+Summary: Progress and status updates on terminals for Python
+Name: python-%{module}
+Version: 0.23
+Release: 1
+License: GPL v3+
+Group: Libraries/Python
+Source0: http://code.liw.fi/debian/pool/main/p/python-%{module}/%{name}_%{version}.orig.tar.gz
+# Source0-md5: bfc43748b5a569a0d5e283b2e78814a8
+URL: http://liw.fi/ttystatus/
+BuildRequires: python-Sphinx
+BuildRequires: python-coverage-test-runner
+BuildRequires: rpm-pythonprov
+BuildRequires: rpmbuild(macros) >= 1.219
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%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 %{module}
+Requires: %{name} = %{version}-%{release}
+
+%description doc
+This package contains the documentation for %{module}, a Python
+library providing progress and status updates on terminals.
+
+%prep
+%setup -q -n %{module}-%{version}
+
+%build
+%if %{with tests}
+# CoverageTestRunner trips up on build directory;
+# remove it first
+rm -rf build
+%{__make} check
+%endif
+
+%{__python} setup.py build
+
+# Build documentation
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+%{__python} setup.py install \
+ --skip-build \
+ --optimize=2 \
+ --root=$RPM_BUILD_ROOT
+
+# drop internal tests
+%{__rm} $RPM_BUILD_ROOT%{py_sitescriptdir}/ttystatus/*_tests.py*
+
+%py_postclean
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc NEWS README
+%{py_sitescriptdir}/ttystatus-%{version}-py*.egg-info
+%dir %{py_sitescriptdir}/ttystatus
+%{py_sitescriptdir}/ttystatus/*.py[co]
+
+%files doc
+%defattr(644,root,root,755)
+%doc doc/_build/html/*
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python-ttystatus.git/commitdiff/c53fa794953bc315f98e40f191c6e69367923ea9
More information about the pld-cvs-commit
mailing list