summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-04-11 01:59:01 +0000
committerCoprDistGit <infra@openeuler.org>2023-04-11 01:59:01 +0000
commit6a881731694a59974c7a32e59dbd12c8927576f4 (patch)
tree101ebc7a2aae51dc2fd71c8afc552aad59768b84
parentcbb614cfcefe6946642e172c8beb062de21905ad (diff)
automatic import of python-edx-rest-api-client
-rw-r--r--.gitignore1
-rw-r--r--python-edx-rest-api-client.spec76
-rw-r--r--sources1
3 files changed, 78 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..7b62800 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/edx-rest-api-client-5.5.0.tar.gz
diff --git a/python-edx-rest-api-client.spec b/python-edx-rest-api-client.spec
new file mode 100644
index 0000000..40cb7da
--- /dev/null
+++ b/python-edx-rest-api-client.spec
@@ -0,0 +1,76 @@
+%global _empty_manifest_terminate_build 0
+Name: python-edx-rest-api-client
+Version: 5.5.0
+Release: 1
+Summary: Slumber client used to access various edX Platform REST APIs.
+License: Apache
+URL: https://github.com/edx/edx-rest-api-client
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/60/17/630257c99812113c5afedd2a192a81fd6827887627be8ab746bb5fcb220a/edx-rest-api-client-5.5.0.tar.gz
+BuildArch: noarch
+
+Requires: python3-PyJWT
+Requires: python3-edx-django-utils
+Requires: python3-requests
+Requires: python3-slumber
+
+%description
+The edX REST API Client (henceforth, client) allows users to communicate with various edX REST APIs, including the `E-Commerce Service`_ and the `Programs Service`_.
+
+%package -n python3-edx-rest-api-client
+Summary: Slumber client used to access various edX Platform REST APIs.
+Provides: python-edx-rest-api-client
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-edx-rest-api-client
+The edX REST API Client (henceforth, client) allows users to communicate with various edX REST APIs, including the `E-Commerce Service`_ and the `Programs Service`_.
+
+%package help
+Summary: Development documents and examples for edx-rest-api-client
+Provides: python3-edx-rest-api-client-doc
+%description help
+The edX REST API Client (henceforth, client) allows users to communicate with various edX REST APIs, including the `E-Commerce Service`_ and the `Programs Service`_.
+
+%prep
+%autosetup -n edx-rest-api-client-5.5.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-edx-rest-api-client -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Tue Apr 11 2023 Python_Bot <Python_Bot@openeuler.org> - 5.5.0-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..2b0f97c
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+8df89f842df40796813d58052b83d3e0 edx-rest-api-client-5.5.0.tar.gz