diff options
author | CoprDistGit <infra@openeuler.org> | 2023-04-12 04:14:25 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-04-12 04:14:25 +0000 |
commit | 112c7efc7aef32a2f2aed14860e68330ef0bab76 (patch) | |
tree | c31e5ab3a12b68c90506d382c5f99baca0f073be | |
parent | f31267abfc2e9af49cba9ab21ac1c2e59b56e1e3 (diff) |
automatic import of python-django-opentracing
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-django-opentracing.spec | 82 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 84 insertions, 0 deletions
@@ -0,0 +1 @@ +/django_opentracing-1.1.0.tar.gz diff --git a/python-django-opentracing.spec b/python-django-opentracing.spec new file mode 100644 index 0000000..d1a49e5 --- /dev/null +++ b/python-django-opentracing.spec @@ -0,0 +1,82 @@ +%global _empty_manifest_terminate_build 0 +Name: python-django-opentracing +Version: 1.1.0 +Release: 1 +Summary: OpenTracing support for Django applications +License: BSD +URL: https://github.com/opentracing-contrib/python-django/ +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/1d/cf/fdf089df0636604190501b585ba800beb0b3c355f0bc1ea4286210e7d447/django_opentracing-1.1.0.tar.gz +BuildArch: noarch + +Requires: python3-django +Requires: python3-opentracing +Requires: python3-six +Requires: python3-coverage +Requires: python3-flake8 +Requires: python3-flake8-quotes +Requires: python3-mock + +%description +Run the following command:: + $ pip install django_opentracing + +%package -n python3-django-opentracing +Summary: OpenTracing support for Django applications +Provides: python-django-opentracing +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-django-opentracing +Run the following command:: + $ pip install django_opentracing + +%package help +Summary: Development documents and examples for django-opentracing +Provides: python3-django-opentracing-doc +%description help +Run the following command:: + $ pip install django_opentracing + +%prep +%autosetup -n django-opentracing-1.1.0 + +%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-django-opentracing -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Wed Apr 12 2023 Python_Bot <Python_Bot@openeuler.org> - 1.1.0-1 +- Package Spec generated @@ -0,0 +1 @@ +9c6a3e35a78901095227c99952f91380 django_opentracing-1.1.0.tar.gz |