diff options
author | CoprDistGit <infra@openeuler.org> | 2023-04-11 01:59:01 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-04-11 01:59:01 +0000 |
commit | 6a881731694a59974c7a32e59dbd12c8927576f4 (patch) | |
tree | 101ebc7a2aae51dc2fd71c8afc552aad59768b84 | |
parent | cbb614cfcefe6946642e172c8beb062de21905ad (diff) |
automatic import of python-edx-rest-api-client
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-edx-rest-api-client.spec | 76 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 78 insertions, 0 deletions
@@ -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 @@ -0,0 +1 @@ +8df89f842df40796813d58052b83d3e0 edx-rest-api-client-5.5.0.tar.gz |