SPECS: php-pear-HTML_AJAX.spec - BR: sed 4.0, use __sed macro

Tomasz Wittner twittner at o2.pl
Thu Aug 18 23:06:06 CEST 2005


On Thu 18. of August 2005 22:15, Elan Ruusamäe wrote:
> On Thursday 18 August 2005 23:09, darekr wrote:
> > Author: darekr                       Date: Thu Aug 18 20:09:42 2005 GMT
> > Module: SPECS                         Tag: HEAD
> > ---- Log message:
> > - BR: sed 4.0, use __sed macro
> what for?
By what reasons We use %{__make}? - it is just /usr/bin/make .
I've found some justifications:
http://archive.netbsd.se/?ml=viewcvs-dev&a=2002-05&m=406158
https://www.redhat.com/archives/fedora-test-list/2003-August/msg01306.html
(PLD also is mentioned ;)
Personally, on my FreeBSD box I have %_sed definied as /usr/local/bin/gsed
because PLD relies on GNU sed which is differ from /bin/sed which comes with
fbsd base system so using macros instead plain commands invokation was more
convenient for me (I don't use fbsd at the moment).
> there's a lot of sed usage without macros so far that i know.
> put it into adapter.awk?
Do it, if you please, but mayby wait some time for other's people opinions.
> 
> [...]
> > -sed -i -e 's#@data-dir@#%{php_pear_dir}#g' -e "s#'HTML_AJAX'#'HTML'.DIRECTORY_SEPARATOR.'AJAX'#g" \
> > +%{__sed} -i -e 's#@data-dir@#%{php_pear_dir}#g' -e "s#'HTML_AJAX'#'HTML'DIRECTORY_SEPARATOR.'AJAX'#g" \
> >         $RPM_BUILD_ROOT%{php_pear_dir}/%{_class}/AJAX/Server.php
> 

-- 
Tomasz Wittner



More information about the pld-devel-en mailing list