## START: Set by rpmautospec ## (rpmautospec version 0.3.0) %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 2; 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 # Generated by go2rpm 1.3 %bcond_without check # https://git.sr.ht/~adnano/kiln %global goipath git.sr.ht/~adnano/kiln %global forgeurl https://git.sr.ht/~adnano/kiln Version: 0.4.0 %global tag 0.4.0 %global repo kiln %global archivename %{repo}-%{tag} %global archiveext tar.gz %global archiveurl %{forgeurl}/archive/%{tag}.%{archiveext} %global topdir %{repo}-%{tag} %global extractdir %{repo}-%{tag} %global scm git %gometa %global common_description %{expand: A simple static site generator. Features - Simple - Extensible - Gemini support - Atom feeds - Go templates} Name: kiln Release: %autorelease Summary: Simple static site generator. License: MIT URL: %{gourl} Source0: %{gosource} # Disable building of kiln that we handle manually in the SPEC Patch0: kiln-fix-makefile.patch BuildRequires: scdoc %description %{common_description} %prep %goprep %patch0 -p1 %generate_buildrequires %go_generate_buildrequires %build export LDFLAGS="-X main.Version=%{version} " %gobuild -o %{gobuilddir}/bin/%{name} %{goipath} %make_build docs %install install -m 0755 -vd %{buildroot}%{_bindir} install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/ export PREFIX=%{_prefix} %make_install %if %{with check} %check %gocheck %endif %files %license COPYING %doc config.toml README.md %{_bindir}/%{name} %{_mandir}/man1/%{name}.1* %changelog * Thu Jan 19 2023 Fedora Release Engineering 0.4.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Sun Oct 23 2022 Robert-André Mauchin 0.4.0-1 - Update to 0.4.0 * Thu Jul 21 2022 Fedora Release Engineering 0.3.1-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Tue Jul 19 2022 Maxwell G 0.3.1-5 - Rebuild for CVE-2022-{1705,32148,30631,30633,28131,30635,30632,30630,1962} in golang * Sat Jul 09 2022 Maxwell G 0.3.1-4 - Rebuild for CVE-2022-{24675,28327,29526 in golang} * Sun Jul 03 2022 Robert-André Mauchin 0.3.1-3 - Fix merge * Sun Jul 03 2022 Robert-André Mauchin - RPMAUTOSPEC: unresolvable merge