diff --git a/lorax-37.0.1.tar.gz b/lorax-37.0.1.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..8c7c210e1c5646dbf1b74a0ac266a04923f86db5 Binary files /dev/null and b/lorax-37.0.1.tar.gz differ diff --git a/lorax.spec b/lorax.spec new file mode 100644 index 0000000000000000000000000000000000000000..1a933f65bf5bd652581c9f1bbe6a706d2ad9486e --- /dev/null +++ b/lorax.spec @@ -0,0 +1,160 @@ +# NOTE: This specfile is generated from upstream at https://github.com/rhinstaller/lorax +# NOTE: Please submit changes as a pull request +%define debug_package %{nil} +%global subrelease 1 + +Name: lorax +Version: 37.0 +Release: 1%{?dist} +Summary: Tool for creating the anaconda install images + +License: GPLv2+ +URL: https://github.com/weldr/lorax +Source0: https://github.com/weldr/lorax/archive/refs/tags/%{name}-%{version}.%{subrelease}.tar.gz + +BuildRequires: python3-devel +BuildRequires: make +BuildRequires: systemd-rpm-macros + +Requires: lorax-templates + +Requires: cpio +Requires: device-mapper +Requires: dosfstools +Requires: e2fsprogs +Requires: findutils +Requires: gawk +Requires: xorriso +Requires: glib2 +Requires: glibc +Requires: glibc-common +Requires: gzip +Requires: isomd5sum +Requires: module-init-tools +Requires: parted +Requires: squashfs-tools >= 4.2 +Requires: util-linux +Requires: xz-lzma-compat +Requires: xz +Requires: pigz +Requires: pbzip2 +Requires: dracut >= 030 +Requires: kpartx +Requires: psmisc + +# Python modules +Requires: libselinux-python3 +Requires: python3-mako +Requires: python3-kickstart >= 3.19 +Requires: python3-dnf >= 3.2.0 +Requires: python3-librepo +Requires: python3-pycdio + +%ifarch x86_64 +Requires: hfsplus-tools +%endif + +%ifarch x86_64 +Requires: syslinux >= 6.03-1 +Requires: syslinux-nonlinux >= 6.03-1 +%endif + +# Moved image-minimizer tool to lorax +Provides: appliance-tools-minimizer = %{version}-%{release} +Obsoletes: appliance-tools-minimizer < 007.7-3 + +%description +Lorax is a tool for creating the anaconda install images. + +It also includes livemedia-creator which is used to create bootable livemedia, +including live isos and disk images. It can use libvirtd for the install, or +Anaconda's image install feature. + +%package docs +Summary: Lorax html documentation +Requires: lorax = %{version}-%{release} + +%description docs +Includes the full html documentation for lorax, livemedia-creator, and the pylorax library. + +%package lmc-virt +Summary: livemedia-creator libvirt dependencies +Requires: lorax = %{version}-%{release} +Requires: qemu + +# Fedora edk2 builds currently only support these arches +%ifarch x86_64 aarch64 +Requires: edk2-ovmf +%endif +Recommends: qemu-kvm + +%description lmc-virt +Additional dependencies required by livemedia-creator when using it with qemu. + +%package lmc-novirt +Summary: livemedia-creator no-virt dependencies +Requires: lorax = %{version}-%{release} +Requires: anaconda-core +Requires: anaconda-tui +Requires: anaconda-install-env-deps +Requires: system-logos +Requires: python3-psutil + +%description lmc-novirt +Additional dependencies required by livemedia-creator when using it with --no-virt +to run Anaconda. + +%package templates-generic +Summary: Generic build templates for lorax and livemedia-creator +Requires: lorax = %{version}-%{release} +Provides: lorax-templates = %{version}-%{release} + +%description templates-generic +Lorax templates for creating the boot.iso and live isos are placed in +/usr/share/lorax/templates.d/99-generic + +%prep +%setup -q -n %{name}-%{version} + +%build + +%install +rm -rf $RPM_BUILD_ROOT +make DESTDIR=$RPM_BUILD_ROOT mandir=%{_mandir} install + +%files +%defattr(-,root,root,-) +%license COPYING +%doc AUTHORS +%doc docs/lorax.rst docs/livemedia-creator.rst docs/product-images.rst +%doc docs/*ks +%{python3_sitelib}/pylorax +%{python3_sitelib}/*.egg-info +%{_sbindir}/lorax +%{_sbindir}/mkefiboot +%{_sbindir}/livemedia-creator +%{_sbindir}/mkksiso +%{_bindir}/image-minimizer +%dir %{_sysconfdir}/lorax +%config(noreplace) %{_sysconfdir}/lorax/lorax.conf +%dir %{_datadir}/lorax +%{_mandir}/man1/lorax.1* +%{_mandir}/man1/livemedia-creator.1* +%{_mandir}/man1/mkksiso.1* +%{_mandir}/man1/image-minimizer.1* +%{_tmpfilesdir}/lorax.conf + +%files docs +%doc docs/html/* + +%files lmc-virt + +%files lmc-novirt + +%files templates-generic +%dir %{_datadir}/lorax/templates.d +%{_datadir}/lorax/templates.d/* + +%changelog +* Thu Apr 7 2022 gcdota930915 37.0-1 +- Fork from upstream community version 37.0