diff options
| author | CoprDistGit <infra@openeuler.org> | 2023-05-29 10:41:45 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2023-05-29 10:41:45 +0000 |
| commit | 180ce23057a0a4341c7ba55a2ea35ccd74287b76 (patch) | |
| tree | aba665aa748c82f921377019bf281517d21ca795 | |
| parent | 1887a6b4acc34d3a05cfea0879b8be22f338d9f4 (diff) | |
automatic import of python-authutils
| -rw-r--r-- | .gitignore | 1 | ||||
| -rw-r--r-- | python-authutils.spec | 80 | ||||
| -rw-r--r-- | sources | 1 |
3 files changed, 82 insertions, 0 deletions
@@ -0,0 +1 @@ +/authutils-6.2.2.tar.gz diff --git a/python-authutils.spec b/python-authutils.spec new file mode 100644 index 0000000..3a3aba6 --- /dev/null +++ b/python-authutils.spec @@ -0,0 +1,80 @@ +%global _empty_manifest_terminate_build 0 +Name: python-authutils +Version: 6.2.2 +Release: 1 +Summary: Gen3 auth utility functions +License: Apache-2.0 +URL: https://pypi.org/project/authutils/ +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/09/be/edd074528051e2ec7a0fede66da838048bdac1e256fb66879fdc045031e9/authutils-6.2.2.tar.gz +BuildArch: noarch + +Requires: python3-cached-property +Requires: python3-cdiserrors +Requires: python3-xmltodict +Requires: python3-authlib +Requires: python3-httpx +Requires: python3-pyjwt[crypto] +Requires: python3-Flask +Requires: python3-fastapi + +%description + + +%package -n python3-authutils +Summary: Gen3 auth utility functions +Provides: python-authutils +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-authutils + + +%package help +Summary: Development documents and examples for authutils +Provides: python3-authutils-doc +%description help + + +%prep +%autosetup -n authutils-6.2.2 + +%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-authutils -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Mon May 29 2023 Python_Bot <Python_Bot@openeuler.org> - 6.2.2-1 +- Package Spec generated @@ -0,0 +1 @@ +e09a513daf9cfac70efaeaf0885a41bd authutils-6.2.2.tar.gz |
