User Tools

Site Tools


packman:buildguidelines

How to build RPMs with different build systems

scons + bksys

Make sure to add <tt>python</tt> 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
packman/buildguidelines.txt · Last modified: 2012/01/14 03:51 by 0.0.0.0