[python-logutils] Initial import (#884041)

Ralph Bean ralph at fedoraproject.org
Thu Dec 6 14:28:46 UTC 2012


commit 76844e7558681c22bc8e12484912b0203016d47f
Author: Ralph Bean <rbean at redhat.com>
Date:   Thu Dec 6 09:28:38 2012 -0500

    Initial import (#884041)

 .gitignore           |    1 +
 python-logutils.spec |   98 ++++++++++++++++++++++++++++++++++++++++++++++++++
 sources              |    1 +
 3 files changed, 100 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..2780e12 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/logutils-0.3.2.tar.gz
diff --git a/python-logutils.spec b/python-logutils.spec
new file mode 100644
index 0000000..8f54377
--- /dev/null
+++ b/python-logutils.spec
@@ -0,0 +1,98 @@
+%if 0%{?fedora} > 12 || 0%{?rhel} > 6
+%global with_python3 1
+%endif
+
+%global modname logutils
+
+Name:               python-%{modname}
+Version:            0.3.2
+Release:            1%{?dist}
+Summary:            Logging utilities
+
+Group:              Development/Libraries
+License:            BSD
+URL:                http://pypi.python.org/pypi/logutils
+Source0:            http://%{modname}.googlecode.com/files/%{modname}-%{version}.tar.gz
+
+BuildArch:          noarch
+
+
+BuildRequires:      python2-devel
+
+%if 0%{?with_python3}
+BuildRequires:      python3-devel
+%endif
+
+%description
+The logutils package provides a set of handlers for the Python standard
+library's logging package.
+
+Some of these handlers are out-of-scope for the standard library, and so
+they are packaged here. Others are updated versions which have appeared in
+recent Python releases, but are usable with older versions of Python and so
+are packaged here.
+
+%if 0%{?with_python3}
+%package -n python3-logutils
+Summary:            Logging utilities
+Group:              Development/Libraries
+
+%description -n python3-logutils
+The logutils package provides a set of handlers for the Python standard
+library's logging package.
+
+Some of these handlers are out-of-scope for the standard library, and so
+they are packaged here. Others are updated versions which have appeared in
+recent Python releases, but are usable with older versions of Python and so
+are packaged here.
+%endif
+
+%prep
+%setup -q -n %{modname}-%{version}
+
+# Remove bundled egg-info in case it exists
+rm -rf %{modname}.egg-info
+%if 0%{?with_python3}
+rm -rf %{py3dir}
+cp -a . %{py3dir}
+%endif
+
+%build
+%{__python} setup.py build
+%if 0%{?with_python3}
+pushd %{py3dir}
+%{__python3} setup.py build
+popd
+%endif
+
+%install
+%if 0%{?with_python3}
+pushd %{py3dir}
+%{__python3} setup.py install -O1 --skip-build --root=%{buildroot}
+popd
+%endif
+%{__python} setup.py install -O1 --skip-build --root=%{buildroot}
+
+%check
+%{__python} setup.py test
+%if 0%{?with_python3}
+pushd %{py3dir}
+%{__python3} setup.py test
+popd
+%endif
+
+%files
+%doc README.txt LICENSE.txt NEWS.txt doc/
+%{python_sitelib}/%{modname}/
+%{python_sitelib}/%{modname}-%{version}*
+
+%if 0%{?with_python3}
+%files -n python3-%{modname}
+%doc README.txt LICENSE.txt NEWS.txt doc/
+%{python3_sitelib}/%{modname}/
+%{python3_sitelib}/%{modname}-%{version}-*
+%endif
+
+%changelog
+* Wed Dec 05 2012 Ralph Bean <rbean at redhat.com> - 0.3.2-1
+- Initial package for Fedora
diff --git a/sources b/sources
index e69de29..952b2f1 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+dac9994a70b173371fa48abce66ab6e8  logutils-0.3.2.tar.gz


More information about the scm-commits mailing list