%global orig_name nginx-acme %global nginx_version 2:1.28.2 %global nginx_src_ver 1.28.2-1%{?dist} Name: nginx-mod-acme Version: 0.3.1 Release: 1%{?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 Patch: fedora-nginx-api-changes.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: rust-openssl-devel #BuildRequires: rust-openssl-sys-devel #BuildRequires: rust-openssl-sys+bindgen-devel #BuildRequires: rust-openssl-sys+default-devel 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 * Mon Mar 02 2026 Patrick Laimbock - 0.3.1 - initial release of version 0.3.1 - thanks Aleksei Bavshin for the patch