summaryrefslogtreecommitdiff
path: root/python-django-db-geventpool.spec
diff options
context:
space:
mode:
Diffstat (limited to 'python-django-db-geventpool.spec')
-rw-r--r--python-django-db-geventpool.spec77
1 files changed, 77 insertions, 0 deletions
diff --git a/python-django-db-geventpool.spec b/python-django-db-geventpool.spec
new file mode 100644
index 0000000..b674894
--- /dev/null
+++ b/python-django-db-geventpool.spec
@@ -0,0 +1,77 @@
+%global _empty_manifest_terminate_build 0
+Name: python-django-db-geventpool
+Version: 4.0.1
+Release: 1
+Summary: Add a DB connection pool using gevent to django
+License: Apache 2.0
+URL: https://github.com/jneight/django-db-geventpool
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/ae/7a/2a293de750d389716dd0da4ce6ca83b47f1bd38bf73a06dc43da2bb46870/django-db-geventpool-4.0.1.tar.gz
+BuildArch: noarch
+
+Requires: python3-django
+Requires: python3-psycogreen
+
+%description
+Another DB pool using gevent for PostgreSQL DB.
+Python 3 is supported, but if `gevent` is not installed successfully it will use fallback to `eventlet`.
+
+%package -n python3-django-db-geventpool
+Summary: Add a DB connection pool using gevent to django
+Provides: python-django-db-geventpool
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-django-db-geventpool
+Another DB pool using gevent for PostgreSQL DB.
+Python 3 is supported, but if `gevent` is not installed successfully it will use fallback to `eventlet`.
+
+%package help
+Summary: Development documents and examples for django-db-geventpool
+Provides: python3-django-db-geventpool-doc
+%description help
+Another DB pool using gevent for PostgreSQL DB.
+Python 3 is supported, but if `gevent` is not installed successfully it will use fallback to `eventlet`.
+
+%prep
+%autosetup -n django-db-geventpool-4.0.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-django-db-geventpool -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Tue Apr 11 2023 Python_Bot <Python_Bot@openeuler.org> - 4.0.1-1
+- Package Spec generated