Guide to building Debian packages in OBS.
http://en.opensuse.org/openSUSE:Build_Service_Debian_builds

Guide to building rpm packages in OBS.
http://en.opensuse.org/openSUSE:Build_Service_cross_distribution_howto

Guide for DKMS.
https://xkyle.com/building-linux-packages-for-kernel-drivers/

Example DKMS package.
https://build.opensuse.org/package/view_file?file=dkms-nvidia.spec&package=x11-video-nvidia&project=home%3AopenSUSE_user1&rev=9f1ca2c86f7180aa64490af5b810a9d9

Using Debian maintenance scrips.
http://www.debian.org/doc/manuals/maint-guide/dother.en.html#maintscripts

Great KMP example.
https://build.opensuse.org/package/view_file/Virtualization:VMware/open-vm-tools/open-vm-tools.spec?expand=1