diff --git a/cobbler.spec b/cobbler.spec index d244a2e..0fa414f 100644 --- a/cobbler.spec +++ b/cobbler.spec @@ -19,20 +19,35 @@ Source0: https://github.com/cobbler/cobbler/archive/v%{version}.tar.gz#/% BuildRequires: git BuildRequires: python2-devel +%if 0%{?fedora} >= 28 || 0%{?rhel} > 7 BuildRequires: python2-pyyaml BuildRequires: python2-cheetah BuildRequires: python2-setuptools +%else +BuildRequires: PyYAML +BuildRequires: python-cheetah +BuildRequires: python-setuptools +%endif Requires: httpd Requires: tftp-server -Requires: python2-mod_wsgi Requires: createrepo +Requires: rsync +%if 0%{?fedora} >= 28 || 0%{?rhel} > 7 +Requires: python2-mod_wsgi Requires: python2-cheetah Requires: python2-netaddr Requires: python2-simplejson Requires: python2-urlgrabber Requires: python2-pyyaml -Requires: rsync +%else +Requires: mod_wsgi +Requires: python-cheetah +Requires: python-netaddr +Requires: python-simplejson +Requires: python-urlgrabber +Requires: PyYAML +%endif # syslinux is only available on x86 %ifarch %{ix86} x86_64 Requires: syslinux @@ -71,12 +86,13 @@ Summary: Web interface for Cobbler Group: Applications/System BuildArch: noarch Requires: cobbler -%if 0%{?fedora} >= 28 +%if 0%{?fedora} >= 28 || 0%{?rhel} > 7 Requires: python2-django1.11 +Requires: python2-mod_wsgi %else -Requires: python2-django +Requires: Django > 1.6 +Requires: mod_wsgi %endif -Requires: python2-mod_wsgi Requires: mod_ssl Requires(post): openssl @@ -89,7 +105,11 @@ http://server/cobbler_web to configure the install server. Summary: Helper tool that performs cobbler orders on remote machines Group: Applications/System BuildArch: noarch +%if 0%{?fedora} >= 28 || 0%{?rhel} > 7 Requires: python2-simplejson +%else +Requires: python-simplejson +%endif Requires: virt-install %description -n koan