]> git.pld-linux.org Git - packages/python-ttystatus.git/commitdiff
new, version 0.23 auto/th/python-ttystatus-0.23-1
authorElan Ruusamäe <glen@delfi.ee>
Mon, 20 Jan 2014 23:43:22 +0000 (23:43 +0000)
committerElan Ruusamäe <glen@delfi.ee>
Mon, 20 Jan 2014 23:43:41 +0000 (23:43 +0000)
based on fedora package
a814388515a3930df953086c26221bad4a5f9da9

python-ttystatus.spec [new file with mode: 0644]

diff --git a/python-ttystatus.spec b/python-ttystatus.spec
new file mode 100644 (file)
index 0000000..13ea252
--- /dev/null
@@ -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/*
This page took 0.032201 seconds and 4 git commands to generate.