From e8ecf1842968b4971fb38922ac8e58720110d0fe Mon Sep 17 00:00:00 2001 From: Jan Pazdziora Date: Mon, 9 Nov 2015 21:50:00 +0100 Subject: [PATCH] Imported mod_auth_openidc-1.8.6-1. --- .gitignore | 1 + mod_auth_openidc.spec | 52 +++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 54 insertions(+) create mode 100644 mod_auth_openidc.spec diff --git a/.gitignore b/.gitignore index e69de29..a671b9a 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/mod_auth_openidc-1.8.6.tar.gz diff --git a/mod_auth_openidc.spec b/mod_auth_openidc.spec new file mode 100644 index 0000000..d2e0941 --- /dev/null +++ b/mod_auth_openidc.spec @@ -0,0 +1,52 @@ +Name: mod_auth_openidc +Version: 1.8.6 +Release: 1%{?dist} +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 + +BuildRequires: httpd-devel +BuildRequires: openssl-devel +BuildRequires: curl-devel +BuildRequires: jansson-devel +BuildRequires: hiredis-devel +BuildRequires: pcre-devel +BuildRequires: autoconf +BuildRequires: automake +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 + +%build +# workaround rpm-buildroot-usage +export APXS2_OPTS='-S LIBEXECDIR=${MODULES_DIR}' +export MODULES_DIR=%{_httpd_moddir} +autoreconf +%configure +make %{?_smp_mflags} + +%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 + +%files +%license LICENSE.txt +%doc ChangeLog +%{_httpd_moddir}/mod_auth_openidc.so +%config(noreplace) %{_httpd_modconfdir}/10-auth_openidc.conf + +%changelog +* Sat Nov 07 2015 Jan Pazdziora 1.8.6-1 +- Initial packaging for Fedora 23. diff --git a/sources b/sources index e69de29..9cfc514 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +6735114a71c098c3f036f64903737292 mod_auth_openidc-1.8.6.tar.gz