%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 * Sun Apr 23 2023 Python_Bot - 5.5.0-1 - Package Spec generated