[python-ttystatus] Initial import
Michel Alexandre Salim
salimma at fedoraproject.org
Sun Jun 10 16:53:16 UTC 2012
commit f024125ff4a7a23f96ae20c1a5bf26edbeb8be47
Author: Michel Alexandre Salim <salimma at fedoraproject.org>
Date: Sun Jun 10 23:53:02 2012 +0700
Initial import
.gitignore | 1 +
python-ttystatus.spec | 76 +++++++++++++++++++++++++++++++++++++++++++++++++
sources | 1 +
3 files changed, 78 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..4ec2f93 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/python-ttystatus_0.18.orig.tar.gz
diff --git a/python-ttystatus.spec b/python-ttystatus.spec
new file mode 100644
index 0000000..50b9095
--- /dev/null
+++ b/python-ttystatus.spec
@@ -0,0 +1,76 @@
+%global pkgname ttystatus
+
+Name: python-%{pkgname}
+Version: 0.18
+Release: 2%{?dist}
+Summary: Progress and status updates on terminals for Python
+
+License: GPLv3+
+URL: http://liw.fi/%{pkgname}/
+Source0: http://ftp.debian.org/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
+# CoverageTestRunner trips up on build directory;
+# since we've already done the install phase, remove it first
+rm -rf build
+make check
+
+
+%files
+%doc COPYING NEWS README
+%{python_sitelib}/*
+
+%files doc
+%doc doc/_build/html/*
+
+
+%changelog
+* Thu Jun 7 2012 Michel Salim <salimma at fedoraproject.org> - 0.18-2
+- Remove deprecated %%{python_sitelib} declaration
+- Delete build directory before doing coverage tests; the coverage
+ exclusion list does not include the built version of the excluded
+ modules
+
+* Sun Jun 3 2012 Michel Salim <salimma at fedoraproject.org> - 0.18-1
+- Initial package
diff --git a/sources b/sources
index e69de29..83936a0 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+7e7d507a77db43a285f1a1e17d09b4c3 python-ttystatus_0.18.orig.tar.gz
More information about the scm-commits
mailing list