summaryrefslogtreecommitdiff
path: root/python-rapidpro-python.spec
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-05-29 10:36:58 +0000
committerCoprDistGit <infra@openeuler.org>2023-05-29 10:36:58 +0000
commitea07b942161c9fd53d0221be3fc51f5e950781f4 (patch)
tree4e0b75723d03b28aafc5b1482b644b6b9209e583 /python-rapidpro-python.spec
parent7d5128c18345f65fe9085de1baf7da4d8817347e (diff)
automatic import of python-rapidpro-python
Diffstat (limited to 'python-rapidpro-python.spec')
-rw-r--r--python-rapidpro-python.spec87
1 files changed, 87 insertions, 0 deletions
diff --git a/python-rapidpro-python.spec b/python-rapidpro-python.spec
new file mode 100644
index 0000000..228d7bb
--- /dev/null
+++ b/python-rapidpro-python.spec
@@ -0,0 +1,87 @@
+%global _empty_manifest_terminate_build 0
+Name: python-rapidpro-python
+Version: 2.12.0
+Release: 1
+Summary: Python client library for the RapidPro API
+License: BSD-4-Clause
+URL: https://pypi.org/project/rapidpro-python/
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/ad/0d/182e17656a95059062cc0d81b5ecb8191a5541d70242faf3ac1c142c016d/rapidpro_python-2.12.0.tar.gz
+BuildArch: noarch
+
+Requires: python3-pytz
+Requires: python3-requests
+Requires: python3-iso8601
+
+%description
+[![Build Status](https://github.com/rapidpro/rapidpro-python/workflows/CI/badge.svg)](https://github.com/rapidpro/rapidpro-python/actions?query=workflow%3ACI)
+[![Coverage Status](https://codecov.io/gh/rapidpro/rapidpro-python/branch/main/graph/badge.svg)](https://codecov.io/gh/rapidpro/rapidpro-python)
+[![PyPI Release](https://img.shields.io/pypi/v/rapidpro-python.svg)](https://pypi.python.org/pypi/rapidpro-python/)
+Official Python client library for the [RapidPro](http://rapidpro.github.io/rapidpro/). Supports latest Python 3.
+Visit [here](http://rapidpro-python.readthedocs.org/) for complete documentation.
+
+%package -n python3-rapidpro-python
+Summary: Python client library for the RapidPro API
+Provides: python-rapidpro-python
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-rapidpro-python
+[![Build Status](https://github.com/rapidpro/rapidpro-python/workflows/CI/badge.svg)](https://github.com/rapidpro/rapidpro-python/actions?query=workflow%3ACI)
+[![Coverage Status](https://codecov.io/gh/rapidpro/rapidpro-python/branch/main/graph/badge.svg)](https://codecov.io/gh/rapidpro/rapidpro-python)
+[![PyPI Release](https://img.shields.io/pypi/v/rapidpro-python.svg)](https://pypi.python.org/pypi/rapidpro-python/)
+Official Python client library for the [RapidPro](http://rapidpro.github.io/rapidpro/). Supports latest Python 3.
+Visit [here](http://rapidpro-python.readthedocs.org/) for complete documentation.
+
+%package help
+Summary: Development documents and examples for rapidpro-python
+Provides: python3-rapidpro-python-doc
+%description help
+[![Build Status](https://github.com/rapidpro/rapidpro-python/workflows/CI/badge.svg)](https://github.com/rapidpro/rapidpro-python/actions?query=workflow%3ACI)
+[![Coverage Status](https://codecov.io/gh/rapidpro/rapidpro-python/branch/main/graph/badge.svg)](https://codecov.io/gh/rapidpro/rapidpro-python)
+[![PyPI Release](https://img.shields.io/pypi/v/rapidpro-python.svg)](https://pypi.python.org/pypi/rapidpro-python/)
+Official Python client library for the [RapidPro](http://rapidpro.github.io/rapidpro/). Supports latest Python 3.
+Visit [here](http://rapidpro-python.readthedocs.org/) for complete documentation.
+
+%prep
+%autosetup -n rapidpro-python-2.12.0
+
+%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-rapidpro-python -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Mon May 29 2023 Python_Bot <Python_Bot@openeuler.org> - 2.12.0-1
+- Package Spec generated