1
0
Richard Brown 2024-05-10 11:13:23 +00:00 committed by Git OBS Bridge
parent 91533f2b5f
commit b8a77bc7f6
2 changed files with 13 additions and 1 deletions

View File

@ -1,5 +1,7 @@
#!/bin/sh -eu #!/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() { log() {
echo "[tik-img-to-rpm] $@" 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 log "No tik-osimage found" && exit 0
fi 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"

View File

@ -23,9 +23,11 @@ Release: 0
Summary: OBS Post check for containing tik-osimage-* images in RPM Summary: OBS Post check for containing tik-osimage-* images in RPM
License: MIT License: MIT
Source: containment-tik-img-to-rpm Source: containment-tik-img-to-rpm
Source1: image.spec.in
BuildRequires: filesystem BuildRequires: filesystem
BuildArch: noarch BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
Requires: jq
%description %description
@ -38,11 +40,13 @@ OBS Post check for containing tik-osimage-* images in RPM
%install %install
mkdir -p %{buildroot}/usr/lib/build/post-build-checks/ mkdir -p %{buildroot}/usr/lib/build/post-build-checks/
install -m 755 %{SOURCE0} %{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 %files
%defattr(-,root,root) %defattr(-,root,root)
%dir %{_prefix}/lib/build/post-build-checks %dir %{_prefix}/lib/build/post-build-checks
%{_prefix}/lib/build/post-build-checks/containment-tik-img-to-rpm %{_prefix}/lib/build/post-build-checks/containment-tik-img-to-rpm
%{_prefix}/lib/build/image.spec.in
%changelog %changelog