%{!?_httpd_mmn: %{expand: %%global _httpd_mmn %%(cat %{_includedir}/httpd/.mmn 2>/dev/null || echo 0-0)}} Summary: A SAML 2.0 authentication module for the Apache Httpd Server Name: mod_auth_mellon Version: 0.19.1 Release: 5%{?dist} Source0: https://github.com/latchset/mod_auth_mellon/archive/v%{version}/%{name}-%{version}.tar.gz Source1: auth_mellon.conf Source2: 10-auth_mellon.conf Source3: mod_auth_mellon.conf Source4: mellon_create_metadata.sh Source5: README.redhat.rst Patch0: 0000-configure.patch License: GPL-2.0-or-later BuildRequires: make BuildRequires: gcc BuildRequires: curl-devel BuildRequires: glib2-devel BuildRequires: httpd-devel BuildRequires: lasso-devel >= 2.5.1-13 BuildRequires: openssl-devel BuildRequires: xmlsec1-devel BuildRequires: xmlsec1-openssl-devel BuildRequires: rubygem-asciidoctor BuildRequires: libtool-ltdl-devel BuildRequires: systemd-rpm-macros Requires: httpd-mmn = %{_httpd_mmn} Requires: lasso >= 2.5.1-13 Url: https://github.com/latchset/mod_auth_mellon %description The mod_auth_mellon module is an authentication service that implements the SAML 2.0 federation protocol. It grants access based on the attributes received in assertions generated by a IdP server. %prep %autosetup -n %{name}-%{version} -p1 chmod +x configure %build export APXS=%{_httpd_apxs} %configure --enable-diagnostics make clean %{make_build} cp .libs/%{name}.so %{name}-diagnostics.so %configure make clean %{make_build} pushd doc/user_guide asciidoctor -a data-uri mellon_user_guide.adoc popd %install # install module mkdir -p %{buildroot}%{_httpd_moddir} install -m 755 .libs/%{name}.so %{buildroot}%{_httpd_moddir} install -m 755 %{name}-diagnostics.so %{buildroot}%{_httpd_moddir} # install module configuration mkdir -p %{buildroot}%{_httpd_confdir} install -m 644 %{SOURCE1} %{buildroot}%{_httpd_confdir} mkdir -p %{buildroot}%{_httpd_modconfdir} install -m 644 %{SOURCE2} %{buildroot}%{_httpd_modconfdir} mkdir -p %{buildroot}%{_tmpfilesdir} install -m 644 %{SOURCE3} %{buildroot}%{_tmpfilesdir} mkdir -p %{buildroot}/run/%{name} # install script to generate metadata mkdir -p %{buildroot}/%{_libexecdir}/%{name} install -m 755 %{SOURCE4} %{buildroot}/%{_libexecdir}/%{name} #install documentation mkdir -p %{buildroot}/%{_pkgdocdir} # install Red Hat README install %{SOURCE5} %{buildroot}/%{_pkgdocdir} # install user guide cp -r doc/user_guide %{buildroot}/%{_pkgdocdir} %package diagnostics Summary: Build of mod_auth_mellon with diagnostic logging Requires: %{name} = %{version}-%{release} %description diagnostics Build of mod_auth_mellon with diagnostic logging. See README.redhat.rst in the doc directory for instructions on using the diagnostics build. %files diagnostics %{_httpd_moddir}/%{name}-diagnostics.so %files %license COPYING %doc README.md NEWS ECP.rst %doc %{_pkgdocdir}/README.redhat.rst %doc %{_pkgdocdir}/user_guide %config(noreplace) %{_httpd_modconfdir}/10-auth_mellon.conf %config(noreplace) %{_httpd_confdir}/auth_mellon.conf %{_httpd_moddir}/mod_auth_mellon.so %{_tmpfilesdir}/mod_auth_mellon.conf %{_libexecdir}/%{name} %dir /run/%{name}/ %changelog * Fri Jun 19 2026 Yaakov Selkowitz - 0.19.1-5 - Rebuilt for xmlsec 1.3 * Fri Jun 12 2026 Yaakov Selkowitz - 0.19.1-4 - Rebuilt for openssl 4.0 %autochangelog