## 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}/releases/download/v%{version}/ngx-fancyindex-%{version}.tar.xz Source1: %{url}/releases/download/v%{version}/ngx-fancyindex-%{version}.tar.xz.sig Source2: https://keys.openpgp.org/vks/v1/by-fingerprint/5AA3BC334FD7E3369E7C77B291C559DBE4C9123B BuildRequires: gcc BuildRequires: gnupg2 BuildRequires: nginx-mod-devel %description %{summary}. %prep %{gpgverify} --keyring='%{SOURCE2}' --signature='%{SOURCE1}' --data='%{SOURCE0}' %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 CHANGELOG.md README.rst %{nginx_moddir}/ngx_http_fancyindex_module.so %{nginx_modconfdir}/mod-fancyindex.conf %changelog * Thu Oct 19 2023 LuK1337 - 0.5.2-1 - init