Search
j0ke.net Open Build Service
>
Projects
>
server:pxe
>
cobbler
> Changes
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
Changes of Revision 7
[-]
[+]
Changed
cobbler.spec
@@ -22,10 +22,10 @@ %endif Requires: createrepo -%if 0%{?fedora} >= 11 || 0%{?rhel} >= 6 +%if 0%{?fedora_version} >= 11 || 0%{?rhel_version} >= 600 Requires: fence-agents %endif -%if 0%{?fedora} >= 11 || 0%{?rhel} >= 6 +%if 0%{?fedora_version} >= 11 || 0%{?rhel_version} >= 600 Requires: genisoimage %else Requires: mkisofs @@ -35,7 +35,7 @@ Requires: python-devel Requires: python-netaddr Requires: python-simplejson -%if 0%{?fedora} >= 8 +%if 0%{?fedora_version} >= 8 BuildRequires: python-setuptools-devel %else BuildRequires: python-setuptools @@ -46,7 +46,7 @@ BuildRequires: redhat-rpm-config %endif Requires: rsync -%if 0%{?fedora} >= 6 || 0%{?rhel} >= 5 +%if 0%{?fedora_version} >= 6 || 0%{?rhel_version} >= 500 Requires: yum-utils %endif @@ -54,7 +54,7 @@ Requires(preun): /sbin/chkconfig Requires(preun): /sbin/service -%if 0%{?fedora} >= 11 || 0%{?rhel} >= 6 +%if 0%{?fedora_version} >= 11 || 0%{?rhel_version} >= 600 %{!?pyver: %define pyver %(%{__python} -c "import sys ; print sys.version[:3]" || echo 0)} Requires: python(abi) >= %{pyver} %endif @@ -214,7 +214,7 @@ %{python_sitelib}/cobbler/*.py* #%{python_sitelib}/cobbler/server/*.py* %{python_sitelib}/cobbler/modules/*.py* -%if 0%{?fedora} >= 9 || 0%{?rhel} >= 5 +%if 0%{?fedora_version} >= 9 || 0%{?rhel_version} >= 500 %exclude %{python_sitelib}/cobbler/sub_process.py* %endif %{_mandir}/man1/cobbler.1.gz @@ -286,7 +286,7 @@ %config(noreplace) /var/lib/cobbler/cobbler_hosts %defattr(-,root,root) -%if 0%{?fedora} > 8 +%if 0%{?fedora_version} > 8 || 0%{?centos_version} >= 6 || 0%{?rhel_version} >= 600 || 0%{?sl_version} >= 600 %{python_sitelib}/cobbler*.egg-info %endif %doc AUTHORS CHANGELOG README COPYING @@ -297,14 +297,14 @@ Group: Applications/System Requires: python >= 1.5 BuildRequires: python-devel -%if 0%{?fedora} >= 11 || 0%{?rhel} >= 6 +%if 0%{?fedora_version} >= 11 || 0%{?rhel_version} >= 600 %{!?pyver: %define pyver %(%{__python} -c "import sys ; print sys.version[:3]")} Requires: python(abi) >= %{pyver} %endif -%if 0%{?fedora} >= 8 +%if 0%{?fedora_version} >= 8 BuildRequires: python-setuptools-devel %endif -%if 0%{?rhel} >= 4 +%if 0%{?rhel_version} >= 400 BuildRequires: python-setuptools %endif BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot @@ -329,7 +329,7 @@ %{_bindir}/cobbler-register %dir %{python_sitelib}/koan %{python_sitelib}/koan/*.py* -%if 0%{?fedora} >= 9 || 0%{?rhel} >= 5 +%if 0%{?fedora_version} >= 9 || 0%{?rhel_version} >= 500 %exclude %{python_sitelib}/koan/sub_process.py* %exclude %{python_sitelib}/koan/opt_parse.py* %exclude %{python_sitelib}/koan/text_wrap.py* @@ -347,11 +347,11 @@ Requires: cobbler Requires: Django BuildRequires: python-devel -%if 0%{?fedora} >= 11 || 0%{?rhel} >= 6 +%if 0%{?fedora_version} >= 11 || 0%{?rhel_version} >= 600 %{!?pyver: %define pyver %(%{__python} -c "import sys ; print sys.version[:3]")} Requires: python(abi) >= %{pyver} %endif -%if 0%{?fedora} >= 8 +%if 0%{?fedora_version} >= 8 BuildRequires: python-setuptools-devel %else BuildRequires: python-setuptools