diff options
| author | CoprDistGit <infra@openeuler.org> | 2023-04-11 00:02:41 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2023-04-11 00:02:41 +0000 |
| commit | 799ef62d20de0eebd9b0200356c7fa22d86d4eda (patch) | |
| tree | bac989c29d9d94988ea2a6fd104bf7015513fe1f /python-intuit-oauth.spec | |
| parent | 85ddc7db3d29359736d63fc44ab3b089aaaff15f (diff) | |
automatic import of python-intuit-oauth
Diffstat (limited to 'python-intuit-oauth.spec')
| -rw-r--r-- | python-intuit-oauth.spec | 102 |
1 files changed, 102 insertions, 0 deletions
diff --git a/python-intuit-oauth.spec b/python-intuit-oauth.spec new file mode 100644 index 0000000..d65b295 --- /dev/null +++ b/python-intuit-oauth.spec @@ -0,0 +1,102 @@ +%global _empty_manifest_terminate_build 0 +Name: python-intuit-oauth +Version: 1.2.4 +Release: 1 +Summary: Intuit OAuth Client +License: Apache 2.0 +URL: https://github.com/intuit/oauth-pythonclient +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/b8/46/12e33ac1a4be1bfbd98f8fb9dc90a3d3d9a12f576c2187847a78c9f5274b/intuit-oauth-1.2.4.tar.gz +BuildArch: noarch + +Requires: python3-jose +Requires: python3-future +Requires: python3-requests +Requires: python3-requests-oauthlib +Requires: python3-six +Requires: python3-enum-compat + +%description +|build| |coverage| |docs| +This client library is meant to work with Intuit's OAuth and OpenID implementation. The `AuthClient` object response can be used for User Info API, Accounting API and Payments API. This library supports: +- Generating Authorization URL +- Getting OAuth2 Bearer Token +- Getting User Info +- Validating OpenID token +- Refreshing OAuth2 Token +- Revoking OAuth2 Token +- Migrating tokens from OAuth1.0 to OAuth2 + +%package -n python3-intuit-oauth +Summary: Intuit OAuth Client +Provides: python-intuit-oauth +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-intuit-oauth +|build| |coverage| |docs| +This client library is meant to work with Intuit's OAuth and OpenID implementation. The `AuthClient` object response can be used for User Info API, Accounting API and Payments API. This library supports: +- Generating Authorization URL +- Getting OAuth2 Bearer Token +- Getting User Info +- Validating OpenID token +- Refreshing OAuth2 Token +- Revoking OAuth2 Token +- Migrating tokens from OAuth1.0 to OAuth2 + +%package help +Summary: Development documents and examples for intuit-oauth +Provides: python3-intuit-oauth-doc +%description help +|build| |coverage| |docs| +This client library is meant to work with Intuit's OAuth and OpenID implementation. The `AuthClient` object response can be used for User Info API, Accounting API and Payments API. This library supports: +- Generating Authorization URL +- Getting OAuth2 Bearer Token +- Getting User Info +- Validating OpenID token +- Refreshing OAuth2 Token +- Revoking OAuth2 Token +- Migrating tokens from OAuth1.0 to OAuth2 + +%prep +%autosetup -n intuit-oauth-1.2.4 + +%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-intuit-oauth -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Tue Apr 11 2023 Python_Bot <Python_Bot@openeuler.org> - 1.2.4-1 +- Package Spec generated |
