summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rw-r--r--python-intuit-oauth.spec102
-rw-r--r--sources1
3 files changed, 104 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..8094fdc 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/intuit-oauth-1.2.4.tar.gz
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
diff --git a/sources b/sources
new file mode 100644
index 0000000..750cfe8
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+66bbfe09379deba836362ee79af8ea30 intuit-oauth-1.2.4.tar.gz