diff options
| author | CoprDistGit <infra@openeuler.org> | 2023-04-10 14:56:33 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2023-04-10 14:56:33 +0000 |
| commit | f2291f4c3eb289f3a7eeacb1b086eccbb928fdbd (patch) | |
| tree | 44b3e73be3ab59f9cbeb566bc1b6798d22678782 /python-html-testrunner.spec | |
| parent | 8f2070139b9e26afd79dda86e3b7accd75cea35b (diff) | |
automatic import of python-html-testrunner
Diffstat (limited to 'python-html-testrunner.spec')
| -rw-r--r-- | python-html-testrunner.spec | 73 |
1 files changed, 73 insertions, 0 deletions
diff --git a/python-html-testrunner.spec b/python-html-testrunner.spec new file mode 100644 index 0000000..e420ca8 --- /dev/null +++ b/python-html-testrunner.spec @@ -0,0 +1,73 @@ +%global _empty_manifest_terminate_build 0 +Name: python-html-testRunner +Version: 1.2.1 +Release: 1 +Summary: A Test Runner in python, for Human Readable HTML Reports +License: MIT license +URL: https://github.com/oldani/HtmlTestRunner +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/5d/5b/7844d6e6e9d072f38666fb332fc85aaa7ebed99b2f792c724d8a85282254/html-testRunner-1.2.1.tar.gz +BuildArch: noarch + +Requires: python3-Jinja2 + +%description + + +%package -n python3-html-testRunner +Summary: A Test Runner in python, for Human Readable HTML Reports +Provides: python-html-testRunner +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-html-testRunner + + +%package help +Summary: Development documents and examples for html-testRunner +Provides: python3-html-testRunner-doc +%description help + + +%prep +%autosetup -n html-testRunner-1.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-html-testRunner -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Mon Apr 10 2023 Python_Bot <Python_Bot@openeuler.org> - 1.2.1-1 +- Package Spec generated |
