%global nginx_modname ngx_http_conninfo_module %global origname nginx_http_conninfo_module Name: nginx-mod-http-conninfo Version: 0.0.1 Release: 1%{?dist} Summary: Nginx http module to access additional information about the current TLS connection License: Apache-2.0 URL: https://github.com/QUBIP/%{origname} %dnl # Source0: %{URL}/archive/v%{version}/%{origname}-%{version}.tar.gz Source0: %{name}-%{version}.tar.gz BuildRequires: gcc BuildRequires: nginx-mod-devel BuildRequires: openssl-devel Requires: openssl-libs Requires: nginx-filesystem %description %{summary}. %prep %autosetup -n %{origname}-%{version} %build # * `--with-http_ssl_module` is added to ensure that `configure` checks for # availability of OpenSSL headers, as that is a pre-requisite of our module %nginx_modconfigure --with-http_ssl_module %nginx_modbuild %install pushd %{_vpath_builddir} install -dm 0755 %{buildroot}%{nginx_moddir} install -pm 0755 %{nginx_modname}.so %{buildroot}%{nginx_moddir} install -dm 0755 %{buildroot}%{nginx_modconfdir} echo 'load_module "%{nginx_moddir}/%{nginx_modname}.so";' \ > %{buildroot}%{nginx_modconfdir}/%{nginx_modname}.conf popd %files %license LICENSE %license NOTICE %doc README.md %{nginx_moddir}/%{nginx_modname}.so %{nginx_modconfdir}/%{nginx_modname}.conf %changelog * Tue Jan 20 2026 Nicola Tuveri - 0.0.1-1 - Initial packaging