forked from pool/containment-tik-img-to-rpm
- Package uncompressed images, to be used with systemd-repart
OBS-URL: https://build.opensuse.org/package/show/devel:microos:aeon/containment-tik-img-to-rpm?expand=0&rev=30
This commit is contained in:
parent
125bc2cfbe
commit
7ada4d4d40
@ -1,7 +1,7 @@
|
|||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Jul 2 11:49:14 UTC 2024 - Richard Brown <rbrown@suse.com>
|
Tue Jul 2 14:02:02 UTC 2024 - Richard Brown <rbrown@suse.com>
|
||||||
|
|
||||||
- Support also creating systemd-repart bundles
|
- Package uncompressed images, to be used with systemd-repart
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Jun 20 15:13:08 UTC 2024 - Richard Brown <rbrown@suse.com>
|
Thu Jun 20 15:13:08 UTC 2024 - Richard Brown <rbrown@suse.com>
|
||||||
|
@ -31,7 +31,6 @@ Requires: coreutils
|
|||||||
Requires: gawk
|
Requires: gawk
|
||||||
Requires: jq
|
Requires: jq
|
||||||
Requires: perl-DateTime-Format-DateParse
|
Requires: perl-DateTime-Format-DateParse
|
||||||
Requires: udev
|
|
||||||
Conflicts: containment-rpm
|
Conflicts: containment-rpm
|
||||||
|
|
||||||
%description
|
%description
|
||||||
|
@ -14,40 +14,20 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|||||||
%description
|
%description
|
||||||
This package contains the __OS_NAME__ image for tik.
|
This package contains the __OS_NAME__ image for tik.
|
||||||
|
|
||||||
%package repart-bundle
|
|
||||||
Summary: Package with __OS_NAME__ tik systemd-repart bundle
|
|
||||||
Requires: tik
|
|
||||||
BuildRequires: udev
|
|
||||||
BuildRequires: xz
|
|
||||||
BuildRequires: coreutils
|
|
||||||
|
|
||||||
%description repart-bundle
|
|
||||||
This package containers the __OS_NAME__ systemd-repart bundle for tik
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
|
|
||||||
%build
|
%build
|
||||||
xz -d %{SOURCE0}
|
xz -k -d %{SOURCE0}
|
||||||
systemd-repart --split=1 %(basename ${SOURCE0} xz)
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
install -d -m 644 $RPM_BUILD_ROOT%{_prefix}/lib/tik/img
|
install -d -m 644 $RPM_BUILD_ROOT%{_prefix}/lib/tik/img
|
||||||
install -p -D -m 644 %{SOURCE0} $RPM_BUILD_ROOT%{_prefix}/lib/tik/img/%{name}.%{version}.raw.xz
|
install -p -D -m 644 %(basename %{SOURCE0} .xz) $RPM_BUILD_ROOT%{_prefix}/lib/tik/img/%{name}.%{version}.raw
|
||||||
|
|
||||||
install -d -m 644 $RPM_BUILD_ROOT%{_prefix}/lib/tik/img/%{name}.%{version}
|
|
||||||
install -p -D -m 644 %(basename ${SOURCE0} .raw.xz).root-%{_arch}.raw $RPM_BUILD_ROOT%{_prefix}/lib/tik/img/%{name}.%{version}/
|
|
||||||
install -d -m 644 $RPM_BUILD_ROOT%{_prefix}/lib/tik/img/%{name}.%{version}/repart.d
|
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
rm -rf $RPM_BUILD_ROOT
|
rm -rf $RPM_BUILD_ROOT
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-, root, root)
|
%defattr(-, root, root)
|
||||||
%{_prefix}/lib/tik/img/%{name}.%{version}.raw.xz
|
%{_prefix}/lib/tik/img/%{name}.%{version}.raw
|
||||||
|
|
||||||
%files repart-bundle
|
|
||||||
%defattr(-, root, root)
|
|
||||||
%{_prefix}/lib/tik/img/%{name}.%{version}
|
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
x
Reference in New Issue
Block a user