summaryrefslogtreecommitdiffstats
path: root/admin/python-tracing.spec
diff options
context:
space:
mode:
Diffstat (limited to 'admin/python-tracing.spec')
-rw-r--r--admin/python-tracing.spec65
1 files changed, 65 insertions, 0 deletions
diff --git a/admin/python-tracing.spec b/admin/python-tracing.spec
new file mode 100644
index 0000000..e352eec
--- /dev/null
+++ b/admin/python-tracing.spec
@@ -0,0 +1,65 @@
+%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
+
+%global pkgname tracing
+
+Name: python-%{pkgname}
+Version: 0.6
+Release: 1%{?dist}
+Summary: Python debug logging helper
+
+# ask upstream to include license text
+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-sphinx
+
+%description
+The Python library tracing helps with logging debug messages. It
+provides a couple of functions for logging debug messages, and allows
+the user to enable or disable logging for particular code modules.
+
+It is sometimes practical to add a lot of debugging log messages to a
+program, but having them enabled all the time results in very large
+log files. Also, logging that much takes quite a bit of time.
+
+This module provides a way to turn such debugging or tracing messages
+on and off, based on the filename they occur in. The logging can that
+be left in the code, and only enabled when it is needed.
+
+
+%package doc
+Summary: Documentation for %{pkgname}
+Requires: %{name} = %{version}-%{release}
+
+%description doc
+This package contains the documentation for %{pkgname}, a Python debug
+logging helper.
+
+
+%prep
+%setup -q -n %{pkgname}-%{version}
+
+
+%build
+%{__python} setup.py build
+# Build documentation
+make -C doc html
+
+
+%install
+%{__python} setup.py install -O1 --skip-build --root %{buildroot}
+
+
+%files
+%doc NEWS README
+%{python_sitelib}/*
+
+%files doc
+%doc doc/_build/html/*
+
+
+%changelog
+* Sun Jun 3 2012 Michel Salim <salimma@fedoraproject.org> - 0.6-1
+- Initial package