summaryrefslogtreecommitdiff
path: root/python-pytest-toolbox.spec
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-03-09 16:06:22 +0000
committerCoprDistGit <infra@openeuler.org>2023-03-09 16:06:22 +0000
commitb2985077b1ace5f525c3d079510af24fcfa82796 (patch)
tree107ce70950aa1c877bdf86149a0aa11ec73b3733 /python-pytest-toolbox.spec
parentc2462cf0301bfd0829f528451636e9ccab68eabe (diff)
automatic import of python-pytest-toolbox
Diffstat (limited to 'python-pytest-toolbox.spec')
-rw-r--r--python-pytest-toolbox.spec79
1 files changed, 79 insertions, 0 deletions
diff --git a/python-pytest-toolbox.spec b/python-pytest-toolbox.spec
new file mode 100644
index 0000000..7920d4f
--- /dev/null
+++ b/python-pytest-toolbox.spec
@@ -0,0 +1,79 @@
+%global _empty_manifest_terminate_build 0
+Name: python-pytest-toolbox
+Version: 0.4
+Release: 1
+Summary: Numerous useful plugins for pytest.
+License: MIT
+URL: https://github.com/samuelcolvin/pytest-toolbox
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/75/63/ffc87832881f6d0c5899140a4e3d379f5f464f6185ac48c21a2f48662c11/pytest-toolbox-0.4.tar.gz
+BuildArch: noarch
+
+Requires: python3-pytest
+
+%description
+|Build Status| |codecov.io| |PyPI Status| |license|
+Copyright (C) 2016 Samuel Colvin
+Numerous useful plugins for pytest.
+
+%package -n python3-pytest-toolbox
+Summary: Numerous useful plugins for pytest.
+Provides: python-pytest-toolbox
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-pytest-toolbox
+|Build Status| |codecov.io| |PyPI Status| |license|
+Copyright (C) 2016 Samuel Colvin
+Numerous useful plugins for pytest.
+
+%package help
+Summary: Development documents and examples for pytest-toolbox
+Provides: python3-pytest-toolbox-doc
+%description help
+|Build Status| |codecov.io| |PyPI Status| |license|
+Copyright (C) 2016 Samuel Colvin
+Numerous useful plugins for pytest.
+
+%prep
+%autosetup -n pytest-toolbox-0.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-toolbox -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Thu Mar 09 2023 Python_Bot <Python_Bot@openeuler.org> - 0.4-1
+- Package Spec generated