fix build for CentOS 6
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/osc?expand=0&rev=95
This commit is contained in:
parent
993f4142f2
commit
4b5856d1f8
13
osc.spec
13
osc.spec
@ -62,11 +62,13 @@ Recommends: obs-service-format_spec_file
|
||||
Recommends: obs-service-source_validator
|
||||
%endif
|
||||
%endif
|
||||
%if 0%{?rhel_version} || 0%{?centos_version}
|
||||
%if 0%{?rhel_version} < 600
|
||||
%if 0%{?rhel_version} && 0%{?rhel_version} < 600
|
||||
BuildRequires: python-elementtree
|
||||
Requires: python-elementtree
|
||||
%endif
|
||||
%if 0%{?centos_version} && 0%{?centos_version} < 600
|
||||
BuildRequires: python-elementtree
|
||||
Requires: python-elementtree
|
||||
%endif
|
||||
%if 0%{?suse_version}%{?mandriva_version}
|
||||
BuildRequires: python-m2crypto
|
||||
@ -75,13 +77,6 @@ Requires: python-m2crypto > 0.19
|
||||
BuildRequires: m2crypto
|
||||
Requires: m2crypto > 0.19
|
||||
%endif
|
||||
%if 0%{?mandriva_version}
|
||||
BuildRequires: python-rpm
|
||||
Requires: python-rpm
|
||||
%else
|
||||
BuildRequires: rpm-python
|
||||
Requires: rpm-python
|
||||
%endif
|
||||
%{!?python_sitelib: %define python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
||||
|
||||
%description
|
||||
|
Loading…
Reference in New Issue
Block a user