== Introduction MeeGo uses RPM as the package format. After you finish your application development work, you need to make a RPM package to publish it. This page will introduce a tutorial to create RPM package with MeeGo SDK and tools. To generate MeeGo adapted RPM packages, the MeeGo Packaging Guideline should be followed. This page will provides a simple tutorial to create a MeeGo rpm package.
Contents |
MeeGo recommends to use Spectacle to either create MeeGo spec file or convert existing spec file to MeeGo spec file.
yum install spectacle
Spectacle uses a package meta-data file as the input to generate MeeGo spec file. The meta-data file is in YAML format. Spectacle defines specific Syntax of Spectacle YAML.
spec2spectacle package_name.spec
With the YAML file, the spec file can be easily generated. With above simple yaml file, a file named "spectacle.spec" will be created:
specify spectacle.yaml
Note: Normally, if all related information has been provided in .yaml file, then the spec file does not need any change.
For application developers, they may want to create package directly from the MeeGo SDK chroot environment. It's quite easy to use rpmbuild to do that.
yum install rpmbuild
cd ~/rpmbuild/SPECS rpmbuild -ba spectacle.spec
Then the rpm packages will be generated and put at ~/rpmbuild/RPMS/ and ~/rpmbuild/SRPMS/.
For people who do build or release, they may just want to build packages without the MeeGo SDK chroot environment. The following steps are useful for them.
Under Linux, a tool called "build" is used to create rpm packages directly from spec file.
* MeeGo * Fedora 10,11,12 * openSUSE(s) * xUbuntu 8.10/9.04/9.10 * Debian 5.0
sudo build --repository http://repo.meego.com/MeeGo/release/1.0/core/repo/ia32/os/ --arch i686 spectacle.spec
The packages will be generated at /var/tmp/build-root/home/abuild/rpmbuild/RPMS/ and /var/tmp/build-root/home/abuild/rpmbuild/SRPMS/