summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-05-05 07:22:22 +0000
committerCoprDistGit <infra@openeuler.org>2023-05-05 07:22:22 +0000
commitbcec0d3c308830cde1dc7f11262787ee84ae876c (patch)
tree89cad5552ce498d530090975f9ac5364a116319e
parent1d121e22bcb8e513657786c55ea419ee78ffb20d (diff)
automatic import of python-django-aliveopeneuler20.03
-rw-r--r--.gitignore1
-rw-r--r--python-django-alive.spec91
-rw-r--r--sources1
3 files changed, 93 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..497a202 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/django-alive-1.2.1.tar.gz
diff --git a/python-django-alive.spec b/python-django-alive.spec
new file mode 100644
index 0000000..1669745
--- /dev/null
+++ b/python-django-alive.spec
@@ -0,0 +1,91 @@
+%global _empty_manifest_terminate_build 0
+Name: python-django-alive
+Version: 1.2.1
+Release: 1
+Summary: Healtchecks for Django
+License: MIT
+URL: https://github.com/lincolnloop/django-alive/
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/15/25/4aac92b2d452a93a2aa8d976cd616d2266364794e10e3f7f6e35b1973267/django-alive-1.2.1.tar.gz
+BuildArch: noarch
+
+Requires: python3-django
+Requires: python3-pytest
+Requires: python3-pytest-cov
+Requires: python3-pytest-django
+
+%description
+```python
+def check_database(query="SELECT 1", database="default")
+```
+Run a SQL query against the specified database.
+#### Parameters:
+- `query` (`str`): SQL to execute
+
+%package -n python3-django-alive
+Summary: Healtchecks for Django
+Provides: python-django-alive
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-django-alive
+```python
+def check_database(query="SELECT 1", database="default")
+```
+Run a SQL query against the specified database.
+#### Parameters:
+- `query` (`str`): SQL to execute
+
+%package help
+Summary: Development documents and examples for django-alive
+Provides: python3-django-alive-doc
+%description help
+```python
+def check_database(query="SELECT 1", database="default")
+```
+Run a SQL query against the specified database.
+#### Parameters:
+- `query` (`str`): SQL to execute
+
+%prep
+%autosetup -n django-alive-1.2.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-alive -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Fri May 05 2023 Python_Bot <Python_Bot@openeuler.org> - 1.2.1-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..1b43da4
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+edb9635e58043f82ac256557ce86aad5 django-alive-1.2.1.tar.gz