diff options
author | CoprDistGit <infra@openeuler.org> | 2023-06-09 01:13:49 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-06-09 01:13:49 +0000 |
commit | a9be1bc182539d8073409184ef787534018262aa (patch) | |
tree | f7aca264f15e710554f2b89a7def37086644bbd5 | |
parent | 1b2900e62e586b9f2da7473e14b96a3d95aac363 (diff) |
automatic import of python-slapos-toolboxopeneuler20.03
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-slapos-toolbox.spec | 72 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 74 insertions, 0 deletions
@@ -0,0 +1 @@ +/slapos.toolbox-0.136.tar.gz diff --git a/python-slapos-toolbox.spec b/python-slapos-toolbox.spec new file mode 100644 index 0000000..f633464 --- /dev/null +++ b/python-slapos-toolbox.spec @@ -0,0 +1,72 @@ +%global _empty_manifest_terminate_build 0 +Name: python-slapos.toolbox +Version: 0.136 +Release: 1 +Summary: SlapOS toolbox. +License: GPLv3 +URL: https://lab.nexedi.com/nexedi/slapos.toolbox +Source0: https://mirrors.aliyun.com/pypi/web/packages/a6/d4/dc55cd10e5065010e086088e175ce013828f5411133c685634f0a172bd01/slapos.toolbox-0.136.tar.gz +BuildArch: noarch + + +%description +SlapOS toolbox contains : + +%package -n python3-slapos.toolbox +Summary: SlapOS toolbox. +Provides: python-slapos.toolbox +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-slapos.toolbox +SlapOS toolbox contains : + +%package help +Summary: Development documents and examples for slapos.toolbox +Provides: python3-slapos.toolbox-doc +%description help +SlapOS toolbox contains : + +%prep +%autosetup -n slapos.toolbox-0.136 + +%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-slapos.toolbox -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Fri Jun 09 2023 Python_Bot <Python_Bot@openeuler.org> - 0.136-1 +- Package Spec generated @@ -0,0 +1 @@ +fcf863e2aadf47335b1e0e0a7d6ca1c2 slapos.toolbox-0.136.tar.gz |