Richard Brown 2024-05-10 10:23:00 +00:00 committed by Git OBS Bridge
commit b70b198203
4 changed files with 89 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -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

View File

@ -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

View File

@ -0,0 +1,4 @@
-------------------------------------------------------------------
Fri May 10 10:20:40 UTC 2024 - Richard Brown <rbrown@suse.com>
- Initial package

View File

@ -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