On Jan 2, 2008 4:12 PM, Christoph Schug <[EMAIL PROTECTED]> wrote: > On Wed, Jan 02, 2008, Alain Spineux wrote: > > > Please could you tell me what do "%{l_value -s -a}" in > > > > %{l_shtool} install -c -m 644 %{l_value -s -a} \ > > %{SOURCE squirrelmail.conf} \ > > $RPM_BUILD_ROOT%{l_prefix}/etc/apache/apache.d/ > > The '%{l_value -s -a}' macro just expands to a set of sed(1)-style > arguments which a required very often. shtool takes those ones as > arguments to perform replacements while installing the file. So this is > just a short-hand for convenience. You can use the 'rpm --eval' command > to see the expanded macro: > > ---8<---snipp---8<--- > > $ /openpkg-dev/bin/openpkg rpm --eval '%{l_value -s -a}' > -e 's;@l_susr@;root;g' -e 's;@l_sgrp@;root;g' -e 's;@l_suid@;0;g' -e > 's;@l_sgid@;0;g' -e 's;@l_musr@;openpkg-dev;g' -e 's;@l_mgrp@;openpkg-dev;g' > -e 's;@l_muid@;42010;g' -e 's;@l_mgid@;42010;g' -e > 's;@l_rusr@;openpkg-dev-r;g' -e 's;@l_rgrp@;openpkg-dev-r;g' -e > 's;@l_ruid@;42011;g' -e 's;@l_rgid@;42011;g' -e 's;@l_nusr@;openpkg-dev-n;g' > -e 's;@l_ngrp@;openpkg-dev-n;g' -e 's;@l_nuid@;42012;g' -e > 's;@l_ngid@;42012;g' -e 's;@l_prefix@;/openpkg-dev;g' -e > 's;@l_prefix_static@;/openpkg-dev;g' > > --->8---snapp--->8--- > > -cs
I should have guessed it ! Thanks to both. > > ______________________________________________________________________ > OpenPKG http://openpkg.org > User Communication List openpkg-users@openpkg.org > -- Alain Spineux aspineux gmail com May the sources be with you ______________________________________________________________________ OpenPKG http://openpkg.org User Communication List openpkg-users@openpkg.org