summaryrefslogtreecommitdiff
path: root/python-pytest-responsemock.spec
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-05-05 13:00:28 +0000
committerCoprDistGit <infra@openeuler.org>2023-05-05 13:00:28 +0000
commit0526a7c5fe56cb9b2a19eb4cf7f611a3d6261cf3 (patch)
tree05d1f8b092ccc709f9a06e36923da9f3e3222977 /python-pytest-responsemock.spec
parentd7ecbe6e3b1595b61184ac7ad3243481a7e0f84b (diff)
automatic import of python-pytest-responsemockopeneuler20.03
Diffstat (limited to 'python-pytest-responsemock.spec')
-rw-r--r--python-pytest-responsemock.spec75
1 files changed, 75 insertions, 0 deletions
diff --git a/python-pytest-responsemock.spec b/python-pytest-responsemock.spec
new file mode 100644
index 0000000..16495d3
--- /dev/null
+++ b/python-pytest-responsemock.spec
@@ -0,0 +1,75 @@
+%global _empty_manifest_terminate_build 0
+Name: python-pytest-responsemock
+Version: 1.1.1
+Release: 1
+Summary: Simplified requests calls mocking for pytest
+License: BSD 3-Clause License
+URL: https://github.com/idlesign/pytest-responsemock
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/a2/10/e9ad385e041aa755f3ec16b91b72a7485bc3f900b087408ae176a7022241/pytest-responsemock-1.1.1.tar.gz
+BuildArch: noarch
+
+
+%description
+https://github.com/idlesign/pytest-responsemock
+|release| |lic| |coverage|
+
+%package -n python3-pytest-responsemock
+Summary: Simplified requests calls mocking for pytest
+Provides: python-pytest-responsemock
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-pytest-responsemock
+https://github.com/idlesign/pytest-responsemock
+|release| |lic| |coverage|
+
+%package help
+Summary: Development documents and examples for pytest-responsemock
+Provides: python3-pytest-responsemock-doc
+%description help
+https://github.com/idlesign/pytest-responsemock
+|release| |lic| |coverage|
+
+%prep
+%autosetup -n pytest-responsemock-1.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-responsemock -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Fri May 05 2023 Python_Bot <Python_Bot@openeuler.org> - 1.1.1-1
+- Package Spec generated