summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-06-20 05:29:51 +0000
committerCoprDistGit <infra@openeuler.org>2023-06-20 05:29:51 +0000
commit64c0740be599b4e3bbb54a0320bd435ebacfcb90 (patch)
treefb9ca1fe4d2626b4b4c439ba75a8c1b8fb208238
parentce3236745b6429adfde7a0f63282d4ccf703c283 (diff)
automatic import of python-dophon-dbopeneuler20.03
-rw-r--r--.gitignore1
-rw-r--r--python-dophon-db.spec79
-rw-r--r--sources1
3 files changed, 81 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..2f5373c 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/dophon-db-1.3.1.post1.tar.gz
diff --git a/python-dophon-db.spec b/python-dophon-db.spec
new file mode 100644
index 0000000..fe552bb
--- /dev/null
+++ b/python-dophon-db.spec
@@ -0,0 +1,79 @@
+%global _empty_manifest_terminate_build 0
+Name: python-dophon-db
+Version: 1.3.1.post1
+Release: 1
+Summary: dophon database module
+License: Apache 2.0
+URL: https://pypi.org/project/dophon-db/
+Source0: https://mirrors.aliyun.com/pypi/web/packages/12/61/ef18a228255b181ce9d255d5c9d9de3250328ebb68cb9f1035149fb4b648/dophon-db-1.3.1.post1.tar.gz
+BuildArch: noarch
+
+Requires: python3-dophon-logger
+Requires: python3-dophon-properties
+Requires: python3-urllib3
+Requires: python3-schedule
+Requires: python3-dbutils
+Requires: python3-cryptography
+Requires: python3-pymysql
+
+%description
+
+
+%package -n python3-dophon-db
+Summary: dophon database module
+Provides: python-dophon-db
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-dophon-db
+
+
+%package help
+Summary: Development documents and examples for dophon-db
+Provides: python3-dophon-db-doc
+%description help
+
+
+%prep
+%autosetup -n dophon-db-1.3.1.post1
+
+%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-dophon-db -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Tue Jun 20 2023 Python_Bot <Python_Bot@openeuler.org> - 1.3.1.post1-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..6431664
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+90e142734b2c915adaf2778074132c88 dophon-db-1.3.1.post1.tar.gz