diff options
| author | CoprDistGit <infra@openeuler.org> | 2023-05-05 07:43:28 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2023-05-05 07:43:28 +0000 |
| commit | 5bf4d7a7d9b49f6cbbf291a8bdb0a148f064d99e (patch) | |
| tree | 1ce1200fdeaea6404ba8f779afcff7b3aff84045 | |
| parent | 35f99e4ec62117693832edc36c5d15b40ba43ef4 (diff) | |
automatic import of python-richenumopeneuler20.03
| -rw-r--r-- | .gitignore | 1 | ||||
| -rw-r--r-- | python-richenum.spec | 73 | ||||
| -rw-r--r-- | sources | 1 |
3 files changed, 75 insertions, 0 deletions
@@ -0,0 +1 @@ +/richenum-1.3.1.tar.gz diff --git a/python-richenum.spec b/python-richenum.spec new file mode 100644 index 0000000..71b1885 --- /dev/null +++ b/python-richenum.spec @@ -0,0 +1,73 @@ +%global _empty_manifest_terminate_build 0 +Name: python-richenum +Version: 1.3.1 +Release: 1 +Summary: Enum library for python. +License: MIT +URL: https://github.com/hearsaycorp/richenum +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/df/07/fb47d35d379fa173fd4eece38435462c0e50f4a08ffbe50e27775f0a2dae/richenum-1.3.1.tar.gz +BuildArch: noarch + +Requires: python3-six + +%description + + +%package -n python3-richenum +Summary: Enum library for python. +Provides: python-richenum +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-richenum + + +%package help +Summary: Development documents and examples for richenum +Provides: python3-richenum-doc +%description help + + +%prep +%autosetup -n richenum-1.3.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-richenum -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Fri May 05 2023 Python_Bot <Python_Bot@openeuler.org> - 1.3.1-1 +- Package Spec generated @@ -0,0 +1 @@ +4505086c2f6bdf6c24826a714ea8d91e richenum-1.3.1.tar.gz |
