diff options
| author | CoprDistGit <infra@openeuler.org> | 2023-04-11 15:09:49 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2023-04-11 15:09:49 +0000 |
| commit | d19a42f89578323e0bb525bd31a2692b25a2ef3c (patch) | |
| tree | 7388254e9801bb21fbb3e50f2663981849f4400c | |
| parent | 02fca81d94b3091ccf7205e087f14bb342b5b743 (diff) | |
automatic import of python-green
| -rw-r--r-- | .gitignore | 1 | ||||
| -rw-r--r-- | python-green.spec | 72 | ||||
| -rw-r--r-- | sources | 1 |
3 files changed, 74 insertions, 0 deletions
@@ -0,0 +1 @@ +/green-3.4.3.tar.gz diff --git a/python-green.spec b/python-green.spec new file mode 100644 index 0000000..26e5089 --- /dev/null +++ b/python-green.spec @@ -0,0 +1,72 @@ +%global _empty_manifest_terminate_build 0 +Name: python-green +Version: 3.4.3 +Release: 1 +Summary: Green is a clean, colorful, fast python test runner. +License: MIT +URL: https://github.com/CleanCut/green +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/75/01/3828a1bb28ba0f6d07d2cb91429a7f5d8f01e50884447078b9c9f7a9d97e/green-3.4.3.tar.gz +BuildArch: noarch + + +%description +Green is a clean, colorful, fast python test runner. + +%package -n python3-green +Summary: Green is a clean, colorful, fast python test runner. +Provides: python-green +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-green +Green is a clean, colorful, fast python test runner. + +%package help +Summary: Development documents and examples for green +Provides: python3-green-doc +%description help +Green is a clean, colorful, fast python test runner. + +%prep +%autosetup -n green-3.4.3 + +%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-green -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Tue Apr 11 2023 Python_Bot <Python_Bot@openeuler.org> - 3.4.3-1 +- Package Spec generated @@ -0,0 +1 @@ +f8196c672db95257c3cf707c032c427a green-3.4.3.tar.gz |
