|
|
6b59cac |
%global srcname keycloak-httpd-client-install
|
|
|
6b59cac |
%global summary Tools to configure Apache HTTPD as Keycloak client
|
|
|
6b59cac |
|
|
|
6b59cac |
%if 0%{?fedora}
|
|
|
6b59cac |
%global with_python3 1
|
|
|
6b59cac |
%endif
|
|
|
6b59cac |
|
|
|
6b59cac |
Name: %{srcname}
|
|
|
f9e0e05 |
Version: 0.8
|
|
|
0f8ceb9 |
Release: 1%{?dist}
|
|
|
6b59cac |
Summary: %{summary}
|
|
|
6b59cac |
|
|
|
6b59cac |
%global git_tag RELEASE_%(r=%{version}; echo $r | tr '.' '_')
|
|
|
6b59cac |
|
|
|
6b59cac |
License: GPLv3
|
|
|
6b59cac |
URL: https://github.com/jdennis/keycloak-httpd-client-install
|
|
|
6b59cac |
Source0: https://github.com/jdennis/keycloak-httpd-client-install/archive/%{git_tag}.tar.gz#/%{srcname}-%{version}.tar.gz
|
|
|
6b59cac |
|
|
|
6b59cac |
BuildArch: noarch
|
|
|
6b59cac |
|
|
|
6b59cac |
BuildRequires: python2-devel
|
|
|
6b59cac |
%if 0%{?with_python3}
|
|
|
6b59cac |
BuildRequires: python3-devel
|
|
|
6b59cac |
%endif
|
|
|
6b59cac |
|
|
|
6b59cac |
Requires: %{_bindir}/keycloak-httpd-client-install
|
|
|
6b59cac |
|
|
|
6b59cac |
%description
|
|
|
6b59cac |
Keycloak is a federated Identity Provider (IdP). Apache HTTPD supports
|
|
|
6b59cac |
a variety of authentication modules which can be configured to utilize
|
|
|
6b59cac |
a Keycloak IdP to perform authentication. This package contains
|
|
|
6b59cac |
libraries and tools which can automate and simplify configuring an
|
|
|
6b59cac |
Apache HTTPD authentication module and registering as a client of a
|
|
|
6b59cac |
Keycloak IdP.
|
|
|
6b59cac |
|
|
|
6b59cac |
%package -n python2-%{srcname}
|
|
|
6b59cac |
Summary: %{summary}
|
|
|
6b59cac |
|
|
|
6b59cac |
%{?python_provide:%python_provide python2-%{srcname}}
|
|
|
6b59cac |
|
|
|
6b59cac |
Requires: %{name} = %{version}-%{release}
|
|
|
6b59cac |
Requires: python-requests
|
|
|
6b59cac |
Requires: python-requests-oauthlib
|
|
|
6b59cac |
Requires: python-jinja2
|
|
|
6b59cac |
Requires: %{_bindir}/keycloak-httpd-client-install
|
|
|
6b59cac |
|
|
|
6b59cac |
%description -n python2-%{srcname}
|
|
|
6b59cac |
Keycloak is an authentication server. This package contains libraries and
|
|
|
6b59cac |
programs which can invoke the Keycloak REST API and configure clients
|
|
|
6b59cac |
of a Keycloak server.
|
|
|
6b59cac |
|
|
|
6b59cac |
%if 0%{?with_python3}
|
|
|
6b59cac |
%package -n python3-%{srcname}
|
|
|
6b59cac |
Summary: %{summary}
|
|
|
6b59cac |
|
|
|
6b59cac |
%{?python_provide:%python_provide python3-%{srcname}}
|
|
|
6b59cac |
|
|
|
6b59cac |
Requires: %{name} = %{version}-%{release}
|
|
|
6b59cac |
Requires: python3-requests
|
|
|
6b59cac |
Requires: python3-requests-oauthlib
|
|
|
6b59cac |
Requires: python3-jinja2
|
|
|
6b59cac |
|
|
|
6b59cac |
%description -n python3-%{srcname}
|
|
|
6b59cac |
Keycloak is an authentication server. This package contains libraries and
|
|
|
6b59cac |
programs which can invoke the Keycloak REST API and configure clients
|
|
|
6b59cac |
of a Keycloak server.
|
|
|
6b59cac |
|
|
|
6b59cac |
%endif
|
|
|
6b59cac |
|
|
|
6b59cac |
%prep
|
|
|
6b59cac |
%autosetup -n %{srcname}-%{version}
|
|
|
6b59cac |
|
|
|
6b59cac |
%build
|
|
|
6b59cac |
%py2_build
|
|
|
6b59cac |
%if 0%{?with_python3}
|
|
|
6b59cac |
%py3_build
|
|
|
6b59cac |
%endif
|
|
|
6b59cac |
|
|
|
6b59cac |
%install
|
|
|
6b59cac |
# Must do the python2 install first because the scripts in /usr/bin are
|
|
|
6b59cac |
# overwritten with every setup.py install, and in general we want the
|
|
|
6b59cac |
# python3 version to be the default.
|
|
|
6b59cac |
%py2_install
|
|
|
6b59cac |
%if 0%{?with_python3}
|
|
|
6b59cac |
# py3_install won't overwrite files if they have a timestamp greater-than
|
|
|
6b59cac |
# or equal to the py2 installed files. If both the py2 and py3 builds execute
|
|
|
6b59cac |
# quickly the files end up with the same timestamps thus leaving the py2
|
|
|
6b59cac |
# version in the py3 install. Therefore remove any files susceptible to this.
|
|
|
6b59cac |
rm %{buildroot}%{_bindir}/keycloak-httpd-client-install
|
|
|
6b59cac |
%py3_install
|
|
|
6b59cac |
%endif
|
|
|
6b59cac |
|
|
|
6b59cac |
install -d -m 755 %{buildroot}/%{_mandir}/man8
|
|
|
6b59cac |
install -c -m 644 doc/keycloak-httpd-client-install.8 %{buildroot}/%{_mandir}/man8
|
|
|
6b59cac |
|
|
|
6b59cac |
%files
|
|
|
6b59cac |
%license LICENSE.txt
|
|
|
6b59cac |
%doc README.md doc/ChangeLog
|
|
|
6b59cac |
%{_datadir}/%{srcname}/
|
|
|
6b59cac |
|
|
|
6b59cac |
# Note that there is no %%files section for the unversioned python module if we are building for several python runtimes
|
|
|
6b59cac |
%files -n python2-%{srcname}
|
|
|
6b59cac |
%{python2_sitelib}/*
|
|
|
6b59cac |
%if ! 0%{?with_python3}
|
|
|
6b59cac |
%{_bindir}/keycloak-httpd-client-install
|
|
|
6b59cac |
%{_mandir}/man8/*
|
|
|
6b59cac |
%endif
|
|
|
6b59cac |
|
|
|
6b59cac |
%if 0%{?with_python3}
|
|
|
6b59cac |
%files -n python3-%{srcname}
|
|
|
6b59cac |
%{python3_sitelib}/*
|
|
|
6b59cac |
%{_bindir}/keycloak-httpd-client-install
|
|
|
6b59cac |
%{_mandir}/man8/*
|
|
|
6b59cac |
%endif
|
|
|
6b59cac |
|
|
|
6b59cac |
%changelog
|
|
|
f9e0e05 |
* Wed Jan 10 2018 John Dennis <jdennis@redhat.com> - 0.8-1
|
|
|
f9e0e05 |
- Upgrade to upstream 0,8, includes:
|
|
|
f9e0e05 |
- CVE-2017-15112 unsafe use of -p/--admin-password on command line
|
|
|
f9e0e05 |
- CVE-2017-15111 unsafe /tmp log file in --log-file option in keycloak_cli.py
|
|
|
f9e0e05 |
|
|
|
0f8ceb9 |
* Wed Mar 1 2017 John Dennis <jdennis@redhat.com> - 0.6-1
|
|
|
0f8ceb9 |
- Resolves: rhbz#1427720, if --mellon-root is not supplied and defaults to /
|
|
|
0f8ceb9 |
you end up with double slashes in entityId and endpoints
|
|
|
0f8ceb9 |
- add --tls-verify option to control python-requests behavor when
|
|
|
0f8ceb9 |
using tls to connect. With this option you can use a self-signed
|
|
|
0f8ceb9 |
cert or point to a CA bundle.
|
|
|
0f8ceb9 |
- Fix warnings and checks when using client originate method
|
|
|
0f8ceb9 |
'registration' with 'anonymous' authentication.
|
|
|
0f8ceb9 |
|
|
|
5f5c166 |
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.5-2
|
|
|
5f5c166 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
5f5c166 |
|
|
|
7dd1aa9 |
* Fri Jan 6 2017 John Dennis <jdennis@redhat.com> - 0.5-1
|
|
|
7dd1aa9 |
- Fix default port bug
|
|
|
7dd1aa9 |
Strip the port from the URL if it matches the scheme (e.g. 80 for
|
|
|
7dd1aa9 |
http and 443 for https)
|
|
|
7dd1aa9 |
|
|
|
29fa952 |
* Mon Dec 19 2016 Miro HronĨok <mhroncok@redhat.com> - 0.4-3
|
|
|
29fa952 |
- Rebuild for Python 3.6
|
|
|
29fa952 |
|
|
|
f7d02ae |
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4-2
|
|
|
f7d02ae |
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
|
|
|
f7d02ae |
|
|
|
a3050f2 |
* Mon Jun 27 2016 John Dennis <jdennis@redhat.com> - 0.4-1
|
|
|
a3050f2 |
- new upstream
|
|
|
a3050f2 |
See ChangeLog for details
|
|
|
a3050f2 |
|
|
|
6b59cac |
* Fri May 20 2016 John Dennis <jdennis@redhat.com> - 0.3-1
|
|
|
6b59cac |
- new upstream
|
|
|
6b59cac |
See ChangeLog for details
|
|
|
6b59cac |
|
|
|
6b59cac |
* Tue May 17 2016 John Dennis <jdennis@redhat.com> - 0.2-1
|
|
|
6b59cac |
- new upstream
|
|
|
6b59cac |
- Add keycloak-httpd-client-install.8 man page
|
|
|
6b59cac |
|
|
|
6b59cac |
* Fri May 13 2016 John Dennis <jdennis@redhat.com> - 0.1-1
|
|
|
6b59cac |
- Initial version
|