|
|
|
@ -1,12 +1,19 @@
|
|
|
|
|
%global srcname keycloak-httpd-client-install
|
|
|
|
|
%global summary Tools to configure Apache HTTPD as Keycloak client
|
|
|
|
|
|
|
|
|
|
%if (0%{?fedora} > 0 && 0%{?fedora} < 30) || (0%{?rhel} > 0 && 0%{?rhel} <= 7)
|
|
|
|
|
%bcond_without python2
|
|
|
|
|
%bcond_with python3
|
|
|
|
|
%bcond_without python3
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%if 0%{?fedora} >= 30 || 0%{?rhel} >= 8
|
|
|
|
|
%bcond_with python2
|
|
|
|
|
%bcond_without python3
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
Name: %{srcname}
|
|
|
|
|
Version: 1.0
|
|
|
|
|
Release: 2%{?dist}
|
|
|
|
|
Version: 1.1
|
|
|
|
|
Release: 10%{?dist}
|
|
|
|
|
Summary: %{summary}
|
|
|
|
|
|
|
|
|
|
%global git_tag RELEASE_%(r=%{version}; echo $r | tr '.' '_')
|
|
|
|
@ -15,12 +22,15 @@ License: GPLv3
|
|
|
|
|
URL: https://github.com/jdennis/keycloak-httpd-client-install
|
|
|
|
|
Source0: https://github.com/jdennis/keycloak-httpd-client-install/archive/%{git_tag}.tar.gz
|
|
|
|
|
|
|
|
|
|
Patch0001: 0001-doc-Fix-a-typo-in-oidc-redirect-uri-description.patch
|
|
|
|
|
Patch0002: 0002-Add-a-new-oidc-logout-uri-command-line-option.patch
|
|
|
|
|
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
%if %{with python2}
|
|
|
|
|
BuildRequires: python2-devel
|
|
|
|
|
%endif # with_python2
|
|
|
|
|
|
|
|
|
|
%if 0%{?with_python3}
|
|
|
|
|
BuildRequires: python3-devel
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
Requires: %{_bindir}/keycloak-httpd-client-install
|
|
|
|
|
|
|
|
|
@ -32,6 +42,25 @@ libraries and tools which can automate and simplify configuring an
|
|
|
|
|
Apache HTTPD authentication module and registering as a client of a
|
|
|
|
|
Keycloak IdP.
|
|
|
|
|
|
|
|
|
|
%if %{with python2}
|
|
|
|
|
%package -n python2-%{srcname}
|
|
|
|
|
Summary: %{summary}
|
|
|
|
|
|
|
|
|
|
%{?python_provide:%python_provide python2-%{srcname}}
|
|
|
|
|
|
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
|
Requires: python2-requests
|
|
|
|
|
Requires: python2-requests-oauthlib
|
|
|
|
|
Requires: python2-jinja2
|
|
|
|
|
Requires: %{_bindir}/keycloak-httpd-client-install
|
|
|
|
|
|
|
|
|
|
%description -n python2-%{srcname}
|
|
|
|
|
Keycloak is an authentication server. This package contains libraries and
|
|
|
|
|
programs which can invoke the Keycloak REST API and configure clients
|
|
|
|
|
of a Keycloak server.
|
|
|
|
|
%endif # with_python2
|
|
|
|
|
|
|
|
|
|
%if 0%{?with_python3}
|
|
|
|
|
%package -n python3-%{srcname}
|
|
|
|
|
Summary: %{summary}
|
|
|
|
|
|
|
|
|
@ -47,14 +76,38 @@ Keycloak is an authentication server. This package contains libraries and
|
|
|
|
|
programs which can invoke the Keycloak REST API and configure clients
|
|
|
|
|
of a Keycloak server.
|
|
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%autosetup -n %{srcname}-%{git_tag} -p1
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%if %{with python2}
|
|
|
|
|
%py2_build
|
|
|
|
|
%endif # with_python2
|
|
|
|
|
|
|
|
|
|
%if 0%{?with_python3}
|
|
|
|
|
%py3_build
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%if %{with python2}
|
|
|
|
|
# Must do the python2 install first because the scripts in /usr/bin are
|
|
|
|
|
# overwritten with every setup.py install, and in general we want the
|
|
|
|
|
# python3 version to be the default.
|
|
|
|
|
%py2_install
|
|
|
|
|
%endif # with_python2
|
|
|
|
|
|
|
|
|
|
%if 0%{?with_python3}
|
|
|
|
|
# py3_install won't overwrite files if they have a timestamp greater-than
|
|
|
|
|
# or equal to the py2 installed files. If both the py2 and py3 builds execute
|
|
|
|
|
# quickly the files end up with the same timestamps thus leaving the py2
|
|
|
|
|
# version in the py3 install. Therefore remove any files susceptible to this.
|
|
|
|
|
%if %{with python2}
|
|
|
|
|
rm %{buildroot}%{_bindir}/keycloak-httpd-client-install
|
|
|
|
|
%endif # with_python2
|
|
|
|
|
%py3_install
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
install -d -m 755 %{buildroot}/%{_mandir}/man8
|
|
|
|
|
install -c -m 644 doc/keycloak-httpd-client-install.8 %{buildroot}/%{_mandir}/man8
|
|
|
|
@ -64,36 +117,75 @@ install -c -m 644 doc/keycloak-httpd-client-install.8 %{buildroot}/%{_mandir}/ma
|
|
|
|
|
%doc README.md doc/ChangeLog
|
|
|
|
|
%{_datadir}/%{srcname}/
|
|
|
|
|
|
|
|
|
|
%if %{with python2}
|
|
|
|
|
# Note that there is no %%files section for the unversioned python module if we are building for several python runtimes
|
|
|
|
|
%files -n python2-%{srcname}
|
|
|
|
|
%{python2_sitelib}/*
|
|
|
|
|
|
|
|
|
|
%if ! 0%{?with_python3}
|
|
|
|
|
%{_bindir}/keycloak-httpd-client-install
|
|
|
|
|
%{_bindir}/keycloak-rest
|
|
|
|
|
%{_mandir}/man8/*
|
|
|
|
|
%endif
|
|
|
|
|
%endif # with_python2
|
|
|
|
|
|
|
|
|
|
%if 0%{?with_python3}
|
|
|
|
|
%files -n python3-%{srcname}
|
|
|
|
|
%{python3_sitelib}/*
|
|
|
|
|
%{_bindir}/keycloak-httpd-client-install
|
|
|
|
|
%{_bindir}/keycloak-rest
|
|
|
|
|
%{_mandir}/man8/*
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Wed Jul 26 2023 MSVSphere Packaging Team <packager@msvsphere.ru> - 1.0-2
|
|
|
|
|
- Rebuilt for MSVSphere 8.8
|
|
|
|
|
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 1.1-10
|
|
|
|
|
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
|
|
|
|
Related: rhbz#1991688
|
|
|
|
|
|
|
|
|
|
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 1.1-9
|
|
|
|
|
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
|
|
|
|
|
|
|
|
|
|
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.1-8
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.1-7
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 1.1-6
|
|
|
|
|
- Rebuilt for Python 3.9
|
|
|
|
|
|
|
|
|
|
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.1-5
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 1.1-4
|
|
|
|
|
- Rebuilt for Python 3.8.0rc1 (#1748018)
|
|
|
|
|
|
|
|
|
|
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 1.1-3
|
|
|
|
|
- Rebuilt for Python 3.8
|
|
|
|
|
|
|
|
|
|
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.1-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Jun 28 2019 Jakub Hrozek <jhrozek@redhat.com> - 1.1-1
|
|
|
|
|
- New upstream release 1.1
|
|
|
|
|
|
|
|
|
|
* Wed Jul 3 2019 Jakub Hrozek <jhrozek@redhat.com> - 1.0-2
|
|
|
|
|
- Backport upstream patches to adds the --oidc-logout-uri option
|
|
|
|
|
and fix OIDC-related man page issues
|
|
|
|
|
- Related: rhbz#1553890 - [RFE] Add mod_auth_openidc support
|
|
|
|
|
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.8-9
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Jun 14 2019 Jakub Hrozek <jhrozek@redhat.com> - 1.0-1
|
|
|
|
|
- New upstream release
|
|
|
|
|
- Resolves: rhbz#1553890 - [RFE] Add mod_auth_openidc support
|
|
|
|
|
* Thu Nov 29 2018 Miro Hrončok <mhroncok@redhat.com> - 0.8-8
|
|
|
|
|
- Remove python2 subpackage from Fedora 30+ (#1627398)
|
|
|
|
|
|
|
|
|
|
* Fri Jul 27 2018 <jdennis@redhat.com> - 0.8-7
|
|
|
|
|
- fix SOURCE0, it was pointing to github repo archive instead of release tarball
|
|
|
|
|
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.8-7
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Tue Jul 10 2018 <jdennis@redhat.com> - 0.8-6
|
|
|
|
|
- Restore use of bcond for python conditionals
|
|
|
|
|
|
|
|
|
|
* Mon Jul 9 2018 <jdennis@redhat.com> - 0.8-5
|
|
|
|
|
- Share same spec file with Fedora
|
|
|
|
|
- Share same spec file with RHEL
|
|
|
|
|
|
|
|
|
|
* Mon Jun 11 2018 Charalampos Stratakis <cstratak@redhat.com> - 0.8-4
|
|
|
|
|
- Conditionalize the python2 subpackage
|
|
|
|
|
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 0.8-4
|
|
|
|
|
- Rebuilt for Python 3.7
|
|
|
|
|
|
|
|
|
|
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.8-3
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
|
|