summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-06-20 03:29:40 +0000
committerCoprDistGit <infra@openeuler.org>2023-06-20 03:29:40 +0000
commit08df6a10f61254c5581ce53642a5421b1b0d3d9f (patch)
tree870e0a20ccc876cbc817502c6da5916ba9539570
parenta8ada40729aa73774a07bfc6e436076ed330f9e0 (diff)
automatic import of python-businessopticsopeneuler20.03
-rw-r--r--.gitignore1
-rw-r--r--python-businessoptics.spec87
-rw-r--r--sources1
3 files changed, 89 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..30d4626 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/businessoptics-0.8.0.tar.gz
diff --git a/python-businessoptics.spec b/python-businessoptics.spec
new file mode 100644
index 0000000..e4f84e0
--- /dev/null
+++ b/python-businessoptics.spec
@@ -0,0 +1,87 @@
+%global _empty_manifest_terminate_build 0
+Name: python-businessoptics
+Version: 0.8.0
+Release: 1
+Summary: Client for the BusinessOptics API
+License: MIT
+URL: https://github.com/BusinessOptics/businessoptics_client
+Source0: https://mirrors.aliyun.com/pypi/web/packages/05/ff/3d5fe473c1654afa2f5f1eae9cc6ce79306f22e69d0123ec5359bf7455fd/businessoptics-0.8.0.tar.gz
+BuildArch: noarch
+
+
+%description
+Easy access to the BusinessOptics API, based on the python requests library.
+For example:
+```python
+from businessoptics import Client
+print Client(auth=('user@example.com', 'apikey')).workspace(123).query('ideaname').tuples()
+```
+
+%package -n python3-businessoptics
+Summary: Client for the BusinessOptics API
+Provides: python-businessoptics
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-businessoptics
+Easy access to the BusinessOptics API, based on the python requests library.
+For example:
+```python
+from businessoptics import Client
+print Client(auth=('user@example.com', 'apikey')).workspace(123).query('ideaname').tuples()
+```
+
+%package help
+Summary: Development documents and examples for businessoptics
+Provides: python3-businessoptics-doc
+%description help
+Easy access to the BusinessOptics API, based on the python requests library.
+For example:
+```python
+from businessoptics import Client
+print Client(auth=('user@example.com', 'apikey')).workspace(123).query('ideaname').tuples()
+```
+
+%prep
+%autosetup -n businessoptics-0.8.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-businessoptics -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Tue Jun 20 2023 Python_Bot <Python_Bot@openeuler.org> - 0.8.0-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..2648bb5
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+4a131b40394425b6e5f012dd67171db4 businessoptics-0.8.0.tar.gz