## 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 2 %global release 2 %global forgeurl https://git.demus.dk/demus/demus-packaging %global forgename gitea.com Version: %{major}.%{minor}.%{release} %forgemeta Name: demus-packaging Release: %autorelease Summary: Macros and scripts to assist in rpm packaging workflows License: GPL-3.0-or-later URL: %{forgeurl} Source: %{forgesource} Source: sources Requires: bash go-vendor-tools+all rpmdevtools askalono-cli BuildRequires: forge-srpm-macros bats-assert bats-file bats-mock+buildkite-plugins git-core 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 %forgesetup %if %{exists:%{_builddir}/%{name}/macros.demus-packaging} %{load:%{_builddir}/%{name}/macros.demus-packaging} %endif %{?verify_source_checksum:%verify_source_checksum -s %{S:1}} %build %check cd %{_builddir}/%{name} bats test %install %{__install} -m 0755 -d %{buildroot}%{_bindir} %{__install} -m 0755 -d %{buildroot}%{_rpmmacrodir} %{__install} -p -m 644 macros.demus-packaging %{buildroot}%{_rpmmacrodir}/macros.demus-packaging %{__install} -p -m 755 spec-update-artifacts.sh %{buildroot}%{_bindir}/spec-update-artifacts %files %doc README.md %license LICENSE %{_bindir}/spec-update-artifacts %{_rpmmacrodir}/macros.demus-packaging %changelog ## START: Generated by rpmautospec * Fri Jun 12 2026 Daniel Demus - 1.2.2-1 - Release 1.2.2 * Fri Jun 12 2026 Daniel Demus - 1.2.1-1 - Release 1.2.1 * Fri Jun 12 2026 Daniel Demus - 1.2.0-1 - Release 1.2.0 * Thu Jun 11 2026 Daniel Demus - 1.1.1-3 - Add missing build deps * Thu Jun 11 2026 Daniel Demus - 1.1.1-1 - Consolidate scripts - Add tests * Thu Jun 11 2026 Daniel Demus - 1.1.0-1 - Split repos into source and rpm build * Wed Jun 10 2026 Daniel Demus - 1.0.5-1 - Make ignoring unlicensed mods optional * Mon Jun 08 2026 Daniel Demus - 1.0.4-1 - Ignore unlicensed mods as there is no way to avoid a failure - There doesn't seem to be a way to override a missing license, so the license check always fails * Mon Jun 08 2026 Daniel Demus - 1.0.3-1 - Simplify file listing for sources generation * Sun Jun 07 2026 Daniel Demus - 1.0.2-1 - Fix rpmlint complaints * 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 - Build on COPR - Release 1.0.0 * Sun Jun 07 2026 Daniel Demus - 0.1.4-1 - Update License expression in spec file - in the same way go2rpm generates it originally * Fri Jun 05 2026 Daniel Demus - 0.1.3-1 - Download remote sources before updating anything * Fri Jun 05 2026 Daniel Demus - 0.1.2-1 - Switch vendor archive update from alias to command and rename * Fri Jun 05 2026 Daniel Demus - 0.1.1-1 - Exclude the spec file from the sources list - They can change during build if rpmautospec or something similiar is used ## END: Generated by rpmautospec