From b8a77bc7f6e8209f37ff770e094b6220df3e639c3d2e7c4b3a9836cde3ab4424 Mon Sep 17 00:00:00 2001 From: Richard Brown Date: Fri, 10 May 2024 11:13:23 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/devel:microos:aeon/containment-tik-img-to-rpm?expand=0&rev=3 --- containment-tik-img-to-rpm | 10 +++++++++- containment-tik-img-to-rpm.spec | 4 ++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/containment-tik-img-to-rpm b/containment-tik-img-to-rpm index 2967041..76e43aa 100644 --- a/containment-tik-img-to-rpm +++ b/containment-tik-img-to-rpm @@ -1,5 +1,7 @@ #!/bin/sh -eu -pkg_dir="/usr/src/packages/" +pkg_dir="/usr/src/packages" +build_dir="/usr/lib/build" +spec_in="${build_dir}/image.spec.in" log() { echo "[tik-img-to-rpm] $@" @@ -12,3 +14,9 @@ if ! ls ${pkg_dir}/KIWI/tik-osimage-*.raw.xz; then log "No tik-osimage found" && exit 0 fi +for f in ${pkg_dir}/*.raw.xz; do + log "DEBUG: $f" +done + +log "Using ${spec_in} as spec file template" +log "Generating metadata for spec file template" diff --git a/containment-tik-img-to-rpm.spec b/containment-tik-img-to-rpm.spec index cc1f5c4..1f56afe 100644 --- a/containment-tik-img-to-rpm.spec +++ b/containment-tik-img-to-rpm.spec @@ -23,9 +23,11 @@ Release: 0 Summary: OBS Post check for containing tik-osimage-* images in RPM License: MIT Source: containment-tik-img-to-rpm +Source1: image.spec.in BuildRequires: filesystem BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-build +Requires: jq %description @@ -38,11 +40,13 @@ OBS Post check for containing tik-osimage-* images in RPM %install mkdir -p %{buildroot}/usr/lib/build/post-build-checks/ install -m 755 %{SOURCE0} %{buildroot}/usr/lib/build/post-build-checks/ +install -m 644 %{SOURCE1} %{buildroot}/usr/lib/build/ %files %defattr(-,root,root) %dir %{_prefix}/lib/build/post-build-checks %{_prefix}/lib/build/post-build-checks/containment-tik-img-to-rpm +%{_prefix}/lib/build/image.spec.in %changelog