diff options
author | CoprDistGit <copr-devel@lists.fedorahosted.org> | 2023-03-07 13:19:41 +0000 |
---|---|---|
committer | CoprDistGit <copr-devel@lists.fedorahosted.org> | 2023-03-07 13:19:41 +0000 |
commit | a2c45cc7d9efeb1676d0c102f2300275e2b75efa (patch) | |
tree | c8604342404693cf31573da59dc4149c45f1e175 | |
parent | d879fc560b8944ecb214cde30ad373d49be0e99e (diff) |
automatic import of python-ansicolor
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-ansicolor.spec | 72 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 74 insertions, 0 deletions
@@ -0,0 +1 @@ +/ansicolor-0.3.2.tar.gz diff --git a/python-ansicolor.spec b/python-ansicolor.spec new file mode 100644 index 0000000..0350b33 --- /dev/null +++ b/python-ansicolor.spec @@ -0,0 +1,72 @@ +%global _empty_manifest_terminate_build 0 +Name: python-ansicolor +Version: 0.3.2 +Release: 1 +Summary: A library to produce ansi color output and colored highlighting and diffing +License: Apache Software License +URL: https://github.com/numerodix/ansicolor +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/79/74/630817c7eb1289a1412fcc4faeca74a69760d9c9b0db94fc09c91978a6ac/ansicolor-0.3.2.tar.gz +BuildArch: noarch + + +%description + + +%package -n python3-ansicolor +Summary: A library to produce ansi color output and colored highlighting and diffing +Provides: python-ansicolor +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-ansicolor + + +%package help +Summary: Development documents and examples for ansicolor +Provides: python3-ansicolor-doc +%description help + + +%prep +%autosetup -n ansicolor-0.3.2 + +%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-ansicolor -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Tue Mar 07 2023 Python_Bot <Python_Bot@openeuler.org> - 0.3.2-1 +- Package Spec generated @@ -0,0 +1 @@ +8b6a023190e7cdaa8c07b77df6d72008 ansicolor-0.3.2.tar.gz |