On 6/29/06, Ville Skyttä <ville.skytta(a)iki.fi> wrote:
Do those %defines at the top work in mock/plague setups where pear
not installed at the time the build begins? I think someone reported a
problem with the similar approach taken in the python spec template in
configurations where python is not in the initial set of packages (which
could be a bug, but pear not being there is not). One possible fix
would be to not do those defines, but to generate a filelist in %install
and use that in %files, and drop the %defines altogether.
I tried changing the macros to just:
%define peardir %(pear config-get php_dir 2> /dev/null)
And this still worked under mock.