Create Debian and RPM packages with Obs

Source: Internet
Author: User

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!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.