User Tools

Site Tools


packman:buildguidelines

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

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>
  
packman/buildguidelines.txt ยท Last modified: 2012/01/14 03:51 by 0.0.0.0