diff --git a/README.en.md b/README.en.md index 95d8204efa1d2f796eb877813fd012b9d382583d..25db0a1333a47da1c1f8c0d85f07b106d7ec95fb 100644 --- a/README.en.md +++ b/README.en.md @@ -1,7 +1,7 @@ # python-raven #### Description -{**When you're done, you can delete the content in this README and update the file with details for others getting started with your repository**} +python-raven #### Software Architecture Software architecture description diff --git a/README.md b/README.md index 351e24311e8592638f11a7ca19f62154a164c310..b35ff65afbac9cc3a5a9d74b64b4f59d6b805e04 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,7 @@ # python-raven #### 介绍 -{**以下是 Gitee 平台说明,您可以替换此简介** -Gitee 是 OSCHINA 推出的基于 Git 的代码托管平台(同时支持 SVN)。专为开发者提供稳定、高效、安全的云端软件开发协作平台 -无论是个人、团队、或是企业,都能够用 Gitee 实现代码托管、项目管理、协作开发。企业项目请看 [https://gitee.com/enterprises](https://gitee.com/enterprises)} +python-raven #### 软件架构 软件架构说明 diff --git a/python-raven.spec b/python-raven.spec new file mode 100644 index 0000000000000000000000000000000000000000..8cad7e03fdef0d61bc39b1c097c34b06ddebfe22 --- /dev/null +++ b/python-raven.spec @@ -0,0 +1,71 @@ +%define anolis_release 1 + +Name: python-raven + +Version: 6.10.0 +Release: %{anolis_release}%{?dist} +Summary: Python client for Sentry + +License: BSD +URL: https://pypi.python.org/pypi/raven/ +Source0: https://files.pythonhosted.org/packages/source/r/raven/raven-%{version}.tar.gz +Patch0: raven-use-system-cacert.patch +BuildArch: noarch + +BuildRequires: python3-devel +BuildRequires: python3-setuptools + +%global _description\ +Raven is a Python client for Sentry . 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. + +%description %_description + +%package -n python3-raven +Summary: Python client for Sentry +%{?python_provide:%python_provide python3-raven} + +%description -n python3-raven +Raven is a Python client for Sentry . 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. + +%{?python_extras_subpkg:%python_extras_subpkg -n python3-raven -i %{python3_sitelib}/*.egg-info flask} + +%package -n python3-raven-doc +Summary: doc files for python3-raven +Requires: python3-raven = %{version}-%{release} + +%description -n python3-raven-doc +doc files for python3-raven + +%prep +%setup -q -n raven-%{version} +%patch0 -p1 + +rm raven/data/cacert.pem +rmdir raven/data + +%build +%{__python3} setup.py build + +%install +%{__python3} setup.py install --skip-build --root=%{buildroot} + +%check +#Disable check for now because of missing dependency pytest-timeout + +%files -n python3-raven +%license LICENSE +%{_bindir}/raven +%{python3_sitelib}/* + +%files -n python3-raven-doc +%doc README.rst + +%changelog +* Tue Sep 05 2023 mgb01105731 - 6.10.0-1 +- Init upstream from version 6.10.0 diff --git a/raven-6.10.0.tar.gz b/raven-6.10.0.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..b51ef5fa5b7f8b2623ba14791209d824bdd30391 Binary files /dev/null and b/raven-6.10.0.tar.gz differ diff --git a/raven-use-system-cacert.patch b/raven-use-system-cacert.patch new file mode 100644 index 0000000000000000000000000000000000000000..0a672c41271e2839a7b9025b4b46de12a12566f3 --- /dev/null +++ b/raven-use-system-cacert.patch @@ -0,0 +1,10 @@ +diff --git a/raven/conf/defaults.py b/raven/conf/defaults.py +index 073e01a..32c81b8 100644 +--- a/raven/conf/defaults.py ++++ b/raven/conf/defaults.py +@@ -47,4 +47,4 @@ try: + import certifi + CA_BUNDLE = certifi.where() + except ImportError: +- CA_BUNDLE = os.path.join(ROOT, 'data', 'cacert.pem') ++ CA_BUNDLE = '/etc/pki/tls/certs/ca-bundle.crt'