|
|
@ -98,28 +98,18 @@ cp -p %{SOURCE1} .
|
|
|
|
|
|
|
|
|
|
|
|
rm -r boto.egg-info
|
|
|
|
rm -r boto.egg-info
|
|
|
|
|
|
|
|
|
|
|
|
%if %{with python3}
|
|
|
|
|
|
|
|
rm -rf %{py3dir}
|
|
|
|
|
|
|
|
cp -a . %{py3dir}
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%build
|
|
|
|
%{__python2} setup.py build
|
|
|
|
%{__python2} setup.py build
|
|
|
|
|
|
|
|
|
|
|
|
%if %{with python3}
|
|
|
|
%if %{with python3}
|
|
|
|
pushd %{py3dir}
|
|
|
|
|
|
|
|
%{__python3} setup.py build
|
|
|
|
%{__python3} setup.py build
|
|
|
|
popd
|
|
|
|
|
|
|
|
%endif # with python3
|
|
|
|
%endif # with python3
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
%install
|
|
|
|
%if %{with python3}
|
|
|
|
%if %{with python3}
|
|
|
|
# Scripts only work with python2
|
|
|
|
# Scripts only work with python2
|
|
|
|
pushd %{py3dir}
|
|
|
|
|
|
|
|
%{__python3} setup.py install --skip-build --root $RPM_BUILD_ROOT
|
|
|
|
%{__python3} setup.py install --skip-build --root $RPM_BUILD_ROOT
|
|
|
|
popd
|
|
|
|
|
|
|
|
rm -f $RPM_BUILD_ROOT/%{_bindir}/*
|
|
|
|
rm -f $RPM_BUILD_ROOT/%{_bindir}/*
|
|
|
|
%endif # with python3
|
|
|
|
%endif # with python3
|
|
|
|
|
|
|
|
|
|
|
@ -134,9 +124,7 @@ rm -f $RPM_BUILD_ROOT/%{_bindir}/*
|
|
|
|
%if %{with unittests}
|
|
|
|
%if %{with unittests}
|
|
|
|
%{__python2} tests/test.py default
|
|
|
|
%{__python2} tests/test.py default
|
|
|
|
%if %{with python3}
|
|
|
|
%if %{with python3}
|
|
|
|
pushd %{py3dir}
|
|
|
|
|
|
|
|
%{__python3} tests/test.py default
|
|
|
|
%{__python3} tests/test.py default
|
|
|
|
popd
|
|
|
|
|
|
|
|
%endif # with python3
|
|
|
|
%endif # with python3
|
|
|
|
%endif # with unittests
|
|
|
|
%endif # with unittests
|
|
|
|
|
|
|
|
|
|
|
|