summaryrefslogtreecommitdiff
path: root/python-pytest-datafiles.spec
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-03-09 15:59:47 +0000
committerCoprDistGit <infra@openeuler.org>2023-03-09 15:59:47 +0000
commite55d8db232837e21126dd81b7d46fcc0b51c44d7 (patch)
tree106d2c9ddb22ba3b50d075fd14d6a7f26442a4bd /python-pytest-datafiles.spec
parent90bfd63ba32d0cb2b0dead8a88f331d3b6efac51 (diff)
automatic import of python-pytest-datafiles
Diffstat (limited to 'python-pytest-datafiles.spec')
-rw-r--r--python-pytest-datafiles.spec73
1 files changed, 73 insertions, 0 deletions
diff --git a/python-pytest-datafiles.spec b/python-pytest-datafiles.spec
new file mode 100644
index 0000000..f04fce4
--- /dev/null
+++ b/python-pytest-datafiles.spec
@@ -0,0 +1,73 @@
+%global _empty_manifest_terminate_build 0
+Name: python-pytest-datafiles
+Version: 3.0.0
+Release: 1
+Summary: py.test plugin to create a 'tmp_path' containing predefined files/directories.
+License: MIT
+URL: https://github.com/omarkohl/pytest-datafiles
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/e7/1d/723fa4be3dec5384eb332888c1a22b4eeff848f9121efdded6859420902a/pytest-datafiles-3.0.0.tar.gz
+BuildArch: noarch
+
+Requires: python3-pytest
+
+%description
+
+
+%package -n python3-pytest-datafiles
+Summary: py.test plugin to create a 'tmp_path' containing predefined files/directories.
+Provides: python-pytest-datafiles
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-pytest-datafiles
+
+
+%package help
+Summary: Development documents and examples for pytest-datafiles
+Provides: python3-pytest-datafiles-doc
+%description help
+
+
+%prep
+%autosetup -n pytest-datafiles-3.0.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-pytest-datafiles -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Thu Mar 09 2023 Python_Bot <Python_Bot@openeuler.org> - 3.0.0-1
+- Package Spec generated