SPECS: php-pear-Benchmark.spec - cat optional-packages.txt; rel 2

Elan Ruusamäe glen at delfi.ee
Wed Dec 14 10:02:02 CET 2005


On Tuesday 13 December 2005 20:59, Jakub Bogusz wrote:
> Oops, initially posted to -pl, should be -en.
>
> On Tue, Dec 13, 2005 at 12:03:08PM +0100, glen wrote:
> > Author: glen                         Date: Tue Dec 13 11:03:08 2005 GMT
> > Module: SPECS                         Tag: HEAD
> > ---- Log message:
> > - cat optional-packages.txt; rel 2
[..]
> > +%post
> > +if [ -f %{_docdir}/%{name}-%{version}/optional-packages.txt ]; then
> > +	cat %{_docdir}/%{name}-%{version}/optional-packages.txt
> > +fi
> > +
[..]
> >  %files
> >  %defattr(644,root,root,755)
> > -%doc install.log
> > +%doc install.log optional-packages.txt
>
> 1. it will be gzipped (by default at least), so test -f will be false
no. it's in php-pearprov macros to ignore compressing it.

> 2. what about sysconfig/rpm::RPM_SCRIPTVERBOSITY?
does %banner support displaying external files? because the file is produced 
in build stange (ie not available from .spec itself)

or would it possible to "compile" the textfile into %post message (using 
%()... macro)? or that's unstable, which could and could not work?

also maybe this important %post message shouldn't left in %doc, but rather 
somewhere in filesystem. systems as _excludedocs 1 will not have the file and 
thus will not have the message displayed.

-- 
glen



More information about the pld-devel-en mailing list