diff options
| author | CoprDistGit <infra@openeuler.org> | 2025-12-12 02:57:51 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2025-12-12 02:57:51 +0000 |
| commit | 754cca9ae9852dd311aad90857126d706e50c5b1 (patch) | |
| tree | 6d920aa83ecf1e58fd5d1a2c74889b64da0acf67 | |
| parent | 8e6fc9e35ab770cf97a1c63461db7aedab573b15 (diff) | |
automatic import of authHubopeneuler24.03_LTS_SP2openeuler24.03_LTS_SP1openeuler24.03_LTS
| -rw-r--r-- | .gitignore | 2 | ||||
| -rw-r--r-- | authHub.spec | 75 | ||||
| -rw-r--r-- | sources | 2 |
3 files changed, 79 insertions, 0 deletions
@@ -0,0 +1,2 @@ +/authHub-v2.2.0.tar.gz +/node_modules.tar.gz diff --git a/authHub.spec b/authHub.spec new file mode 100644 index 0000000..ab4dbf8 --- /dev/null +++ b/authHub.spec @@ -0,0 +1,75 @@ +%define _unitdir /usr/lib/systemd/system +%define dist_tag %(sed -n 's/.*release \\([0-9]*\\)\.\\([0-9]*\\).*[Ss][Pp]\\([0-9]*\\).*/oe\\1\\2sp\\3/p; t; s/.*release \\([0-9]*\\)\.\\([0-9]*\\).*/oe\\1\\2/p' /etc/openEuler-release) + +Name: authHub +Version: v2.2.0 +Release: 3.%{?dist_tag} +Summary: Authentication authority based on oauth2 +License: MulanPSL2 +URL: https://gitee.com/openeuler/%{name} +Source0: %{name}-%{version}.tar.gz +Source1: node_modules.tar.gz + +BuildRequires: python3-setuptools +Requires: aops-vulcanus >= v2.1.0 python3-Authlib aops-zeus >= v2.1.0 python3-Flask-SQLAlchemy uwsgi +Provides: authhub + +%description +authhub is a specialized authentication center built on OAuth2, providing robust authentication and authorization capabilities for secure user access control in your applications.. + +%package -n authhub-web +Summary: Authentication authority web based on oauth2 + +BuildRequires: nodejs npm +Requires: nginx + +%description -n authhub-web +Authentication authority web based on oauth2 + +%prep +%autosetup -n %{name}-%{version} +%setup -T -D -a 1 -n %{name}-%{version}/oauth2_web +cd %{_builddir}/%{name}-%{version} + +# build for authhub +%py3_build + +# build for authhub-web +pushd oauth2_web +npm run build +popd + +# install for authhub +%py3_install + +# install for authhub-web +pushd oauth2_web +mkdir -p %{buildroot}/opt/authhub/web/ +cp -r dist %{buildroot}/opt/authhub/web/ +mkdir -p %{buildroot}/%{_sysconfdir}/nginx/conf.d/ +cp deploy/authhub.nginx.conf %{buildroot}/%{_sysconfdir}/nginx/conf.d/ +mkdir -p %{buildroot}/usr/lib/systemd/system +cp -r deploy/authhub-web.service %{buildroot}/usr/lib/systemd/system/ +popd + +%files +%attr(0644,root,root) %{_sysconfdir}/aops/conf.d/authhub.yml +%attr(0644,root,root) %{_sysconfdir}/nginx/conf.d/authhub.nginx.conf +%attr(0755,root,root) %{_unitdir}/authhub.service +%attr(0755, root, root) /opt/aops/database/* +%{python3_sitelib}/authhub*.egg-info +%{python3_sitelib}/oauth2_provider/* + +%files -n authhub-web +%attr(0755, root, root) /opt/authhub/web/dist/* +%attr(0755,root,root) %{_unitdir}/authhub-web.service + +%changelog +* Wed Nov 20 2024 weidongkl<weidong@uniontech.com> - v1.0.0-3 +- Add uwsgi requires + +* Sat Aug 19 2024 gongzhengtang<gong_zhengtang@163.com> - v1.0.0-2 +- Add python3-Flask-SQLAlchemy requires + +* Mon Aug 19 2024 gongzhengtang<gong_zhengtang@163.com> - v1.0.0-1 +- Package init @@ -0,0 +1,2 @@ +149eecec512f755c56147b04b7442813 authHub-v2.2.0.tar.gz +61f7998825e1cfd428ef5e259c51abd3 node_modules.tar.gz |
