summaryrefslogtreecommitdiff
path: root/python-pytest-approvaltests.spec
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-05-05 10:08:14 +0000
committerCoprDistGit <infra@openeuler.org>2023-05-05 10:08:14 +0000
commit98bc0c9ad6f51751cb599618b3afa616ea83eda0 (patch)
treebb54048ec64c8620c21fa0bf54c74310d3c6520d /python-pytest-approvaltests.spec
parent65f9754e8ccfb406012b88acb64041eabc0779dc (diff)
automatic import of python-pytest-approvaltestsopeneuler20.03
Diffstat (limited to 'python-pytest-approvaltests.spec')
-rw-r--r--python-pytest-approvaltests.spec74
1 files changed, 74 insertions, 0 deletions
diff --git a/python-pytest-approvaltests.spec b/python-pytest-approvaltests.spec
new file mode 100644
index 0000000..8dc7555
--- /dev/null
+++ b/python-pytest-approvaltests.spec
@@ -0,0 +1,74 @@
+%global _empty_manifest_terminate_build 0
+Name: python-pytest-approvaltests
+Version: 0.2.4
+Release: 1
+Summary: A plugin to use approvaltests with pytest
+License: MIT
+URL: https://github.com/approvals/pytest-approvaltests
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/0c/d6/a47683426ac614b7588fcf0c802b119668c429b82175c2cbeb576d0ca99a/pytest-approvaltests-0.2.4.tar.gz
+BuildArch: noarch
+
+Requires: python3-pytest
+Requires: python3-approvaltests
+
+%description
+
+
+%package -n python3-pytest-approvaltests
+Summary: A plugin to use approvaltests with pytest
+Provides: python-pytest-approvaltests
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-pytest-approvaltests
+
+
+%package help
+Summary: Development documents and examples for pytest-approvaltests
+Provides: python3-pytest-approvaltests-doc
+%description help
+
+
+%prep
+%autosetup -n pytest-approvaltests-0.2.4
+
+%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-approvaltests -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Fri May 05 2023 Python_Bot <Python_Bot@openeuler.org> - 0.2.4-1
+- Package Spec generated