lorax-templates-almalinux/lorax-templates-almalinux.spec

49 lines
1.3 KiB
RPMSpec

Name: lorax-templates-almalinux
Version: 10.0
Release: 52%{?dist}
Summary: AlmaLinux 10 build templates for lorax and livemedia-creator
License: GPLv2+
URL: https://github.com/weldr/lorax
BuildArch: noarch
# This tarball is generated from the contents of this dist-git repository
# by running the command `make tar`.
# See README for full details of how to update this package
Source0: lorax-templates-rhel-10.0-52.tar.gz
# Required for the template branding support
Requires: lorax >= 34.9.1
Provides: lorax-templates = %{version}-%{release}
# Where are these supposed to end up?
%define templatedir %{_datadir}/lorax/templates.d/70-almalinux
%description
RHEL-specific Lorax templates for creating the boot.iso and live isos are
placed in %{templatedir}
%prep
%setup -n lorax-templates-rhel-%{version}
# Do not try to install packages not available in AlmaLinux
sed -i '/libreport-rhel-anaconda-bugzilla/d' 80-rhel/runtime-install.tmpl
sed -i '/redhat-release-eula/d' 80-rhel/runtime-install.tmpl
%build
# nothing to build
%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT/%{templatedir}
cp -a 80-rhel/* $RPM_BUILD_ROOT/%{templatedir}
%files
%dir %{templatedir}
%{templatedir}/*
%changelog
* Wed Aug 21 2024 Eduard Abdullin <eabdullin@almalinux.org> - 10.0-52
- Initial build for AlmaLinux 10