yade-dev team mailing list archive
-
yade-dev team
-
Mailing list archive
-
Message #00143
Re: Compile 1161 under Cents 5.0 errors
> My point is to create rpm(s). We need to move from compiling to
> installing. Once we step forward, we can try to start contributing.
Great. I don't know how rpms are built exactly, debs are built by
debian/rules; these lines
#install headers
scons buildPrefix=debian runtimePREFIX=/usr
PREFIX=debian/yade${_SVNVERSION}-dev/usr variant='' version=${SVNVERSION}
useMiniWm3=0 exclude=realtime-rigidbody CPPPATH=/usr/include/wm3
debian/yade${_SVNVERSION}-dev/usr/include
#debug build
scons PREFIX=debian/yade${_SVNVERSION}-dbg/usr variant=-dbg optimize=0 debug=1
#optimized build
scons PREFIX=debian/yade${_SVNVERSION}/usr variant='' optimize=1 debug=0
compile and install headers, optimized build and debug build into
debian/yade-svn1161-dev, debian/yade-svn1161-dbg, debian/yade-svn1161. These
directories are then packed and each of them is package contents (package is
called the same as that directory) that is uncompressed into / upon
installation.
In the spec file for your RPMs, you can therefore put * in the respective
directory as the contents of the package.
Note that PREFIX is installation prefix when building the package, whereas
runtimePREFIX is what it says. The macro PREFIX that is #defined on the
compiler's command-line is runtimePREFIX, that can be confusing.
Hope this helps, na IRC to jde taky (yade@xxxxxxxxxxxxxxxx).
V.
_______________________________________________
yade-dev mailing list
yade-dev@xxxxxxxxxxxxxxxx
https://lists.berlios.de/mailman/listinfo/yade-dev
Follow ups
References