diff --git a/scons.spec b/scons.spec index 9334f99..68a1930 100644 --- a/scons.spec +++ b/scons.spec @@ -1,6 +1,6 @@ Name: scons Version: 3.1.2 -Release: 1mamba +Release: 2mamba Summary: An Open Source software construction tool Group: Development/Tools Vendor: openmamba @@ -9,10 +9,10 @@ Packager: Stefano Cotta Ramusino URL: http://www.scons.org/ Source: http://downloads.sourceforge.net/scons/%{version}/scons-%{version}.tar.gz License: MIT -Requires: python >= %python_version +Requires: python3 >= %python3_version ## AUTOBUILDREQ-BEGIN -BuildRequires: libpython-devel -BuildRequires: python +BuildRequires: libpython3-devel +BuildRequires: python3 ## AUTOBUILDREQ-END BuildRoot: %{_tmppath}/%{name}-%{version}-root @@ -28,15 +28,17 @@ SCons supports side-by-side variant builds, and is easily extended with user-def %prep %setup -q +sed -i "s|env python$|env python3|" script/scons* + %build -%{__python} setup.py build +%{__python3} setup.py build %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" -%{__python} setup.py install \ +%{__python3} setup.py install \ --root="%{buildroot}" \ - --install-headers=%{_includedir}/python \ - --install-lib=%{python_sitearch} \ + --install-headers=%{python3_inc} \ + --install-lib=%{python3_sitearch} \ --install-data=%{_datadir} \ --record=.packlist @@ -52,6 +54,9 @@ rm -f .packlist %doc LICENSE.txt %changelog +* Wed Mar 18 2020 Silvan Calarco 3.1.2-2mamba +- rebuilt with python3 + * Tue Dec 31 2019 Automatic Build System 3.1.2-1mamba - automatic version update by autodist