1
0
containment-tik-img-to-rpm/image.spec.in

54 lines
1.5 KiB
RPMSpec
Raw Normal View History

# needsrootforbuild
Url: http://www.aeondeskop.org/
Name: __PKG_NAME__
Summary: Package with __OS_NAME__ tik OS image
Version: __VERSION__
Release: __RELEASE__
Group: System/Management
License: GPL-2.0+
Source0: __SOURCE0__
Requires: tik
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
This package contains the __OS_NAME__ image for tik.
%package repart-bundle
BuildRequires: udev
BuildRequires: xz
BuildRequires: systemd-repart-branding-Aeon
BuildRequires: coreutils
%description repart-bundle
This package containers the __OS_NAME__ systemd-repart bundle for tik
%prep
%build
xz -d %{SOURCE0}
systemd-repart --split=1 %(basename ${SOURCE0} xz)
%install
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 -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
install -p -D -m 644 %{_prefix}/lib/repart.d/* $RPM_BUILD_ROOT%{_prefix}/lib/tik/img/%{name}.%{version}/repart.d
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-, root, root)
%{_prefix}/lib/tik/img/%{name}.%{version}.raw.xz
%files repart-bundle
%defattr(-, root, root)
%{_prefix}/lib/tik/img/%{name}.%{version}
%changelog