Name: scons Version: 3.1.1 Release: 1 Summary: An Open Source software construction tool Group: Development/Tools License: MIT URL: http://www.scons.org Source0: http://prdownloads.sourceforge.net/scons/%{name}-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root BuildRequires: python3-devel >= 3.7.3, sed Requires: python3 >= 3.7.3 %description SCons is an Open Source software construction tool--that is, a build tool; an improved substitute for the classic Make utility; a better way to build software. SCons is based on the design which won the Software Carpentry build tool design competition in August 2000. SCons "configuration files" are Python scripts, eliminating the need to learn a new build tool syntax. SCons maintains a global view of all dependencies in a tree, and can scan source (or other) files for implicit dependencies, such as files specified on #include lines. SCons uses MD5 signatures to rebuild only when the contents of a file have really changed, not just when the timestamp has been touched. SCons supports side-by-side variant builds, and is easily extended with user- defined Builder and/or Scanner objects. %prep %setup -q rm -rf /tmp/%{name}-%{version}-32bit cp -pr . /tmp/%{name}-%{version}-32bit rm -fr * mv /tmp/%{name}-%{version}-32bit 32bit cp -pr 32bit 64bit export PATH=/opt/freeware/bin:$PATH cd 32bit sed -i 's|/usr/bin/env python|/usr/bin/python3_32|' script/* cd ../64bit sed -i 's|/usr/bin/env python|/usr/bin/python3|' script/* %build export RM="/usr/bin/rm -f" cd 64bit export OBJECT_MODE=64 /usr/bin/python3 setup.py build cd ../32bit export OBJECT_MODE=32 /usr/bin/python3_32 setup.py build %install [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT} export RM="/usr/bin/rm -f" cd 64bit export OBJECT_MODE=64 /usr/bin/python3 setup.py install \ --root=${RPM_BUILD_ROOT} \ --record=INSTALLED_FILES \ --install-lib=%{_libdir}64/%{name} \ --install-scripts=%{_bindir} ( cd ${RPM_BUILD_ROOT}/%{_prefix}/bin for fic in $(ls -1| grep -v -e _32 -e _64) do mv $fic "$fic"_64 done ) cd ../32bit export OBJECT_MODE=32 /usr/bin/python3_32 setup.py install \ --root=${RPM_BUILD_ROOT} \ --record=INSTALLED_FILES \ --install-lib=%{_libdir}/%{name} \ --install-scripts=%{_bindir} ( cd ${RPM_BUILD_ROOT}/%{_prefix}/bin for fic in $(ls -1| grep -v -e _32 -e _64) do mv $fic "$fic"_32 ln -sf "$fic"_64 $fic done ) cd ${RPM_BUILD_ROOT} mkdir -p usr/bin cd usr/bin ln -sf ../..%{_bindir}/* . %clean [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT} %files %defattr(-,root,root,-) %doc 32bit/CHANGES.txt 32bit/LICENSE.txt 32bit/README.txt 32bit/RELEASE.txt %{_bindir}/* %{_libdir}/%{name} %{_libdir}64/%{name} %{_mandir}/man?/* /usr/bin/* %changelog * Wed Aug 14 2019 Reshma v Kumar - 3.1.1-1 - Update to latest version * Tue Apr 25 2017 Reshma v Kumar - 2.5.1 - Update to latest version * Fri Nov 18 2016 Tony Reix - 2.3.6-1 - Initial port on AIX 6.1 * Fri Nov 18 2016 Tony Reix - 2.3.4-1 - Initial port * Wed Oct 15 2014 Michael Perzl - 2.3.4-1 - updated to version 2.3.4 * Mon Aug 25 2014 Michael Perzl - 2.3.3-1 - updated to version 2.3.3 * Mon Aug 25 2014 Michael Perzl - 2.3.2-1 - updated to version 2.3.2 * Thu Mar 27 2014 Michael Perzl - 2.3.1-1 - updated to version 2.3.1 * Mon Feb 10 2014 Michael Perzl - 2.3.0-1 - updated to version 2.3.0 * Tue Jan 08 2013 Michael Perzl - 2.2.0-1 - updated to version 2.2.0 * Wed Jul 18 2012 Michael Perzl - 2.1.0-1 - updated to version 2.1.0 * Mon Nov 22 2010 Michael Perzl - 2.0.1-1 - updated to version 2.0.1 * Mon Nov 22 2010 Michael Perzl - 1.3.1-1 - updated to version 1.3.1 * Mon Mar 29 2010 Michael Perzl - 1.3.0-1 - first version for AIX V5.1 and higher