diff options
author | CoprDistGit <infra@openeuler.org> | 2023-05-05 13:19:25 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-05-05 13:19:25 +0000 |
commit | 6be7085eb36050db5b8087e1df8da489ea0a7500 (patch) | |
tree | 634a5dc448465bf25fddf1bd545364d5970af856 | |
parent | 89c7ba4543d6650f4cd2446aa5187effa68e1dde (diff) |
automatic import of python-aafigureopeneuler20.03
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-aafigure.spec | 87 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 89 insertions, 0 deletions
@@ -0,0 +1 @@ +/aafigure-0.6.tar.gz diff --git a/python-aafigure.spec b/python-aafigure.spec new file mode 100644 index 0000000..25478e4 --- /dev/null +++ b/python-aafigure.spec @@ -0,0 +1,87 @@ +%global _empty_manifest_terminate_build 0 +Name: python-aafigure +Version: 0.6 +Release: 1 +Summary: ASCII art to image converter +License: BSD +URL: http://launchpad.net/aafigure +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/f3/13/8516bd4dd1520c02797e4544bfac7a03521b28bb9404588197af2803ad89/aafigure-0.6.tar.gz +BuildArch: noarch + + +%description + | | | + +-----+ V +Command:: + aafigure test.txt -t svg -o test.svg +Please see documentation for examples. +http://aafigure.readthedocs.io/ + +%package -n python3-aafigure +Summary: ASCII art to image converter +Provides: python-aafigure +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-aafigure + | | | + +-----+ V +Command:: + aafigure test.txt -t svg -o test.svg +Please see documentation for examples. +http://aafigure.readthedocs.io/ + +%package help +Summary: Development documents and examples for aafigure +Provides: python3-aafigure-doc +%description help + | | | + +-----+ V +Command:: + aafigure test.txt -t svg -o test.svg +Please see documentation for examples. +http://aafigure.readthedocs.io/ + +%prep +%autosetup -n aafigure-0.6 + +%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-aafigure -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Fri May 05 2023 Python_Bot <Python_Bot@openeuler.org> - 0.6-1 +- Package Spec generated @@ -0,0 +1 @@ +2d3d03665af6e9318c9440355193bd25 aafigure-0.6.tar.gz |