Blame mod_auth_openidc.spec

4a40cff
%{!?_httpd_mmn: %{expand: %%global _httpd_mmn %%(cat %{_includedir}/httpd/.mmn || echo 0-0)}}
116723e
%{!?_httpd_moddir: %{expand: %%global _httpd_moddir %%{_libdir}/httpd/modules}}
116723e
%{!?_httpd_confdir: %{expand: %%global _httpd_confdir %{_sysconfdir}/httpd/conf.d}}
4a40cff
8f2cd88
# Optionally build with hiredis if --with hiredis is passed
8f2cd88
%{!?_with_hiredis: %{!?_without_hiredis: %global _without_hiredis --without-hiredis}}
8f2cd88
# It is an error if both or neither required options exist.
8f2cd88
%{?_with_hiredis: %{?_without_hiredis: %{error: both _with_hiredis and _without_hiredis}}}
8f2cd88
%{!?_with_hiredis: %{!?_without_hiredis: %{error: neither _with_hiredis nor _without_hiredis}}}
8f2cd88
4a40cff
# /etc/httpd/conf.d with httpd < 2.4 and defined as /etc/httpd/conf.modules.d with httpd >= 2.4
4a40cff
%{!?_httpd_modconfdir: %{expand: %%global _httpd_modconfdir %%{_sysconfdir}/httpd/conf.d}}
4a40cff
116723e
%global httpd_pkg_cache_dir /var/cache/httpd/mod_auth_openidc
116723e
e8ecf18
Name:		mod_auth_openidc
d53cc08
Version:	2.4.3
6a5f203
Release:	2%{?dist}
e8ecf18
Summary:	OpenID Connect auth module for Apache HTTP Server
e8ecf18
e8ecf18
License:	ASL 2.0
Patrick Uiterwijk 58df408
URL:		https://github.com/zmartzone/mod_auth_openidc
3f459f3
Source0:	https://github.com/zmartzone/mod_auth_openidc/archive/v%{version}.tar.gz
4309441
Igor Gnatenko 83e0e75
BuildRequires:  gcc
e8ecf18
BuildRequires:	httpd-devel
e8ecf18
BuildRequires:	openssl-devel
e8ecf18
BuildRequires:	curl-devel
e8ecf18
BuildRequires:	jansson-devel
e8ecf18
BuildRequires:	pcre-devel
e8ecf18
BuildRequires:	autoconf
e8ecf18
BuildRequires:	automake
Patrick Uiterwijk 58df408
BuildRequires:	cjose-devel
Patrick Uiterwijk 58df408
BuildRequires:	jq-devel
Patrick Uiterwijk 58df408
%{?_with_hiredis:BuildRequires: hiredis-devel}
e8ecf18
Requires:	httpd-mmn = %{_httpd_mmn}
e8ecf18
e8ecf18
%description
e8ecf18
This module enables an Apache 2.x web server to operate as
e8ecf18
an OpenID Connect Relying Party and/or OAuth 2.0 Resource Server.
e8ecf18
e8ecf18
%prep
e8ecf18
%setup -q
e8ecf18
e8ecf18
%build
e8ecf18
# workaround rpm-buildroot-usage
e8ecf18
export MODULES_DIR=%{_httpd_moddir}
606914d
export APXS2_OPTS='-S LIBEXECDIR=${MODULES_DIR}'
e8ecf18
autoreconf
8f2cd88
%configure \
Patrick Uiterwijk 58df408
  --with-jq=/usr/lib64/ \
8f2cd88
  %{?_with_hiredis} \
8f2cd88
  %{?_without_hiredis}
8f2cd88
0d28b81
%{make_build}
e8ecf18
606914d
%check
606914d
export MODULES_DIR=%{_httpd_moddir}
Patrick Uiterwijk 58df408
export APXS2_OPTS='-S LIBEXECDIR=${MODULES_DIR}'
0d28b81
%{make_build} test
606914d
e8ecf18
%install
e8ecf18
mkdir -p $RPM_BUILD_ROOT%{_httpd_moddir}
e8ecf18
make install MODULES_DIR=$RPM_BUILD_ROOT%{_httpd_moddir}
e8ecf18
e8ecf18
install -m 755 -d $RPM_BUILD_ROOT%{_httpd_modconfdir}
e8ecf18
echo 'LoadModule auth_openidc_module modules/mod_auth_openidc.so' > \
e8ecf18
	$RPM_BUILD_ROOT%{_httpd_modconfdir}/10-auth_openidc.conf
e8ecf18
116723e
install -m 755 -d $RPM_BUILD_ROOT%{_httpd_confdir}
116723e
install -m 644 auth_openidc.conf $RPM_BUILD_ROOT%{_httpd_confdir}
116723e
# Adjust httpd cache location in install config file
116723e
sed -i 's!/var/cache/apache2/!/var/cache/httpd/!' $RPM_BUILD_ROOT%{_httpd_confdir}/auth_openidc.conf
116723e
install -m 700 -d $RPM_BUILD_ROOT%{httpd_pkg_cache_dir}
116723e
install -m 700 -d $RPM_BUILD_ROOT%{httpd_pkg_cache_dir}/metadata
116723e
install -m 700 -d $RPM_BUILD_ROOT%{httpd_pkg_cache_dir}/cache
116723e
116723e
e8ecf18
%files
4a40cff
%if 0%{?rhel} && 0%{?rhel} < 7
4a40cff
%doc LICENSE.txt
4a40cff
%else
e8ecf18
%license LICENSE.txt
4a40cff
%endif
e8ecf18
%doc ChangeLog
116723e
%doc AUTHORS
116723e
%doc README.md
e8ecf18
%{_httpd_moddir}/mod_auth_openidc.so
e8ecf18
%config(noreplace) %{_httpd_modconfdir}/10-auth_openidc.conf
116723e
%config(noreplace) %{_httpd_confdir}/auth_openidc.conf
116723e
%dir %attr(0700, apache, apache) %{httpd_pkg_cache_dir}
116723e
%dir %attr(0700, apache, apache) %{httpd_pkg_cache_dir}/metadata
116723e
%dir %attr(0700, apache, apache) %{httpd_pkg_cache_dir}/cache
e8ecf18
e8ecf18
%changelog
6a5f203
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.3-2
6a5f203
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
6a5f203
d53cc08
* Tue Jul 14 2020 Jakub Hrozek <jhrozek@redhat.com> - 2.4.3
d53cc08
- New upstream version 2.4.3
d53cc08
53a2ed4
* Sun May 10 2020 Jakub Hrozek <jhrozek@redhat.com> - 2.4.2.1-1
53a2ed4
- New upstream version 2.4.2.1
53a2ed4
- Resolves: rhbz#1805104 - CVE-2019-20479 mod_auth_openidc: open redirect
53a2ed4
                           issue exists in URLs with slash and backslash
53a2ed4
                           [fedora-all]
53a2ed4
- Resolves: rhbz#1816883 - mod_auth_openidc-2.4.2.1 is available
53a2ed4
0d28b81
* Thu Feb 13 2020 Tom Stellard <tstellar@redhat.com> - 2.4.1-2
0d28b81
- Use make_build macro instead of just make
0d28b81
- https://docs.fedoraproject.org/en-US/packaging-guidelines/#_parallel_make
0d28b81
7a678fa
* Mon Feb  3 2020 Jakub Hrozek <jhrozek@redhat.com> - 2.4.1-1
7a678fa
- New upstream version 2.4.1
7a678fa
edda6ed
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.0.4-2
edda6ed
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
edda6ed
275c072
* Thu Nov 21 2019 Jakub Hrozek <jhrozek@redhat.com> - 2.4.0.4-1
275c072
- New upstream version 2.4.0.4
275c072
9401a5f
* Fri Oct  4 2019 Jakub Hrozek <jhrozek@redhat.com> - 2.4.0.3-1
3f459f3
- New upstream version 2.4.0.3
3f459f3
0594cbb
* Fri Aug 23 2019 Jakub Hrozek <jhrozek@redhat.com> - 2.4.0
0594cbb
- New upstream version 2.4.0
0594cbb
- Resolves: rhbz#1374884 - mod_auth_openidc-2.4.0 is available
0594cbb
754fae2
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.7-5
754fae2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
754fae2
95f4796
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.7-4
95f4796
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
95f4796
f8783c3
* Thu Aug 16 2018  <jdennis@redhat.com> - 2.3.7-3
f8783c3
- update test-segfault.patch to match upstream
f8783c3
c2434ec
* Tue Aug 14 2018  <jdennis@redhat.com> - 2.3.7-2
c2434ec
- Resolves: rhbz# 1614977 - fix unit test segfault,
c2434ec
  the problem was not limited exclusively to s390x, but s390x provoked it.
c2434ec
867fe43
* Wed Aug  1 2018  <jdennis@redhat.com> - 2.3.7-1
867fe43
- upgrade to upstream 2.3.7
867fe43
a321bca
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.5-2
a321bca
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
a321bca
Patrick Uiterwijk 58df408
* Wed May 23 2018 Patrick Uiterwijk <patrick@puiterwijk.org> - 2.3.5-1
Patrick Uiterwijk 58df408
- Rebase to 2.3.5
Patrick Uiterwijk 58df408
af18e93
* Fri Feb 09 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.8.10.1-7
af18e93
- Escape macros in %%changelog
af18e93
5dda8e7
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.8.10.1-6
5dda8e7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
5dda8e7
c168a41
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.8.10.1-5
c168a41
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
c168a41
18f9a0f
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.8.10.1-4
18f9a0f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
18f9a0f
4309441
* Sat Feb 18 2017 John Dennis <jdennis@redhat.com> - 1.8.10.1-3
4309441
- Resolves: #1423956 fails to build with openssl 1.1.x
4309441
  Also rolls up all fixes to jose library before the change over to cjose
4309441
2f44085
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.8.10.1-2
2f44085
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
2f44085
b97cff7
* Tue Jul 12 2016 John Dennis <jdennis@redhat.com> - 1.8.10.1-1
b97cff7
- Upgrade to new upstream
b97cff7
  See /usr/share/doc/mod_auth_openidc/ChangeLog for details
b97cff7
a324853
* Tue Mar 29 2016 John Dennis <jdennis@redhat.com> - 1.8.8-4
af18e93
- Add %%check to run test
a324853
a324853
* Wed Mar 23 2016 John Dennis <jdennis@redhat.com> - 1.8.8-3
a324853
- Make building with redis support optional (defaults to without)
a324853
b59c6f3
* Mon Mar 21 2016 John Dennis <jdennis@redhat.com> - 1.8.8-2
b59c6f3
- Add missing unpackaged files/directories
b59c6f3
b59c6f3
  Add to doc: README.md, DISCLAIMER, AUTHORS
b59c6f3
  Add to httpd/conf.d: auth_openidc.conf
b59c6f3
  Add to /var/cache: /var/cache/httpd/mod_auth_openidc/cache
b59c6f3
                     /var/cache/httpd/mod_auth_openidc/metadata
b59c6f3
ccf3035
* Thu Mar 10 2016 Jan Pazdziora <jpazdziora@redhat.com> 1.8.8-1
ccf3035
- Update to 1.8.8 (#1316528)
ccf3035
0db7a61
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.8.7-2
0db7a61
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
0db7a61
ab63949
* Sat Jan 09 2016 Fedora Release Monitoring <release-monitoring@fedoraproject.org> - 1.8.7-1
ab63949
- Update to 1.8.7 (#1297080)
ab63949
e8ecf18
* Sat Nov 07 2015 Jan Pazdziora <jpazdziora@redhat.com> 1.8.6-1
e8ecf18
- Initial packaging for Fedora 23.