[python-tracing] Initial import

Michel Alexandre Salim salimma at fedoraproject.org
Tue Jun 5 14:47:30 UTC 2012


commit 8872d822f8dcb89dad0b90246b3681f1f64ce056
Author: Michel Alexandre Salim <salimma at fedoraproject.org>
Date:   Tue Jun 5 21:47:15 2012 +0700

    Initial import

 .gitignore          |    1 +
 python-tracing.spec |   67 +++++++++++++++++++++++++++++++++++++++++++++++++++
 sources             |    1 +
 3 files changed, 69 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..1084e31 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/python-tracing_0.6.orig.tar.gz
diff --git a/python-tracing.spec b/python-tracing.spec
new file mode 100644
index 0000000..80ddc39
--- /dev/null
+++ b/python-tracing.spec
@@ -0,0 +1,67 @@
+%global pkgname tracing
+
+Name:           python-%{pkgname}
+Version:        0.6
+Release:        2%{?dist}
+Summary:        Python debug logging helper
+
+# ask upstream to include license text
+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-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/* example.py
+
+
+%changelog
+* Tue Jun  5 2012 Michel Salim <salimma at fedoraproject.org> - 0.6-2
+- Remove unneeded %%{python_sitelib} declaration
+- Include example program in -doc
+
+* Sun Jun  3 2012 Michel Salim <salimma at fedoraproject.org> - 0.6-1
+- Initial package
diff --git a/sources b/sources
index e69de29..0c6d8b8 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+7e9655dcba8053864de21337c71bf970  python-tracing_0.6.orig.tar.gz


More information about the scm-commits mailing list