## START: Set by rpmautospec ## (rpmautospec version 0.8.1) ## 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 commithash da6852df4103492f9136ef814cda0c7d402e0a90 %global origname ngx_http_js_challenge_module Name: nginx-mod-js-challenge Summary: Simple JavaScript proof-of-work based access for Nginx with virtually no overhead URL: https://github.com/simon987/%{origname} License: GPL-3.0-or-later Version: 0^20230517.git%(echo %{commithash}|head -c7) Release: %autorelease Source0: %{url}/archive/%{commithash}.zip Requires: nginx(abi) BuildRequires: gcc BuildRequires: make BuildRequires: nginx-mod-devel %description %{summary}. %prep %autosetup -p1 -n %{origname}-%{commithash} %build %nginx_modconfigure %nginx_modbuild %install pushd %{_vpath_builddir} install -dm 0755 %{buildroot}%{nginx_moddir} install -pm 0755 %{origname}.so %{buildroot}%{nginx_moddir} install -dm 0755 %{buildroot}%{nginx_modconfdir} echo 'load_module "%{nginx_moddir}/%{origname}.so";' \ > %{buildroot}%{nginx_modconfdir}/mod-js-challenge.conf popd %files %doc README.md %license LICENSE %{nginx_moddir}/%{origname}.so %{nginx_modconfdir}/mod-js-challenge.conf %changelog ## START: Generated by rpmautospec * Sat Oct 04 2025 John Doe - 0^20230517.gitda6852d-1 - Uncommitted changes ## END: Generated by rpmautospec