diff options
| author | CoprDistGit <infra@openeuler.org> | 2023-04-11 07:27:29 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2023-04-11 07:27:29 +0000 |
| commit | 1b3a6cc34efdaf5041c0bb231eaa9177aba98eac (patch) | |
| tree | 1ab365529fb89e61b27b6e8425c60a9220dee236 | |
| parent | acb02b866ea33c9088a0e324c4245ab5ae9ac2c3 (diff) | |
automatic import of python-base36
| -rw-r--r-- | .gitignore | 1 | ||||
| -rw-r--r-- | python-base36.spec | 72 | ||||
| -rw-r--r-- | sources | 1 |
3 files changed, 74 insertions, 0 deletions
@@ -0,0 +1 @@ +/base36-0.1.1.tar.gz diff --git a/python-base36.spec b/python-base36.spec new file mode 100644 index 0000000..81d6625 --- /dev/null +++ b/python-base36.spec @@ -0,0 +1,72 @@ +%global _empty_manifest_terminate_build 0 +Name: python-base36 +Version: 0.1.1 +Release: 1 +Summary: Yet another implementation for the positional numeral system using 36 as the radix. +License: MIT +URL: https://github.com/tonyseek/python-base36 +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/7e/63/e75b652d027bb394b67a61d232fd2f10d032ec3b8658dd81c593a9dfc25e/base36-0.1.1.tar.gz +BuildArch: noarch + + +%description +Yet another implementation for the positional numeral system using 36 as the radix. + +%package -n python3-base36 +Summary: Yet another implementation for the positional numeral system using 36 as the radix. +Provides: python-base36 +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-base36 +Yet another implementation for the positional numeral system using 36 as the radix. + +%package help +Summary: Development documents and examples for base36 +Provides: python3-base36-doc +%description help +Yet another implementation for the positional numeral system using 36 as the radix. + +%prep +%autosetup -n base36-0.1.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-base36 -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Tue Apr 11 2023 Python_Bot <Python_Bot@openeuler.org> - 0.1.1-1 +- Package Spec generated @@ -0,0 +1 @@ +178f06bd6b525143a326ea8c705fccab base36-0.1.1.tar.gz |
