## START: Set by rpmautospec ## (rpmautospec version 0.3.5) ## 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 Name: nginx-mod-fancyindex Version: 0.5.2 Release: %autorelease Summary: Nginx FancyIndex module License: BSD-2-Clause URL: https://github.com/aperezdc/ngx-fancyindex Source0: %{url}/archive/v%{version}.tar.gz BuildRequires: gcc BuildRequires: nginx-mod-devel %description %{summary}. %prep %autosetup -n ngx-fancyindex-%{version} %build %nginx_modconfigure %nginx_modbuild %install pushd %{_vpath_builddir} install -dm 0755 %{buildroot}%{nginx_moddir} install -pm 0755 ngx_http_fancyindex_module.so %{buildroot}%{nginx_moddir} popd install -dm 0755 %{buildroot}%{nginx_modconfdir} echo 'load_module "%{nginx_moddir}/ngx_http_fancyindex_module.so";' \ > %{buildroot}%{nginx_modconfdir}/mod-fancyindex.conf %files %license LICENSE %doc README.rst %{nginx_moddir}/ngx_http_fancyindex_module.so %{nginx_modconfdir}/mod-fancyindex.conf %changelog * Sun Aug 27 2023 John Doe - 0.5.2-1 - Uncommitted changes