On Samstag, 30. August 2014, 20:12:35 wrote Matwey V. Kornilov:
Is it possible to use kiwi build products as build-requirements for rpm builds?
Not directly. But what you can do is providing a wrapper script, which is using a hook at the end of the kiwi build and packages the resulting files into an rpm.
That one can be used as any other rpm afterwards inside of OBS.
To create such a hook, you need to write a script and package it as
executable. When this file is installed during kiwi builds (eg. via Support: $your_package line in prjconf), it is executed at the end of the kiwi build.
The script needs to build the rpm, eg. via calling rpmbuild and placing the result into $TOPDIR/OTHER/ directory.
($TOPDIR should be set in the environment)
You should create an own repository in your project to build this and configure it in your prjconf like this:
%if "%_repository" == "images-rpm" Type: kiwi Repotype: rpm-md Patterntype: none Support: kiwi-post-run-package %endif