diff options
| author | CoprDistGit <infra@openeuler.org> | 2023-06-09 02:31:06 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2023-06-09 02:31:06 +0000 |
| commit | 37c16f5d67d4c02d8799d0c0fd2bc6aaad57c173 (patch) | |
| tree | 57b596c8199cc6c77410c55f7b1a8b25e5473b94 | |
| parent | 37432b38aaef01107108cc41ea449b7c3530829a (diff) | |
automatic import of python-labstepopeneuler20.03
| -rw-r--r-- | .gitignore | 1 | ||||
| -rw-r--r-- | python-labstep.spec | 72 | ||||
| -rw-r--r-- | sources | 1 |
3 files changed, 74 insertions, 0 deletions
@@ -0,0 +1 @@ +/labstep-3.21.1.tar.gz diff --git a/python-labstep.spec b/python-labstep.spec new file mode 100644 index 0000000..ae14dee --- /dev/null +++ b/python-labstep.spec @@ -0,0 +1,72 @@ +%global _empty_manifest_terminate_build 0 +Name: python-labstep +Version: 3.21.1 +Release: 1 +Summary: Python SDK for working with the Labstep API +License: MIT +URL: http://github.com/Labstep/labstepPy +Source0: https://mirrors.aliyun.com/pypi/web/packages/6f/84/1dcd09bef20491212982bd36f1673368003940fb5be8c1e7a2357c198d19/labstep-3.21.1.tar.gz +BuildArch: noarch + + +%description +Python SDK for working with the Labstep API + +%package -n python3-labstep +Summary: Python SDK for working with the Labstep API +Provides: python-labstep +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-labstep +Python SDK for working with the Labstep API + +%package help +Summary: Development documents and examples for labstep +Provides: python3-labstep-doc +%description help +Python SDK for working with the Labstep API + +%prep +%autosetup -n labstep-3.21.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-labstep -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Fri Jun 09 2023 Python_Bot <Python_Bot@openeuler.org> - 3.21.1-1 +- Package Spec generated @@ -0,0 +1 @@ +90dcdabaddce941b3f41ddb71b4c9999 labstep-3.21.1.tar.gz |
