diff options
author | CoprDistGit <infra@openeuler.org> | 2023-05-31 07:38:37 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-05-31 07:38:37 +0000 |
commit | b115539435010d0259ee8adb4111a1f73a1e3fb8 (patch) | |
tree | 2292ea27bf534a0fbef5c5ca08979a00060dd7d3 | |
parent | 5a165342aa6e683a2d1d6320e37576ee837284bb (diff) |
automatic import of python-atws
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-atws.spec | 77 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 79 insertions, 0 deletions
@@ -0,0 +1 @@ +/atws-0.5.6.tar.gz diff --git a/python-atws.spec b/python-atws.spec new file mode 100644 index 0000000..f3f6f92 --- /dev/null +++ b/python-atws.spec @@ -0,0 +1,77 @@ +%global _empty_manifest_terminate_build 0 +Name: python-atws +Version: 0.5.6 +Release: 1 +Summary: python-atws is a wrapper for the AutoTask SOAP webservices API +License: MIT license +URL: https://github.com/MattParr/python-atws +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/72/66/a67dd333b34c53fe0fec177d48c8a7a788d45db45a6f866f90b788d99fbe/atws-0.5.6.tar.gz +BuildArch: noarch + +Requires: python3-requests +Requires: python3-pytz +Requires: python3-suds-community +Requires: python3-future +Requires: python3-cached-property + +%description + + +%package -n python3-atws +Summary: python-atws is a wrapper for the AutoTask SOAP webservices API +Provides: python-atws +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-atws + + +%package help +Summary: Development documents and examples for atws +Provides: python3-atws-doc +%description help + + +%prep +%autosetup -n atws-0.5.6 + +%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-atws -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Wed May 31 2023 Python_Bot <Python_Bot@openeuler.org> - 0.5.6-1 +- Package Spec generated @@ -0,0 +1 @@ +012dcbe6189f4f2641f7545ccc561026 atws-0.5.6.tar.gz |