2016-01-12 10:44:59 +00:00
|
|
|
%{!?_httpd_mmn: %{expand: %%global _httpd_mmn %%(cat %{_includedir}/httpd/.mmn || echo 0-0)}}
|
2016-03-21 21:28:09 +00:00
|
|
|
%{!?_httpd_moddir: %{expand: %%global _httpd_moddir %%{_libdir}/httpd/modules}}
|
|
|
|
%{!?_httpd_confdir: %{expand: %%global _httpd_confdir %{_sysconfdir}/httpd/conf.d}}
|
2016-01-12 10:44:59 +00:00
|
|
|
|
2016-03-23 00:39:34 +00:00
|
|
|
# Optionally build with hiredis if --with hiredis is passed
|
|
|
|
%{!?_with_hiredis: %{!?_without_hiredis: %global _without_hiredis --without-hiredis}}
|
|
|
|
# It is an error if both or neither required options exist.
|
|
|
|
%{?_with_hiredis: %{?_without_hiredis: %{error: both _with_hiredis and _without_hiredis}}}
|
|
|
|
%{!?_with_hiredis: %{!?_without_hiredis: %{error: neither _with_hiredis nor _without_hiredis}}}
|
|
|
|
|
2016-01-12 10:44:59 +00:00
|
|
|
# /etc/httpd/conf.d with httpd < 2.4 and defined as /etc/httpd/conf.modules.d with httpd >= 2.4
|
|
|
|
%{!?_httpd_modconfdir: %{expand: %%global _httpd_modconfdir %%{_sysconfdir}/httpd/conf.d}}
|
|
|
|
|
2016-03-21 21:28:09 +00:00
|
|
|
%global httpd_pkg_cache_dir /var/cache/httpd/mod_auth_openidc
|
|
|
|
|
2015-11-09 20:50:00 +00:00
|
|
|
Name: mod_auth_openidc
|
2016-07-12 15:31:07 +00:00
|
|
|
Version: 1.8.10.1
|
2017-07-26 22:03:30 +00:00
|
|
|
Release: 4%{?dist}
|
2015-11-09 20:50:00 +00:00
|
|
|
Summary: OpenID Connect auth module for Apache HTTP Server
|
|
|
|
|
|
|
|
Group: System Environment/Daemons
|
|
|
|
License: ASL 2.0
|
|
|
|
URL: https://github.com/pingidentity/mod_auth_openidc
|
|
|
|
Source0: https://github.com/pingidentity/mod_auth_openidc/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
|
|
|
|
2017-02-18 00:26:04 +00:00
|
|
|
Patch1: jose.patch
|
|
|
|
|
2015-11-09 20:50:00 +00:00
|
|
|
BuildRequires: httpd-devel
|
|
|
|
BuildRequires: openssl-devel
|
|
|
|
BuildRequires: curl-devel
|
|
|
|
BuildRequires: jansson-devel
|
|
|
|
BuildRequires: pcre-devel
|
|
|
|
BuildRequires: autoconf
|
|
|
|
BuildRequires: automake
|
2016-03-23 00:39:34 +00:00
|
|
|
%{?_with_hiresdis:BuildRequires: hiresdis-devel}
|
2015-11-09 20:50:00 +00:00
|
|
|
Requires: httpd-mmn = %{_httpd_mmn}
|
|
|
|
|
|
|
|
%description
|
|
|
|
This module enables an Apache 2.x web server to operate as
|
|
|
|
an OpenID Connect Relying Party and/or OAuth 2.0 Resource Server.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
2017-02-18 00:26:04 +00:00
|
|
|
%patch1 -p1
|
2015-11-09 20:50:00 +00:00
|
|
|
|
|
|
|
%build
|
|
|
|
# workaround rpm-buildroot-usage
|
|
|
|
export MODULES_DIR=%{_httpd_moddir}
|
2016-03-29 23:05:16 +00:00
|
|
|
export APXS2_OPTS='-S LIBEXECDIR=${MODULES_DIR}'
|
2015-11-09 20:50:00 +00:00
|
|
|
autoreconf
|
2016-03-23 00:39:34 +00:00
|
|
|
%configure \
|
|
|
|
%{?_with_hiredis} \
|
|
|
|
%{?_without_hiredis}
|
|
|
|
|
2015-11-09 20:50:00 +00:00
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
2016-03-29 23:05:16 +00:00
|
|
|
%check
|
|
|
|
export MODULES_DIR=%{_httpd_moddir}
|
|
|
|
make %{?_smp_mflags} test
|
|
|
|
|
2015-11-09 20:50:00 +00:00
|
|
|
%install
|
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_httpd_moddir}
|
|
|
|
make install MODULES_DIR=$RPM_BUILD_ROOT%{_httpd_moddir}
|
|
|
|
|
|
|
|
install -m 755 -d $RPM_BUILD_ROOT%{_httpd_modconfdir}
|
|
|
|
echo 'LoadModule auth_openidc_module modules/mod_auth_openidc.so' > \
|
|
|
|
$RPM_BUILD_ROOT%{_httpd_modconfdir}/10-auth_openidc.conf
|
|
|
|
|
2016-03-21 21:28:09 +00:00
|
|
|
install -m 755 -d $RPM_BUILD_ROOT%{_httpd_confdir}
|
|
|
|
install -m 644 auth_openidc.conf $RPM_BUILD_ROOT%{_httpd_confdir}
|
|
|
|
# Adjust httpd cache location in install config file
|
|
|
|
sed -i 's!/var/cache/apache2/!/var/cache/httpd/!' $RPM_BUILD_ROOT%{_httpd_confdir}/auth_openidc.conf
|
|
|
|
install -m 700 -d $RPM_BUILD_ROOT%{httpd_pkg_cache_dir}
|
|
|
|
install -m 700 -d $RPM_BUILD_ROOT%{httpd_pkg_cache_dir}/metadata
|
|
|
|
install -m 700 -d $RPM_BUILD_ROOT%{httpd_pkg_cache_dir}/cache
|
|
|
|
|
|
|
|
|
2015-11-09 20:50:00 +00:00
|
|
|
%files
|
2016-01-12 10:44:59 +00:00
|
|
|
%if 0%{?rhel} && 0%{?rhel} < 7
|
|
|
|
%doc LICENSE.txt
|
|
|
|
%else
|
2015-11-09 20:50:00 +00:00
|
|
|
%license LICENSE.txt
|
2016-01-12 10:44:59 +00:00
|
|
|
%endif
|
2015-11-09 20:50:00 +00:00
|
|
|
%doc ChangeLog
|
2016-03-21 21:28:09 +00:00
|
|
|
%doc AUTHORS
|
|
|
|
%doc DISCLAIMER
|
|
|
|
%doc README.md
|
2015-11-09 20:50:00 +00:00
|
|
|
%{_httpd_moddir}/mod_auth_openidc.so
|
|
|
|
%config(noreplace) %{_httpd_modconfdir}/10-auth_openidc.conf
|
2016-03-21 21:28:09 +00:00
|
|
|
%config(noreplace) %{_httpd_confdir}/auth_openidc.conf
|
|
|
|
%dir %attr(0700, apache, apache) %{httpd_pkg_cache_dir}
|
|
|
|
%dir %attr(0700, apache, apache) %{httpd_pkg_cache_dir}/metadata
|
|
|
|
%dir %attr(0700, apache, apache) %{httpd_pkg_cache_dir}/cache
|
2015-11-09 20:50:00 +00:00
|
|
|
|
|
|
|
%changelog
|
2017-07-26 22:03:30 +00:00
|
|
|
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.8.10.1-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
|
|
2017-02-18 00:26:04 +00:00
|
|
|
* Sat Feb 18 2017 John Dennis <jdennis@redhat.com> - 1.8.10.1-3
|
|
|
|
- Resolves: #1423956 fails to build with openssl 1.1.x
|
|
|
|
Also rolls up all fixes to jose library before the change over to cjose
|
|
|
|
|
2017-02-10 21:32:23 +00:00
|
|
|
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.8.10.1-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
|
|
2016-07-12 15:31:07 +00:00
|
|
|
* Tue Jul 12 2016 John Dennis <jdennis@redhat.com> - 1.8.10.1-1
|
|
|
|
- Upgrade to new upstream
|
|
|
|
See /usr/share/doc/mod_auth_openidc/ChangeLog for details
|
|
|
|
|
2016-03-29 23:25:46 +00:00
|
|
|
* Tue Mar 29 2016 John Dennis <jdennis@redhat.com> - 1.8.8-4
|
|
|
|
- Add %check to run test
|
|
|
|
|
|
|
|
* Wed Mar 23 2016 John Dennis <jdennis@redhat.com> - 1.8.8-3
|
|
|
|
- Make building with redis support optional (defaults to without)
|
|
|
|
|
2016-03-21 21:50:51 +00:00
|
|
|
* Mon Mar 21 2016 John Dennis <jdennis@redhat.com> - 1.8.8-2
|
|
|
|
- Add missing unpackaged files/directories
|
|
|
|
|
|
|
|
Add to doc: README.md, DISCLAIMER, AUTHORS
|
|
|
|
Add to httpd/conf.d: auth_openidc.conf
|
|
|
|
Add to /var/cache: /var/cache/httpd/mod_auth_openidc/cache
|
|
|
|
/var/cache/httpd/mod_auth_openidc/metadata
|
|
|
|
|
2016-03-10 12:35:52 +00:00
|
|
|
* Thu Mar 10 2016 Jan Pazdziora <jpazdziora@redhat.com> 1.8.8-1
|
|
|
|
- Update to 1.8.8 (#1316528)
|
|
|
|
|
2016-02-04 08:33:55 +00:00
|
|
|
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.8.7-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
|
|
2016-01-11 15:46:12 +00:00
|
|
|
* Sat Jan 09 2016 Fedora Release Monitoring <release-monitoring@fedoraproject.org> - 1.8.7-1
|
|
|
|
- Update to 1.8.7 (#1297080)
|
|
|
|
|
2015-11-09 20:50:00 +00:00
|
|
|
* Sat Nov 07 2015 Jan Pazdziora <jpazdziora@redhat.com> 1.8.6-1
|
|
|
|
- Initial packaging for Fedora 23.
|