## START: Set by rpmautospec ## (rpmautospec version 0.8.4) ## RPMAUTOSPEC: autorelease, autochangelog %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 %global major 1 %global minor 0 %global release 2 Name: demus-packaging Version: %{major}.%{minor}.%{release} Release: %autorelease Summary: Macros and scripts to assist in rpm packaging workflows URL: https://git.demus.dk/demus/demus-packaging License: GPL-3.0-or-later 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 Obsoletes: demus-packaging-utils < 1.0.0 Provides: demus-packaging-utils = %{version} 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. * stripped_basename macro: Adds the extension stripping positional parameter to %stripped_basename * binshellname macro: Produce the stripped name of a .sh script %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 644 %{S:2} %{buildroot}%{_rpmmacrodir}/ %{__install} -p -m 644 %{S:3} %{S:4} %{_builddir} %files %doc README.md %license LICENSE %{_bindir}//%{binshellname:%{S:0}} %{_bindir}//%{binshellname:%{S:1}} %{_rpmmacrodir}/* %changelog ## START: Generated by rpmautospec * Sun Jun 07 2026 Daniel Demus - 1.0.2-2 - Fix rpmlint complaints * Sun Jun 07 2026 Daniel Demus - 1.0.2-1 - Obsolete previous package name * Sun Jun 07 2026 Daniel Demus - 1.0.1-1 - Remove x bit on macros file * Sun Jun 07 2026 Daniel Demus - 1.0.0-1 - Rename project ## END: Generated by rpmautospec