Accepting request 931744 from devel:kubic
OBS-URL: https://build.opensuse.org/request/show/931744 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/toolbox?expand=0&rev=16
This commit is contained in:
parent
6a5b5a9693
commit
de57b289c2
@ -1,3 +1,10 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Nov 8 15:46:47 UTC 2021 - Ludwig Nussel <lnussel@suse.de>
|
||||
|
||||
- Don't install config file in /etc in favor of a built-in default. Avoids
|
||||
empty /etc pulling wrong image.
|
||||
- Handle Leap Micro (boo#1192474)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Aug 23 13:37:09 UTC 2021 - kukuk@suse.com
|
||||
|
||||
|
17
toolbox.spec
17
toolbox.spec
@ -24,7 +24,6 @@ License: Apache-2.0
|
||||
Group: System/Management
|
||||
URL: https://github.com/thkukuk/microos-toolbox
|
||||
Source: microos-toolbox-%{version}.tar.xz
|
||||
Source1: toolboxrc.sle-micro
|
||||
Requires: podman
|
||||
BuildArch: noarch
|
||||
|
||||
@ -38,23 +37,25 @@ such a system. The root filesystem can be found at /media/root.
|
||||
|
||||
%prep
|
||||
%setup -q -n microos-toolbox-%{version}
|
||||
%if 0%{?sle_version}
|
||||
%if !0%{?is_opensuse}
|
||||
sed -i -e 's,registry.opensuse.org,registry.suse.com,' toolbox
|
||||
sed -i -e 's,opensuse/toolbox,suse/sle-micro/5.1/toolbox,' toolbox
|
||||
%else
|
||||
sed -i -e 's,opensuse/toolbox,opensuse/leap-micro/5.1/toolbox,' toolbox
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%build
|
||||
|
||||
%install
|
||||
mkdir -p %{buildroot}%{_bindir}
|
||||
install -m 755 toolbox %{buildroot}%{_bindir}/toolbox
|
||||
%if !0%{?is_opensuse}
|
||||
mkdir -p %{buildroot}%{_sysconfdir}
|
||||
install -m 644 %{SOURCE1} %{buildroot}%{_sysconfdir}/toolboxrc
|
||||
%endif
|
||||
|
||||
%files
|
||||
%license LICENSE
|
||||
%doc README.md
|
||||
%{_bindir}/toolbox
|
||||
%if !0%{?is_opensuse}
|
||||
%config %{_sysconfdir}/toolboxrc
|
||||
%endif
|
||||
%ghost %config %{_sysconfdir}/toolboxrc
|
||||
|
||||
%changelog
|
||||
|
@ -1,2 +0,0 @@
|
||||
REGISTRY=registry.suse.com
|
||||
IMAGE=suse/sle-micro/5.0/toolbox
|
Loading…
Reference in New Issue
Block a user