diff options
| author | CoprDistGit <infra@openeuler.org> | 2023-05-18 05:19:01 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2023-05-18 05:19:01 +0000 |
| commit | a9bda7e89e2c37c73f4084646ff61fe71ec58ef8 (patch) | |
| tree | 6639e8aef47409ee1771dfcb9f96cb6c63db672d | |
| parent | 28a28d41f81f30833a8d4660db5462f0a260c54b (diff) | |
automatic import of python-pytest-mongo
| -rw-r--r-- | .gitignore | 1 | ||||
| -rw-r--r-- | python-pytest-mongo.spec | 78 | ||||
| -rw-r--r-- | sources | 1 |
3 files changed, 80 insertions, 0 deletions
@@ -0,0 +1 @@ +/pytest-mongo-2.1.1.tar.gz diff --git a/python-pytest-mongo.spec b/python-pytest-mongo.spec new file mode 100644 index 0000000..5dff2a4 --- /dev/null +++ b/python-pytest-mongo.spec @@ -0,0 +1,78 @@ +%global _empty_manifest_terminate_build 0 +Name: python-pytest-mongo +Version: 2.1.1 +Release: 1 +Summary: MongoDB process and client fixtures plugin for Pytest. +License: LGPLv3+ +URL: https://github.com/ClearcodeHQ/pytest-mongo +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/19/3e/4fc92a482aa0bf4598edea48098b7456bbfb6c323043b6913184638015ac/pytest-mongo-2.1.1.tar.gz +BuildArch: noarch + +Requires: python3-pytest +Requires: python3-port-for +Requires: python3-mirakuru +Requires: python3-redis +Requires: python3-pytest-cov +Requires: python3-pytest-xdist + +%description + + +%package -n python3-pytest-mongo +Summary: MongoDB process and client fixtures plugin for Pytest. +Provides: python-pytest-mongo +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-pytest-mongo + + +%package help +Summary: Development documents and examples for pytest-mongo +Provides: python3-pytest-mongo-doc +%description help + + +%prep +%autosetup -n pytest-mongo-2.1.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-pytest-mongo -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Thu May 18 2023 Python_Bot <Python_Bot@openeuler.org> - 2.1.1-1 +- Package Spec generated @@ -0,0 +1 @@ +58233d9bcc97f91f25fe71c0385f7f32 pytest-mongo-2.1.1.tar.gz |
