Le mercredi 20 octobre 2010 à 12:17 +0200, Michal Smrž a écrit :
Look at e.g. kde4-l10n which generates a spec file through a combination of perl and bash. https://build.opensuse.org/package/files?package=kde4-l10n&project=KDE%3ADistro%3AFactory.
Regards, Tejas
Thats it, and it's not too. If I get it right. It's not possible to generate parts of spec online during build. Instead I should do scripts, which creates huge spec (as in example above) offline and upload it (with that script of course)?
You could use rpm macro to "expand" a specfile at build time.
You can look at an example here (sorry, I don't have a openSUSE example
handy) :
http://svn.mandriva.com/cgi-bin/viewvc.cgi/packages/cooker/mandriva-theme/current/SPECS/mandriva-theme.spec?revision=548706&view=markup
--
Frederic Crozat