[meego-packaging] Meta packages
Gabriel M. Beddingfield
gabrbedd at gmail.com
Sun Feb 6 14:48:32 PST 2011
On Friday, February 04, 2011 03:47:54 am Anas Nashif wrote:
> > Last I checked, createrepo support package groups, but
> > not patterns. zypper supports patterns but not package
> > groups. The only way to create both is through
> > OBS.
> What createrep does is just add another section in the
> repomd.xml, it is just matter of convenience. We add the
> patterns using modifyrepo.
> To convert from comps to patterns, you can use this xsl
Thanks a million for this link.
> But I am not sure why you want to do that, a pattern is a
> simple list of packages, so no reason to start from
> comps to get patterns.
Got it. I've reversed it. I'm doing it this way, now.
Since I've found little documentation on how to do this, here's a
1. Create the patterns.xml file with all the pattern
2. Convert to groups/comps using the XSL provided in
3. Create the repos like this (abbreviated):
## Copy RPM packages to a folder, repos/
$ mkdir -p repos/repodata
$ cp -f patterns.xml comps.xml repos/repodata
$ createrepo -g repos/repodata/comps.xml repos/
$ modifyrepo repos/repodata/patterns.xml repos/repodata
4. Sign the file repos/repodata/repomd.xml
Since I had a hard time finding the docs on these XML schemas, here's some documentation links that I
Relax NG Schemas: http://gitorious.org/opensuse/libzypp/trees/master/zypp/parser/yum/schema/
Repos Metadata: http://en.opensuse.org/openSUSE:Standards_Rpm_Metadata
Patterns File: http://en.opensuse.org/openSUSE:Standards_Rpm_Metadata_patterns
And, finally, I've added some stuff to the MeeGo Wiki here:
More information about the MeeGo-packaging