See my blog in English: http://xizhizhu.blogspot.com/2011/04/create-debian-and-rpm-packages-using.html
Here is the key translation;
If you are not clear about the basics of Debian and RPM packages, please refer to:
Http://www.debian.org/doc/maint-guide/index.en.html
Or
Http://en.opensuse.org/openSUSE:Packaging_guidelines
First package your source code, do not have to include any package management information, can be named as obs-sample.tar.gz.
You will also need the following files for creating a Debian package.
OBS-SAMPLE_1.0.DSC: Indicate that you need to create a Debian package. The files section of which is not required, but the Build-depends segment is necessary.
Debian.rules: That is, Debian/rules file.
Debian.control: That is, Debian/control file.
All other files in the Debian.tar.gz:debian directory are packaged.
For creating an RPM package, you only need one. spec file.
Here is a simple example that I created. Happy hacking!