From 96af6b1fea7994f4a726f6f31cba371fdcb77c3b Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Tue, 20 Jun 2023 09:21:45 +0000 Subject: automatic import of python-django-auth-oidc --- python-django-auth-oidc.spec | 83 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 83 insertions(+) create mode 100644 python-django-auth-oidc.spec (limited to 'python-django-auth-oidc.spec') diff --git a/python-django-auth-oidc.spec b/python-django-auth-oidc.spec new file mode 100644 index 0000000..bcb2368 --- /dev/null +++ b/python-django-auth-oidc.spec @@ -0,0 +1,83 @@ +%global _empty_manifest_terminate_build 0 +Name: python-django-auth-oidc +Version: 0.6.0 +Release: 1 +Summary: OpenID Connect authentication support for Django +License: MIT +URL: https://gitlab.com/aiakos/django-auth-oidc +Source0: https://mirrors.aliyun.com/pypi/web/packages/1c/99/0860e90288873804d74d49fbea0d97ff8d00961f0271396ec35b7fac95b2/django-auth-oidc-0.6.0.tar.gz +BuildArch: noarch + +Requires: python3-django +Requires: python3-openid-connect + +%description +This is a Django login view that authenticates against an OpenID Connect +Authentication Server. +Use it if you own a single Authentication Server that you want to share +between multiple apps. + +%package -n python3-django-auth-oidc +Summary: OpenID Connect authentication support for Django +Provides: python-django-auth-oidc +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-django-auth-oidc +This is a Django login view that authenticates against an OpenID Connect +Authentication Server. +Use it if you own a single Authentication Server that you want to share +between multiple apps. + +%package help +Summary: Development documents and examples for django-auth-oidc +Provides: python3-django-auth-oidc-doc +%description help +This is a Django login view that authenticates against an OpenID Connect +Authentication Server. +Use it if you own a single Authentication Server that you want to share +between multiple apps. + +%prep +%autosetup -n django-auth-oidc-0.6.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-django-auth-oidc -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Tue Jun 20 2023 Python_Bot - 0.6.0-1 +- Package Spec generated -- cgit v1.2.3