File post-build-raw2rpm.spec of Package post-build-raw2rpm

#
# spec file for package post-build-raw2rpm
#
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via https://bugs.opensuse.org/
#


Name:           post-build-raw2rpm
Version:        0.1
Release:        0
Summary:        Wraps OBS mkosi RAW images in RPMs
License:        Apache-2.0
Group:          System/Management
Source0:        mkosi_post_run
SOurce1:        LICENSE
BuildRequires:  filesystem
BuildArch:      noarch


%description
OBS mkosi_post_run hook wraps a mkosi raw image in an RPM.

The image needs to match the filename pattern defined by Systemd
Versioned Resources documentation.

%prep
cp %{SOURCE1} .

%build

%install
mkdir -p %{buildroot}%{_prefix}/lib/build/post_build.d
install -m 755 %{SOURCE0} %{buildroot}%{_prefix}/lib/build/post_build.d/

%files
%dir %{_prefix}/lib/build/post_build.d
%{_prefix}/lib/build/post_build.d/mkosi_post_run
%license LICENSE

%changelog
openSUSE Build Service is sponsored by