diff options
author | CoprDistGit <infra@openeuler.org> | 2023-05-10 06:09:50 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-05-10 06:09:50 +0000 |
commit | 0a5cb7371b42cb9813f9114622c51c058ce77759 (patch) | |
tree | 9e180ad0b6da41508bd07ca6b95d65607ba4af73 | |
parent | 14a3b1f16c0ff203c4b16984684853cae3f25d2f (diff) |
automatic import of python-pokrok
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-pokrok.spec | 72 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 74 insertions, 0 deletions
@@ -0,0 +1 @@ +/pokrok-0.2.0.tar.gz diff --git a/python-pokrok.spec b/python-pokrok.spec new file mode 100644 index 0000000..f268b17 --- /dev/null +++ b/python-pokrok.spec @@ -0,0 +1,72 @@ +%global _empty_manifest_terminate_build 0 +Name: python-pokrok +Version: 0.2.0 +Release: 1 +Summary: Simple API for progress bars using any of several supported libraries +License: MIT +URL: https://github.com/jdidion/pokrok +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/e5/0b/dea250ffe612dc10b5f318c8ebcf09b3e96cdcd7b5839df1d2cb2af503df/pokrok-0.2.0.tar.gz +BuildArch: noarch + + +%description + + +%package -n python3-pokrok +Summary: Simple API for progress bars using any of several supported libraries +Provides: python-pokrok +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-pokrok + + +%package help +Summary: Development documents and examples for pokrok +Provides: python3-pokrok-doc +%description help + + +%prep +%autosetup -n pokrok-0.2.0 + +%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-pokrok -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Wed May 10 2023 Python_Bot <Python_Bot@openeuler.org> - 0.2.0-1 +- Package Spec generated @@ -0,0 +1 @@ +d8e7e51c00c0b6f3287462309a19f32b pokrok-0.2.0.tar.gz |