From b70b198203330f6d7f13acbed16ef31523f7c79b96034a575f6568f2bab0a3cb Mon Sep 17 00:00:00 2001 From: Richard Brown Date: Fri, 10 May 2024 10:23:00 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/devel:microos:aeon/containment-tik-img-to-rpm?expand=0&rev=2 --- .gitattributes | 23 ++++++++++++++ containment-tik-img-to-rpm | 14 +++++++++ containment-tik-img-to-rpm.changes | 4 +++ containment-tik-img-to-rpm.spec | 48 ++++++++++++++++++++++++++++++ 4 files changed, 89 insertions(+) create mode 100644 .gitattributes create mode 100644 containment-tik-img-to-rpm create mode 100644 containment-tik-img-to-rpm.changes create mode 100644 containment-tik-img-to-rpm.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/containment-tik-img-to-rpm b/containment-tik-img-to-rpm new file mode 100644 index 0000000..2967041 --- /dev/null +++ b/containment-tik-img-to-rpm @@ -0,0 +1,14 @@ +#!/bin/sh -eu +pkg_dir="/usr/src/packages/" + +log() { + echo "[tik-img-to-rpm] $@" +} + +log "Creating RPM from any tik-osimage-*.raw.xz images produced" + +log "Check for tik-osimage-*.raw.xz in KIWI output directory" +if ! ls ${pkg_dir}/KIWI/tik-osimage-*.raw.xz; then + log "No tik-osimage found" && exit 0 +fi + diff --git a/containment-tik-img-to-rpm.changes b/containment-tik-img-to-rpm.changes new file mode 100644 index 0000000..be12a49 --- /dev/null +++ b/containment-tik-img-to-rpm.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Fri May 10 10:20:40 UTC 2024 - Richard Brown + +- Initial package diff --git a/containment-tik-img-to-rpm.spec b/containment-tik-img-to-rpm.spec new file mode 100644 index 0000000..cc1f5c4 --- /dev/null +++ b/containment-tik-img-to-rpm.spec @@ -0,0 +1,48 @@ +# +# spec file for package containment-tik-img-to-rpm +# +# Copyright (c) 2024 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/ +# + +# norootforbuild + +Name: containment-tik-img-to-rpm +Version: 1.0 +Release: 0 +Summary: OBS Post check for containing tik-osimage-* images in RPM +License: MIT +Source: containment-tik-img-to-rpm +BuildRequires: filesystem +BuildArch: noarch +BuildRoot: %{_tmppath}/%{name}-%{version}-build + + +%description +OBS Post check for containing tik-osimage-* images in RPM + +%prep + +%build + +%install +mkdir -p %{buildroot}/usr/lib/build/post-build-checks/ +install -m 755 %{SOURCE0} %{buildroot}/usr/lib/build/post-build-checks/ + +%files +%defattr(-,root,root) +%dir %{_prefix}/lib/build/post-build-checks +%{_prefix}/lib/build/post-build-checks/containment-tik-img-to-rpm + +%changelog +