Commit f9b0dcb6 authored by Rafael Monnerat's avatar Rafael Monnerat

Fix build for suse and fedora (use python2)

parent 4d36296f
...@@ -46,21 +46,9 @@ URL: http://community.slapos.org/ ...@@ -46,21 +46,9 @@ URL: http://community.slapos.org/
Vendor: Vifib Vendor: Vifib
Packager: Rafael Monnerat <rafael@nexedi.com> Packager: Rafael Monnerat <rafael@nexedi.com>
%if 0%{?suse_version} BuildRequires: gcc-c++, make, patch, wget, python2, python-devel, chrpath, openssl-devel
%if 0%{?suse_version} == 1210
BuildRequires: gcc-c++, make, patch, wget, python, python-devel, chrpath, openssl-devel, python-xml
Requires: bridge-utils, python, gcc-c++, make, patch, wget, python-xml, lm_sensors Requires: bridge-utils, python2, gcc-c++, make, patch, wget, lm_sensors
%else
BuildRequires: gcc-c++, make, patch, wget, python, python-devel, chrpath, openssl-devel, python-xml
Requires: bridge-utils, python, gcc-c++, make, patch, wget, python-xml, lm_sensors
%endif
%else
BuildRequires: gcc-c++, make, patch, wget, python, python-devel, chrpath, openssl-devel
Requires: bridge-utils, python, gcc-c++, make, patch, wget, lm_sensors
%endif
AutoReqProv: no AutoReqProv: no
...@@ -89,7 +77,7 @@ zcat $RPM_SOURCE_DIR/slapos-node_%{unmangled_version}+%{slapversion}+%{release_n ...@@ -89,7 +77,7 @@ zcat $RPM_SOURCE_DIR/slapos-node_%{unmangled_version}+%{slapversion}+%{release_n
%build %build
cd $RPM_BUILD_DIR/slapos-node_%{unmangled_version}+%{slapversion}+%{release_number} cd $RPM_BUILD_DIR/slapos-node_%{unmangled_version}+%{slapversion}+%{release_number}
make make PYTHON=python2
%install %install
cd $RPM_BUILD_DIR/slapos-node_%{unmangled_version}+%{slapversion}+%{release_number}/ cd $RPM_BUILD_DIR/slapos-node_%{unmangled_version}+%{slapversion}+%{release_number}/
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment