forked from pool/containment-tik-img-to-rpm
OBS-URL: https://build.opensuse.org/package/show/devel:microos:aeon/containment-tik-img-to-rpm?expand=0&rev=3
This commit is contained in:
parent
91533f2b5f
commit
b8a77bc7f6
@ -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"
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user