diff --git a/Makefile b/Makefile index 017c008f..a0c80337 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -PYTHON ?= /usr/bin/python +PYTHON ?= /usr/bin/python3 DESTDIR ?= / PKGNAME = lorax diff --git a/lorax.spec b/lorax.spec index 11d162ac..b859dcf6 100644 --- a/lorax.spec +++ b/lorax.spec @@ -14,7 +14,8 @@ URL: https://github.com/rhinstaller/lorax # tito build --tgz Source0: %{name}-%{version}.tar.gz -BuildRequires: python2-devel +BuildRequires: python3-devel +BuildRequires: python3-pocketlint >= 0.5 Requires: GConf2 Requires: cpio @@ -29,24 +30,27 @@ Requires: glibc Requires: glibc-common Requires: gzip Requires: isomd5sum -Requires: libselinux-python Requires: module-init-tools Requires: parted -Requires: python-mako Requires: squashfs-tools >= 4.2 Requires: util-linux Requires: xz Requires: pigz -Requires: python-kickstart Requires: dracut >= 030 -Requires: python-dnf + +# Python modules +Requires: libselinux-python3 +Requires: python3-mako +Requires: python3-kickstart +Requires: python3-dnf + %if 0%{?fedora} # Fedora specific deps Requires: fedup-dracut Requires: fedup-dracut-plymouth %ifarch x86_64 -Requires: hfsplus-tools +Requires: hfsplus-tools %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 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 %setup -q -n %{name}-%{version} @@ -93,8 +117,8 @@ make DESTDIR=$RPM_BUILD_ROOT mandir=%{_mandir} install %license COPYING %doc AUTHORS docs/livemedia-creator.rst docs/product-images.rst %doc docs/*ks -%{python_sitelib}/pylorax -%{python_sitelib}/*.egg-info +%{python3_sitelib}/pylorax +%{python3_sitelib}/*.egg-info %{_sbindir}/lorax %{_sbindir}/mkefiboot %{_sbindir}/livemedia-creator @@ -105,6 +129,10 @@ make DESTDIR=$RPM_BUILD_ROOT mandir=%{_mandir} install %{_datadir}/lorax/* %{_mandir}/man1/*.1* +%files lmc-virt + +%files lmc-novirt + %changelog * Thu Apr 02 2015 Brian C. Lane 23.8-1 - Include cryptsetup in the image (#1208214) (bcl@redhat.com) diff --git a/setup.py b/setup.py index 791ffb87..86b16bc4 100644 --- a/setup.py +++ b/setup.py @@ -35,10 +35,9 @@ setup(name="lorax", version=vernum, description="Lorax", long_description="", - author="Martin Gracik", - author_email="mgracik@redhat.com", - url="http://", - download_url="http://", + author="Martin Gracik, Will Woods , Brian C. Lane ", + url="http://www.github.com/rhinstaller/lorax/", + download_url="http://www.github.com/rhinstaller/lorax/releases/", license="GPLv2+", packages=["pylorax"], package_dir={"" : "src"},