Update spec for python3 and add subpackages for lmc
This updates things for python3, and adds 2 subpackages to pull in dependencies needed by lmc when running with virt-install or --no-virt with anaconda.
This commit is contained in:
parent
1a92b1b05e
commit
7827ba112c
2
Makefile
2
Makefile
@ -1,4 +1,4 @@
|
|||||||
PYTHON ?= /usr/bin/python
|
PYTHON ?= /usr/bin/python3
|
||||||
DESTDIR ?= /
|
DESTDIR ?= /
|
||||||
|
|
||||||
PKGNAME = lorax
|
PKGNAME = lorax
|
||||||
|
44
lorax.spec
44
lorax.spec
@ -14,7 +14,8 @@ URL: https://github.com/rhinstaller/lorax
|
|||||||
# tito build --tgz
|
# tito build --tgz
|
||||||
Source0: %{name}-%{version}.tar.gz
|
Source0: %{name}-%{version}.tar.gz
|
||||||
|
|
||||||
BuildRequires: python2-devel
|
BuildRequires: python3-devel
|
||||||
|
BuildRequires: python3-pocketlint >= 0.5
|
||||||
|
|
||||||
Requires: GConf2
|
Requires: GConf2
|
||||||
Requires: cpio
|
Requires: cpio
|
||||||
@ -29,24 +30,27 @@ Requires: glibc
|
|||||||
Requires: glibc-common
|
Requires: glibc-common
|
||||||
Requires: gzip
|
Requires: gzip
|
||||||
Requires: isomd5sum
|
Requires: isomd5sum
|
||||||
Requires: libselinux-python
|
|
||||||
Requires: module-init-tools
|
Requires: module-init-tools
|
||||||
Requires: parted
|
Requires: parted
|
||||||
Requires: python-mako
|
|
||||||
Requires: squashfs-tools >= 4.2
|
Requires: squashfs-tools >= 4.2
|
||||||
Requires: util-linux
|
Requires: util-linux
|
||||||
Requires: xz
|
Requires: xz
|
||||||
Requires: pigz
|
Requires: pigz
|
||||||
Requires: python-kickstart
|
|
||||||
Requires: dracut >= 030
|
Requires: dracut >= 030
|
||||||
Requires: python-dnf
|
|
||||||
|
# Python modules
|
||||||
|
Requires: libselinux-python3
|
||||||
|
Requires: python3-mako
|
||||||
|
Requires: python3-kickstart
|
||||||
|
Requires: python3-dnf
|
||||||
|
|
||||||
|
|
||||||
%if 0%{?fedora}
|
%if 0%{?fedora}
|
||||||
# Fedora specific deps
|
# Fedora specific deps
|
||||||
Requires: fedup-dracut
|
Requires: fedup-dracut
|
||||||
Requires: fedup-dracut-plymouth
|
Requires: fedup-dracut-plymouth
|
||||||
%ifarch x86_64
|
%ifarch x86_64
|
||||||
Requires: hfsplus-tools
|
Requires: hfsplus-tools
|
||||||
%endif
|
%endif
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
@ -79,6 +83,26 @@ 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
|
including live isos and disk images. It can use libvirtd for the install, or
|
||||||
Anaconda's image install feature.
|
Anaconda's image install feature.
|
||||||
|
|
||||||
|
%package lmc-virt
|
||||||
|
Summary: livemedia-creator libvirt dependencies
|
||||||
|
Requires: lorax = %{version}-%{release}
|
||||||
|
Requires: libvirt-python3
|
||||||
|
Requires: virt-install
|
||||||
|
|
||||||
|
%description lmc-virt
|
||||||
|
Additional dependencies required by livemedia-creator when using it with virt-install.
|
||||||
|
|
||||||
|
%package lmc-novirt
|
||||||
|
Summary: livemedia-creator no-virt dependencies
|
||||||
|
Requires: lorax = %{version}-%{release}
|
||||||
|
Requires: anaconda-core
|
||||||
|
Requires: anaconda-tui
|
||||||
|
|
||||||
|
%description lmc-novirt
|
||||||
|
Additional dependencies required by livemedia-creator when using it with --no-virt
|
||||||
|
to run Anaconda.
|
||||||
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{name}-%{version}
|
%setup -q -n %{name}-%{version}
|
||||||
|
|
||||||
@ -93,8 +117,8 @@ make DESTDIR=$RPM_BUILD_ROOT mandir=%{_mandir} install
|
|||||||
%license COPYING
|
%license COPYING
|
||||||
%doc AUTHORS docs/livemedia-creator.rst docs/product-images.rst
|
%doc AUTHORS docs/livemedia-creator.rst docs/product-images.rst
|
||||||
%doc docs/*ks
|
%doc docs/*ks
|
||||||
%{python_sitelib}/pylorax
|
%{python3_sitelib}/pylorax
|
||||||
%{python_sitelib}/*.egg-info
|
%{python3_sitelib}/*.egg-info
|
||||||
%{_sbindir}/lorax
|
%{_sbindir}/lorax
|
||||||
%{_sbindir}/mkefiboot
|
%{_sbindir}/mkefiboot
|
||||||
%{_sbindir}/livemedia-creator
|
%{_sbindir}/livemedia-creator
|
||||||
@ -105,6 +129,10 @@ make DESTDIR=$RPM_BUILD_ROOT mandir=%{_mandir} install
|
|||||||
%{_datadir}/lorax/*
|
%{_datadir}/lorax/*
|
||||||
%{_mandir}/man1/*.1*
|
%{_mandir}/man1/*.1*
|
||||||
|
|
||||||
|
%files lmc-virt
|
||||||
|
|
||||||
|
%files lmc-novirt
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Thu Apr 02 2015 Brian C. Lane <bcl@redhat.com> 23.8-1
|
* Thu Apr 02 2015 Brian C. Lane <bcl@redhat.com> 23.8-1
|
||||||
- Include cryptsetup in the image (#1208214) (bcl@redhat.com)
|
- Include cryptsetup in the image (#1208214) (bcl@redhat.com)
|
||||||
|
7
setup.py
7
setup.py
@ -35,10 +35,9 @@ setup(name="lorax",
|
|||||||
version=vernum,
|
version=vernum,
|
||||||
description="Lorax",
|
description="Lorax",
|
||||||
long_description="",
|
long_description="",
|
||||||
author="Martin Gracik",
|
author="Martin Gracik, Will Woods <wwoods@redhat.com>, Brian C. Lane <bcl@redhat.com>",
|
||||||
author_email="mgracik@redhat.com",
|
url="http://www.github.com/rhinstaller/lorax/",
|
||||||
url="http://",
|
download_url="http://www.github.com/rhinstaller/lorax/releases/",
|
||||||
download_url="http://",
|
|
||||||
license="GPLv2+",
|
license="GPLv2+",
|
||||||
packages=["pylorax"],
|
packages=["pylorax"],
|
||||||
package_dir={"" : "src"},
|
package_dir={"" : "src"},
|
||||||
|
Loading…
Reference in New Issue
Block a user