Bug 24713

Summary: gear misdetects spec version (should use rpmbuild -bE?)
Product: Sisyphus Reporter: viy <viy>
Component: gearAssignee: Dmitry V. Levin <ldv>
Status: CLOSED WONTFIX QA Contact: qa-sisyphus
Severity: normal    
Priority: P3 CC: glebfm, ldv, legion, placeholder
Version: unstable   
Hardware: all   
OS: Linux   

Description viy 2010-12-08 14:53:20 MSK
gear misdetects spec version (should use rpmbuild -bE?)
Example:
$ j=viy;i=pine; git clone git://git.altlinux.org/people/$j/packages/$i.git $i.git
$ cd pine.git
$ gear --command env | grep gear_pkg_version
gear_pkg_version=4.64
===
should be 4.64L
Comment 1 Dmitry V. Levin 2010-12-08 15:15:53 MSK
1. By design, gear must not use any evals like rpmbuild.
2. If gear cannot guess package version because the spec file is too complex, it is not a gear problem: gear uses these guesed values only to substitute macros while parsing .gear/rules.
Comment 2 viy 2010-12-08 18:26:12 MSK
ok