Files
demus-packaging-rpm/demus-packaging.spec
T
demus f847197835
Build and provide rpm of demus-packaging-rpm / Build src rpm and send it to COPR (f44) (release) Failing after 2m35s
Build and provide rpm of demus-packaging-rpm / Build src rpm and send it to COPR (rawhide) (release) Failing after 2m35s
Add missing build deps
2026-06-12 00:40:37 +02:00

71 lines
2.0 KiB
RPMSpec

%global major 1
%global minor 1
%global release 1
%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-mock bats-file go-vendor-tools
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
%autochangelog