## START: Set by rpmautospec ## (rpmautospec version 0.8.2) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 1; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec %global nginx_modname acme %global origname nginx-acme %bcond check 0 Name: nginx-mod-acme Version: 0.1.1 Release: %autorelease -p Summary: NGINX module with the implementation of the ACMEv2 protocol # Apache-2.0 # Apache-2.0 OR BSL-1.0 # Apache-2.0 OR MIT # MIT # MIT OR Apache-2.0 # Unlicense OR MIT SourceLicense: Apache-2.0 License: %{shrink: Apache-2.0 AND (Apache-2.0 OR BSL-1.0) AND (Apache-2.0 OR MIT) AND MIT AND (Unlicense OR MIT) } # LICENSE.dependencies contains a full license breakdown URL: https://github.com/nginx/nginx-acme Source0: %{url}/releases/download/v%{version}/%{origname}-%{version}.tar.gz Source1: %{url}/releases/download/v%{version}/%{origname}-%{version}.tar.gz.asc # Aleksei Bavshin Source2: gpgkey-88D86227C5BFE42D.gpg Patch: nginx-mod-acme-0.1.1-Update-ngx-to-0.5.0.patch # Not upstreamable. Patch: fedora-nginx-api-changes.patch BuildRequires: cargo-rpm-macros >= 24 BuildRequires: gcc BuildRequires: nginx-mod-devel BuildRequires: openssl-devel %global _description %{expand: nginx-acme is an NGINX module with the implementation of the automatic certificate management (ACMEv2) protocol.} %description %{_description} %prep %autosetup -n %{origname}-%{version} -p1 %cargo_prep %generate_buildrequires %cargo_generate_buildrequires %build %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}) %cargo_build %{cargo_license_summary} %{cargo_license} > LICENSE.dependencies %install install -dm 0755 %{buildroot}%{nginx_moddir} install -pm 0755 target/rpm/libnginx_acme.so \ %{buildroot}%{nginx_moddir}/ngx_http_acme_module.so install -dm 0755 %{buildroot}%{nginx_modconfdir} echo 'load_module "%{nginx_moddir}/ngx_http_acme_module.so";' \ > %{buildroot}%{nginx_modconfdir}/mod-acme.conf %if %{with check} %check export NGX_ACME_STATE_PREFIX=%{_localstatedir}/lib/nginx export NGINX_BUILD_DIR=$(realpath %{_vpath_builddir}) export NGINX_SOURCE_DIR=$(realpath %{_nginx_buildsrcdir}) %cargo_test %endif %files %doc README.md %license LICENSE %license LICENSE.dependencies %{nginx_moddir}/ngx_http_acme_module.so %{nginx_modconfdir}/mod-acme.conf %changelog ## START: Generated by rpmautospec * Tue Sep 16 2025 Aleksei Bavshin - 0.1.1-0.1 - Initial package ## END: Generated by rpmautospec