diff options
Diffstat (limited to 'python-elastic-apm.spec')
| -rw-r--r-- | python-elastic-apm.spec | 93 |
1 files changed, 93 insertions, 0 deletions
diff --git a/python-elastic-apm.spec b/python-elastic-apm.spec new file mode 100644 index 0000000..9c46573 --- /dev/null +++ b/python-elastic-apm.spec @@ -0,0 +1,93 @@ +%global _empty_manifest_terminate_build 0 +Name: python-elastic-apm +Version: 6.15.1 +Release: 1 +Summary: The official Python module for Elastic APM +License: BSD +URL: https://github.com/elastic/apm-agent-python +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/55/91/006dd51577dd8b0a84730d1116d862e0c8bc9c0681772f17baa0351a1827/elastic-apm-6.15.1.tar.gz +BuildArch: noarch + + +%description +This is the official Python module for Elastic APM. +It provides full out-of-the-box support for many of the popular frameworks, +including Django, and Flask. Elastic APM is also easy to adapt for most +WSGI-compatible web applications via `custom integrations`_. +Your application doesn't live on the web? No problem! Elastic APM is easy to use in +any Python application. +Read the documentation_, including instructions on `running the tests locally`_. +If you're interested in contributing, `start here!`_ + +%package -n python3-elastic-apm +Summary: The official Python module for Elastic APM +Provides: python-elastic-apm +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-elastic-apm +This is the official Python module for Elastic APM. +It provides full out-of-the-box support for many of the popular frameworks, +including Django, and Flask. Elastic APM is also easy to adapt for most +WSGI-compatible web applications via `custom integrations`_. +Your application doesn't live on the web? No problem! Elastic APM is easy to use in +any Python application. +Read the documentation_, including instructions on `running the tests locally`_. +If you're interested in contributing, `start here!`_ + +%package help +Summary: Development documents and examples for elastic-apm +Provides: python3-elastic-apm-doc +%description help +This is the official Python module for Elastic APM. +It provides full out-of-the-box support for many of the popular frameworks, +including Django, and Flask. Elastic APM is also easy to adapt for most +WSGI-compatible web applications via `custom integrations`_. +Your application doesn't live on the web? No problem! Elastic APM is easy to use in +any Python application. +Read the documentation_, including instructions on `running the tests locally`_. +If you're interested in contributing, `start here!`_ + +%prep +%autosetup -n elastic-apm-6.15.1 + +%build +%py3_build + +%install +%py3_install +install -d -m755 %{buildroot}/%{_pkgdocdir} +if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi +if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi +if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi +if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi +pushd %{buildroot} +if [ -d usr/lib ]; then + find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/lib64 ]; then + find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/bin ]; then + find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/sbin ]; then + find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst +fi +touch doclist.lst +if [ -d usr/share/man ]; then + find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst +fi +popd +mv %{buildroot}/filelist.lst . +mv %{buildroot}/doclist.lst . + +%files -n python3-elastic-apm -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Mon Apr 10 2023 Python_Bot <Python_Bot@openeuler.org> - 6.15.1-1 +- Package Spec generated |
