## START: Set by rpmautospec ## (rpmautospec version 0.8.4) ## 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 major 1 %global minor 0 %global release 0 Name: demus-packaging Version: %{major}.%{minor}.%{release} Release: %autorelease Summary: Macros and scripts to assist in rpm packaging workflows License: GPL3 Source: go2rpm-vendor-update.sh Source: regenerate-from-spec.sh Source: macros.demus-packaging Source: LICENSE Source: README.md Requires: bash go-vendor-tools+all rpmdevtools askalono-cli BuildArch: noarch %description * regenerate-from-spec: Regenerate tool-generated sources referred to in a spec file * go-vendor-update: An script that replicates the parameters used by go2rpm to generate the vendor archive, license expression and configuration. It is used in the above regenerate script. * verify_source_checksum rpm macro: Validate that the checksums in a sources file included in a spec matches the unpacked files. %prep %if %{exists:%{S:2}} %{load:%{S:2}} %endif %?verify_source_checksum %build %install %{__install} -m 0755 -d %{buildroot}%{_bindir} %{__install} -m 0755 -d %{buildroot}%{_rpmmacrodir} %{__install} -p -m 755 %{S:0} %{buildroot}%{_bindir}/%{binshellname:%{S:0}} %{__install} -p -m 755 %{S:1} %{buildroot}%{_bindir}/%{binshellname:%{S:1}} %{__install} -p -m 755 %{S:2} %{buildroot}%{_rpmmacrodir}/ %{__install} -p -m 644 %{S:3} %{S:4} %{_builddir} %files %doc README.md %license LICENSE %{_bindir}/* %{_rpmmacrodir}/* %changelog ## START: Generated by rpmautospec * Sun Jun 07 2026 Daniel Demus - 1.0.0-1 - Rename project ## END: Generated by rpmautospec