How to make .deb or .rpm package to install in clear linux? #1462

Several threads already answer this question. My preferred method is rpm2cpio myself.