rpmbuild : need help with spec file.
Hello
In my rpm spec file I need to put the following command in the post section. echo "`rpm -qa --qf \"%-11{SIZE} %{NAME}\n\" | sort -k1n`" >>%{mytest_conf} But during installation it fails . I think the part "\"%-11{SIZE}" is creating the issue. Any idea how to get rid of it? Thanks ~S |
This is the first time I've seen those % constructions for use in a spec file, so I can't offer specific advice. My generic troubleshooting thought is to try doing something like
Code:
echo "%-11{SIZE}" >>%{mytest_conf} |
Hi
thanks for the reply. this may not work as I found that the problem is with '-' like in the command echo "`rpm -qa --qf \"%-11{SIZE} %{NAME}\n\" | sort -k1n`" >>%{mytest_conf} if I change to echo "`rpm -qa --qf \"%11{SIZE} %{NAME}\n\" | sort -k1n`" >>%{mytest_conf} it works. thanks ~S |
All times are GMT -5. The time now is 05:16 PM. |