ralph pushed to python-tbgrep (epel7). "Initial import (#847571)"

notifications at fedoraproject.org notifications at fedoraproject.org
Fri Mar 27 13:51:19 UTC 2015


>From b834e415bdf3801ecfba484c5c0405ea0e4e4304 Mon Sep 17 00:00:00 2001
From: Ralph Bean <rbean at redhat.com>
Date: Thu, 16 Aug 2012 09:37:24 -0400
Subject: Initial import (#847571)


diff --git a/.gitignore b/.gitignore
index e69de29..9ea19ac 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/tbgrep-0.2.2.tar.gz
diff --git a/python-tbgrep.spec b/python-tbgrep.spec
new file mode 100644
index 0000000..4749526
--- /dev/null
+++ b/python-tbgrep.spec
@@ -0,0 +1,120 @@
+%if 0%{?fedora} > 12 || 0%{?rhel} > 6
+%global with_python3 1
+%endif
+
+# tbgrep doesn't actually support python3 yet, but the spec cruft is here ready
+# for the day when it does.
+%global with_python3 0
+
+%global modname tbgrep
+
+Name:             python-tbgrep
+Version:          0.2.2
+Release:          1%{?dist}
+Summary:          Extract Python Tracebacks from text
+
+Group:            Development/Libraries
+License:          GPLv3+
+URL:              http://pypi.python.org/pypi/tbgrep
+Source0:          http://pypi.python.org/packages/source/t/%{modname}/%{modname}-%{version}.tar.gz
+
+BuildArch:        noarch
+
+
+BuildRequires:    python2-devel
+BuildRequires:    python-nose
+
+%if 0%{?with_python3}
+BuildRequires:    python3-devel
+BuildRequires:    python3-nose
+%endif
+
+%description
+A module & command-line tool for extracting Python tracebacks from text.
+
+    $ tbgrep file1 file2 file3
+    $ tail -f logfile | tbgrep
+
+tbgrep can extract tracebacks from logs of various formats. For example,
+CherryPy starts the traceback on a line with other details (like module,
+timestamp, etc), but the rest of the trace starts at the beginning of the
+line. Apache logs, on the other hand, will prefix each line of the
+traceback with this information. tbgrep is designed to these kinds of
+situations
+
+%if 0%{?with_python3}
+%package -n python3-tbgrep
+Summary:        Extract Python Tracebacks from text
+Group:          Development/Libraries
+
+%description -n python3-tbgrep
+A module & command-line tool for extracting Python tracebacks from text.
+
+    $ tbgrep file1 file2 file3
+    $ tail -f logfile | tbgrep
+
+tbgrep can extract tracebacks from logs of various formats. For example,
+CherryPy starts the traceback on a line with other details (like module,
+timestamp, etc), but the rest of the trace starts at the beginning of the
+line. Apache logs, on the other hand, will prefix each line of the
+traceback with this information. tbgrep is designed to these kinds of
+situations
+%endif
+
+%prep
+%setup -q -n %{modname}-%{version}
+
+%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}
+mv %{buildroot}/%{_bindir}/tbgrep %{buildroot}/%{_bindir}/python3-tbgrep
+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.rst LICENSE
+%{python_sitelib}/%{modname}
+%{python_sitelib}/%{modname}-%{version}*
+%{_bindir}/tbgrep
+
+%if 0%{?with_python3}
+%files -n python3-%{modname}
+%doc README.rst LICENSE
+%{python3_sitelib}/%{modname}
+%{python3_sitelib}/%{modname}-%{version}-*
+%{_bindir}/python3-tbgrep
+%endif
+
+
+%changelog
+* Sun Aug 12 2012 Ralph Bean <rbean at redhat.com> - 0.2.2-1
+- Latest upstream, includes LICENSE
+* Sun Aug 12 2012 Ralph Bean <rbean at redhat.com> - 0.2.0-1
+- Initial package for Fedora
diff --git a/sources b/sources
index e69de29..1a094ce 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+595bc9388276153e6f736381698b9638  tbgrep-0.2.2.tar.gz
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/python-tbgrep.git/commit/?h=epel7&id=b834e415bdf3801ecfba484c5c0405ea0e4e4304


More information about the scm-commits mailing list