summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-04-11 16:20:39 +0000
committerCoprDistGit <infra@openeuler.org>2023-04-11 16:20:39 +0000
commit64b3c4d744273f33679b44d3c3327457ea78cfb0 (patch)
tree2658298aa4309e060b54ca6b4cfa301fa2bc8cd6
parent7396f936b213eb1e1eaa1f342e86f0877538a6cf (diff)
automatic import of python-umongo
-rw-r--r--.gitignore1
-rw-r--r--python-umongo.spec77
-rw-r--r--sources1
3 files changed, 79 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..0a3b1bb 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/umongo-3.1.0.tar.gz
diff --git a/python-umongo.spec b/python-umongo.spec
new file mode 100644
index 0000000..bf497f8
--- /dev/null
+++ b/python-umongo.spec
@@ -0,0 +1,77 @@
+%global _empty_manifest_terminate_build 0
+Name: python-umongo
+Version: 3.1.0
+Release: 1
+Summary: sync/async MongoDB ODM, yes.
+License: MIT
+URL: https://github.com/touilleMan/umongo
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/b5/5d/bf978380cd25d837c8def3e1841b4f4f997037be52c9de81792fcee96dac/umongo-3.1.0.tar.gz
+BuildArch: noarch
+
+Requires: python3-marshmallow
+Requires: python3-pymongo
+Requires: python3-mongomock
+Requires: python3-motor
+Requires: python3-txmongo
+
+%description
+
+
+%package -n python3-umongo
+Summary: sync/async MongoDB ODM, yes.
+Provides: python-umongo
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-umongo
+
+
+%package help
+Summary: Development documents and examples for umongo
+Provides: python3-umongo-doc
+%description help
+
+
+%prep
+%autosetup -n umongo-3.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-umongo -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Tue Apr 11 2023 Python_Bot <Python_Bot@openeuler.org> - 3.1.0-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..e0eaf27
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+028652a4b586acd7558d3a9e77d1b686 umongo-3.1.0.tar.gz