Build Service/Product Definition/products file
From openSUSE
back to installed products discussion
[edit]
/etc/products.d/openSUSE.prod
This is the product definition file in the installed system
<?xml version="1.0" encoding="UTF-8"?>
<product schemeversion="0.0">
<vendor>Novell</vendor>
<name>openSUSE</name>
<version>11.1</version>
<release>0</release>
<arch>i586</arch>
<register>
<target>openSUSE-11.1-i586</target>
<!-- release is optional and normally empty -->
<release></release>
</register>
<updaterepokey>000000000</updaterepokey>
<summary>A cool distribution</summary>
<summary lang="de">Einfach genial</summary>
<description>This is the coolest distribution on the world.
Try it out and find it useful.</description>
<description lang="de">Was soll man da sagen?
Einfach toll!</description>
<linguas>
<lang>da</lang>
<lang>de</lang>
</linguas>
<urls>
<url name="releasenotes">http://www.suse.com/relnotes/i386/openSUSE/11.0/release-notes-openSUSE.rpm</url>
<url name="smolt">http://smolt.opensuse.org/register.pl</url>
<url name="register">http://register.opensuse.org/</url>
<url name="extraurls">http://foo</url>
</urls>
<buildconfig producttheme="SuSE" betaversion="-Alpha1plus">
<linguas>
<lang>af</lang>
</linguas>
</buildconfig>
<installconfig defaultlang="en_US" />
<runtimeconfig allowresolving="true" packagemanager="zypper" />
</product>
[edit]
/etc/products.d/sles.prod
Other example: SUSE Linux Enterprise Server 11:
<?xml version="1.0" encoding="UTF-8"?>
<product schemeversion="0.0">
<vendor>Novell</vendor>
<name>SUSE_SLES</name>
<version>11</version>
<release>0</release>
<arch>i586</arch>
<productline>sles</productline>
<register>
<target>sle-11-i586</target>
<!-- release is optional and normally empty -->
<release>special_edition</release>
</register>
<updaterepokey>A43242OOO</updaterepokey>
<summary>A cool distribution</summary>
<summary lang="de">Einfach genial</summary>
<description>This is the coolest distribution on the world.
Try it out and find it useful.</description>
<description lang="de">Was soll man da sagen?
Einfach toll!</description>
<linguas>
<lang>da</lang>
<lang>de</lang>
</linguas>
<urls>
<url name="releasenotes">http://www.suse.com/relnotes/i386/SLE/SERVER/11/release-notes-sles.rpm</url>
<url name="extraurls">http://foo</url>
</urls>
<buildconfig producttheme="SuSE" betaversion="-Alpha1plus">
<linguas>
<lang>af</lang>
</linguas>
</buildconfig>
<installconfig defaultlang="en_US" />
</product>
[edit]
CPE id tag
Additionally if you add the tag cpeid ( See Common Enumeration Platform ) the package manager will be able to match the product with repositories that provide either information about the product they update, or the platform/distro they are compatible with ( see repomd.xml extensions )
example:
<!-- this is an example, see http://cpe.mitre.org for the right syntax and always look for the already defined ids before inventing your own --> <cpeid>cpe://os:opensuse:11</cpeid>

