diff options
author | CoprDistGit <infra@openeuler.org> | 2023-05-31 06:36:14 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-05-31 06:36:14 +0000 |
commit | a6972d27d3ccd431e9fefb48d1d828493d8b53d9 (patch) | |
tree | 65afa0953734000b701d18a72fb532f0e9f68e40 | |
parent | 247046255a0a3928906ec927a3c2892a9cd6d32d (diff) |
automatic import of python-os-tests
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-os-tests.spec | 76 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 78 insertions, 0 deletions
@@ -0,0 +1 @@ +/os-tests-0.2.1.tar.gz diff --git a/python-os-tests.spec b/python-os-tests.spec new file mode 100644 index 0000000..d530c70 --- /dev/null +++ b/python-os-tests.spec @@ -0,0 +1,76 @@ +%global _empty_manifest_terminate_build 0 +Name: python-os-tests +Version: 0.2.1 +Release: 1 +Summary: Lightweight, portable and customer centric tests collection for Linux OS +License: GPLv3+ +URL: https://github.com/virt-s1/os-tests +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/4a/3e/9791734d131a05410af54ea8c7091a2ba626f535f4aa9d1166e51a836de0/os-tests-0.2.1.tar.gz +BuildArch: noarch + +Requires: python3-PyYAML +Requires: python3-Jinja2 +Requires: python3-tipset +Requires: python3-markupsafe + +%description +summary in html: /tmp/os_tests_result/sum.html + +%package -n python3-os-tests +Summary: Lightweight, portable and customer centric tests collection for Linux OS +Provides: python-os-tests +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-os-tests +summary in html: /tmp/os_tests_result/sum.html + +%package help +Summary: Development documents and examples for os-tests +Provides: python3-os-tests-doc +%description help +summary in html: /tmp/os_tests_result/sum.html + +%prep +%autosetup -n os-tests-0.2.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-os-tests -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Wed May 31 2023 Python_Bot <Python_Bot@openeuler.org> - 0.2.1-1 +- Package Spec generated @@ -0,0 +1 @@ +70248357c43c10130b036a8c24b38fc6 os-tests-0.2.1.tar.gz |