where line should be the equivalent of
rpm --eval '%{_target_cpu}-%{_target_vendor}-%{_target_os}%{?_gnu}'
It was my understanding that this should have been sufficient to achieve an archscore match, however
python -c 'import rpm; print rpm.archscore("i686")' still reported '0' as in no match,
adding '.*' gave me an archscore of 2, ( for 2 matching lines ) . So rpm-python is a little buggy ?
For those running into similar problem, the valid configuration for us was
--with-libelf \ build-extlibdep \ build-maxextlib dep \ build-versionsc ript \ build-warnings \ pcre=internal \ usecrypto= beecrypt \ beecrypt= external \ db-tools- integrated \ bzip2=external \ file=external \ keyutils= external \ popt=external \ zlib=external
--with-
--with-
--enable-
--enable-
--with-perl \
--with-python=2.7 \
--with-
--with-
--with-
--with-db=internal --with-
--with-
--with-
--with-
--with-lua=external \
--with-
--with-xz=external \
--with-
cat > $RPM_BUILD_ ROOT/etc/ rpm/platform <<"EOF"
i686-pc-linuxgnu
.*
EOF
where line should be the equivalent of cpu}-%{ _target_ vendor} -%{_target_ os}%{?_ gnu}'
rpm --eval '%{_target_
It was my understanding that this should have been sufficient to achieve an archscore match, however "i686") ' still reported '0' as in no match,
python -c 'import rpm; print rpm.archscore(
adding '.*' gave me an archscore of 2, ( for 2 matching lines ) . So rpm-python is a little buggy ?