====== How to build RPMs with different build systems ====== ===== scons + bksys ===== Make sure to add python to the build requirements: BuildRequires: python ==== Setup stage ==== %prep %setup -q ./configure # Unpack scons-mini CXXFLAGS="%{optflags}" \ ./scons configure \ %if %{_lib} == lib64 libsuffix=64 \ %endif prefix="%{_prefix}" ==== Build stage ==== %build ./scons ==== Installation stage ==== %install %{__rm} -rf "%{buildroot}" DESTDIR="%{buildroot}" ./scons install