Package init.

This commit is contained in:
si-gui 2020-06-19 17:25:18 +08:00
parent 17f55d8958
commit b227003c74
2 changed files with 78 additions and 0 deletions

Binary file not shown.

View File

@ -0,0 +1,78 @@
Name: keycloak-httpd-client-install
Version: 0.8
Release: 8
Summary: Provides tools to configure Apache HTTPD as Keycloak client
License: GPLv3
URL: https://github.com/jdennis/keycloak-httpd-client-install
Source0: https://github.com/jdennis/keycloak-httpd-client-install/releases/download/RELEASE_0_8/keycloak-httpd-client-install-%{version}.tar.gz
BuildArch: noarch
BuildRequires: python2-devel python3-devel
%description
Keycloak is a federated Identity Provider (IdP) that supports a
variety of authentication protocols. Apache HTTPD supports a variety
of authentication modules which have the capability of connecting to
a Keycloak IdP instance to perform authentication.
%package -n python2-keycloak-httpd-client-install
Summary: Provides tools to configure Apache HTTPD as Keycloak client
Requires: keycloak-httpd-client-install = %{version}-%{release}
Requires: python2-jinja2 python2-requests python2-requests-oauthlib
%description -n python2-keycloak-httpd-client-install
Keycloak is a federated Identity Provider (IdP) that supports a
variety of authentication protocols. Apache HTTPD supports a variety
of authentication modules which have the capability of connecting to
a Keycloak IdP instance to perform authentication.
%package -n python3-keycloak-httpd-client-install
Summary: Provides tools to configure Apache HTTPD as Keycloak client
Requires: keycloak-httpd-client-install = %{version}-%{release}
Requires: python3-requests python3-requests-oauthlib python3-jinja2
%description -n python3-keycloak-httpd-client-install
Keycloak is a federated Identity Provider (IdP) that supports a
variety of authentication protocols. Apache HTTPD supports a variety
of authentication modules which have the capability of connecting to
a Keycloak IdP instance to perform authentication.
%package help
Summary: Provides help and man docs for keycloak-httpd-client-install
%description help
This package provides help and man docs for python2-keycloak-httpd-client-install
and python3-keycloak-httpd-client-install.
%prep
%autosetup -n keycloak-httpd-client-install-%{version} -p1
%build
%py2_build
%py3_build
%install
%py2_install
%py3_install
mkdir -p -m 755 %{buildroot}/%{_mandir}/man8
cp doc/keycloak-httpd-client-install.8 %{buildroot}/%{_mandir}/man8
chmod 644 %{buildroot}/%{_mandir}/man8/keycloak-httpd-client-install.8
%files
%license LICENSE.txt
%{_datadir}/keycloak-httpd-client-install/
%files -n python2-keycloak-httpd-client-install
%{python2_sitelib}/*
%files -n python3-keycloak-httpd-client-install
%{python3_sitelib}/*
%{_bindir}/keycloak-httpd-client-install
%files help
%{_mandir}/man8/*
%doc README.md doc/ChangeLog
%changelog
* Wed Apr 15 2020 sunguoshuai <sunguoshuai@huawei.com> - 0.8-8
- Package init