diff options
| author | CoprDistGit <infra@openeuler.org> | 2023-05-15 06:35:12 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2023-05-15 06:35:12 +0000 |
| commit | b4ac0d59c02b315b2a14b7f2cc31171d99260dd5 (patch) | |
| tree | bf6b9b6ffbfa72a26e6f81fce99743c623964c97 | |
| parent | f36d6fef234a7683dfbce677cdd4138d966c583d (diff) | |
automatic import of python-pyxeoma
| -rw-r--r-- | .gitignore | 1 | ||||
| -rw-r--r-- | python-pyxeoma.spec | 73 | ||||
| -rw-r--r-- | sources | 1 |
3 files changed, 75 insertions, 0 deletions
@@ -0,0 +1 @@ +/pyxeoma-1.4.2.tar.gz diff --git a/python-pyxeoma.spec b/python-pyxeoma.spec new file mode 100644 index 0000000..e322a9d --- /dev/null +++ b/python-pyxeoma.spec @@ -0,0 +1,73 @@ +%global _empty_manifest_terminate_build 0 +Name: python-pyxeoma +Version: 1.4.2 +Release: 1 +Summary: Python wrapper for Xeoma web server API +License: MIT +URL: https://github.com/jeradM/pyxeoma +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/dd/79/ffd89a78cc7e129ff7c66f6e75bc2067bd301ea57a30de874309cf0a1e47/pyxeoma-1.4.2.tar.gz +BuildArch: noarch + +Requires: python3-aiohttp + +%description + + +%package -n python3-pyxeoma +Summary: Python wrapper for Xeoma web server API +Provides: python-pyxeoma +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-pyxeoma + + +%package help +Summary: Development documents and examples for pyxeoma +Provides: python3-pyxeoma-doc +%description help + + +%prep +%autosetup -n pyxeoma-1.4.2 + +%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-pyxeoma -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Mon May 15 2023 Python_Bot <Python_Bot@openeuler.org> - 1.4.2-1 +- Package Spec generated @@ -0,0 +1 @@ +88fa51c110e8c1a126367f88979b8ffc pyxeoma-1.4.2.tar.gz |
