%global orig_name nginx-acme %global nginx_version 2:1.31.0 #%%global nginx_src_ver 1.28.3-1%%{?dist} Name: nginx-mod-acme Version: 0.4.1 Release: 2%{?dist} Summary: ACMEv2 nginx module License: Apache-2.0 URL: https://github.com/nginx/nginx-acme Source: %{url}/archive/refs/tags/%{orig_name}-%{version}.tar.gz #Patch0: fedora-nginx-api-changes.patch Patch0: 0001-src-conf-ssl.rs-rebase-fedora-nginx-api-changes.patc.patch BuildRequires: cargo-rpm-macros >= 24 BuildRequires: cargo >= 1.81 BuildRequires: clang BuildRequires: gcc BuildRequires: nginx-mod-devel = %{nginx_version} BuildRequires: openssl-devel BuildRequires: pcre2-devel BuildRequires: pkgconf BuildRequires: zlib-ng-devel Requires: nginx-filesystem = %{nginx_version} %description nginx-acme is an NGINX module with the implementation of the automatic certificate management (ACMEv2) protocol. The module implements following specifications: - RFC8555 (Automatic Certificate Management Environment) with limitations: Only HTTP-01 challenge type is supported - RFC8737 (ACME TLS Application-Layer Protocol Negotiation (ALPN) Challenge Extension) - RFC8738 (ACME IP Identifier Validation Extension) - draft-ietf-acme-profiles (ACME Profiles Extension, version 00) %prep %autosetup -p1 -n %{orig_name}-%{version} %build #%%nginx_modconfigure --with-http_ssl_module --with-http_v2_module --with-pcre --with-stream --with-stream_ssl_module %nginx_modconfigure --with-http_ssl_module export NGX_ACME_STATE_PREFIX=%{_localstatedir}/lib/nginx export NGINX_BUILD_DIR=$(realpath %{_vpath_builddir}) export NGINX_SOURCE_DIR=$(realpath %{_nginx_buildsrcdir}) %nginx_modbuild %install pushd %{_vpath_builddir} install -dm 0755 %{buildroot}%{nginx_moddir} install -pm 0755 ngx_http_acme_module.so %{buildroot}%{nginx_moddir} install -dm 0755 %{buildroot}%{nginx_modconfdir} echo 'load_module "%{nginx_moddir}/ngx_http_acme_module.so";' \ > %{buildroot}%{nginx_modconfdir}/mod-ngx_http_acme_module.conf popd install -dm 0755 %{buildroot}%{_sysconfdir}/nginx/conf.d/ %files %license LICENSE %doc README.md %{nginx_moddir}/ngx_http_acme_module.so %{nginx_modconfdir}/mod-ngx_http_acme_module.conf %changelog * Thu May 14 2026 Patrick Laimbock - 0.4.1-2 - build against nginx-1.31.0 * Fri May 01 2026 Patrick Laimbock - 0.4.1-1 - update to version 0.4.1 * Tue Apr 28 2026 Patrick Laimbock - 0.4.0-2 - rebuild against nginx-1.30.0 * Mon Apr 27 2026 Patrick Laimbock - 0.4.0-1 - update to version 0.4.0 * Thu Mar 26 2026 Patrick Laimbock - 0.3.1-3 - build against nginx-2:1.28.3 * Thu Mar 26 2026 Patrick Laimbock - 0.3.1-2 - require nginx >= 1.28.2 so we can upgrade to 1.28.3 * Mon Mar 02 2026 Patrick Laimbock - 0.3.1-1 - initial release of version 0.3.1 - thanks Aleksei Bavshin for the patch