This shows you the differences between two versions of the page.
— |
packman:buildguidelines [2012/01/14 03:51] (current) 0.0.0.0 created |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== How to build RPMs with different build systems ====== | ||
+ | ===== scons + bksys ===== | ||
+ | Make sure to add <tt>python</tt> to the build requirements: | ||
+ | <code> | ||
+ | BuildRequires: python</code> | ||
+ | |||
+ | ==== Setup stage ==== | ||
+ | <code> | ||
+ | %prep | ||
+ | %setup -q | ||
+ | ./configure # Unpack scons-mini | ||
+ | CXXFLAGS="%{optflags}" \ | ||
+ | ./scons configure \ | ||
+ | %if %{_lib} == lib64 | ||
+ | libsuffix=64 \ | ||
+ | %endif | ||
+ | prefix="%{_prefix}"</code> | ||
+ | ==== Build stage ==== | ||
+ | <code> | ||
+ | %build | ||
+ | ./scons</code> | ||
+ | ==== Installation stage ==== | ||
+ | <code> | ||
+ | %install | ||
+ | %{__rm} -rf "%{buildroot}" | ||
+ | DESTDIR="%{buildroot}" ./scons install</code> | ||