[python-raven/f20] Initial import of raven 3.5.0
Xavier Queralt Mateu
xqueralt at fedoraproject.org
Wed Oct 16 12:55:00 UTC 2013
commit c180b67787b886e32d5dd4541cb2d8e093989cbe
Author: Xavier Queralt <xqueralt at redhat.com>
Date: Wed Oct 16 14:43:26 2013 +0200
Initial import of raven 3.5.0
rhbz#1019341
.gitignore | 1 +
python-raven.spec | 90 +++++++++++++++++++++++++++++++++++++++++++++++++++++
sources | 1 +
3 files changed, 92 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..00c822a 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/raven-3.5.0.tar.gz
diff --git a/python-raven.spec b/python-raven.spec
new file mode 100644
index 0000000..02fa190
--- /dev/null
+++ b/python-raven.spec
@@ -0,0 +1,90 @@
+%if 0%{?fedora} > 12
+%global with_python3 1
+%else
+%{!?python2_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print (get_python_lib())")}
+%endif
+
+Name: python-raven
+
+Version: 3.5.0
+Release: 2%{?dist}
+Summary: Python client for Sentry
+
+Group: Development/Libraries
+License: BSD
+URL: https://pypi.python.org/pypi/raven/
+Source0: http://pypi.python.org/packages/source/r/raven/raven-%{version}.tar.gz
+BuildArch: noarch
+
+BuildRequires: python2-devel
+BuildRequires: python-setuptools
+
+%if 0%{?with_python3}
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+%endif # with_python3
+
+%description
+Raven is a Python client for Sentry <http://getsentry.com>. It provides full
+out-of-the-box support for many of the popular frameworks, including Django,
+and Flask. Raven also includes drop-in support for any WSGI-compatible web
+application.
+
+%if 0%{?with_python3}
+%package -n python3-raven
+Summary: Python client for Sentry
+Group: Development/Libraries
+
+%description -n python3-raven
+Raven is a Python client for Sentry <http://getsentry.com>. It provides full
+out-of-the-box support for many of the popular frameworks, including Django,
+and Flask. Raven also includes drop-in support for any WSGI-compatible web
+application.
+%endif # with_python3
+
+%prep
+%setup -q -n raven-%{version}
+
+%if 0%{?with_python3}
+rm -rf %{py3dir}
+cp -a . %{py3dir}
+%endif # with_python3
+
+%build
+%{__python2} setup.py build
+
+%if 0%{?with_python3}
+pushd %{py3dir}
+%{__python3} setup.py build
+popd
+%endif # with_python3
+
+%install
+%if 0%{?with_python3}
+pushd %{py3dir}
+%{__python3} setup.py install --skip-build --root=%{buildroot}
+mv %{buildroot}/%{_bindir}/raven %{buildroot}/%{_bindir}/python3-raven
+popd
+%endif # with_python3
+
+%{__python2} setup.py install --skip-build --root=%{buildroot}
+
+%files
+%doc LICENSE README.rst
+%{_bindir}/raven
+%{python2_sitelib}/*
+
+%if 0%{?with_python3}
+%files -n python3-raven
+%doc LICENSE README.rst
+%{_bindir}/python3-raven
+%{python3_sitelib}/*
+%endif # with_python3
+
+%changelog
+* Wed Oct 16 2013 Xavier Queralt <xqueralt at redhat.com> - 3.5.0-2
+- Don't build python3 package in RHEL
+- Define the python2_sitelib macro if it is not defined
+
+* Tue Oct 15 2013 Xavier Queralt <xqueralt at redhat.com> - 3.5.0-1
+- initial package
diff --git a/sources b/sources
index e69de29..9905566 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+7d7b67512c766da9229d7d8285a318fb raven-3.5.0.tar.gz
More information about the scm-commits
mailing list