rpms/flumotion/devel flumotion.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

Ralf Corsepius rc040203 at freenet.de
Sun Apr 24 03:22:34 UTC 2005


On Sat, 2005-04-23 at 10:26 +0200, Thomas Vander Stichele wrote:
> Hi Ralf,
> 
> thanks for the comments.
> 
> 
> > Therefore I'd recommend you to change
> > 
> > Requires(post): openssl
> > into
> > Requires(post): /usr/share/ssl/certs/make-dummy-cert
> 
> ok
> 
> > and to use
> > /usr/share/ssl/certs/make-dummy-cert instead of 
> > %{_datadir}/ssl/certs/make-dummy-cert
> 
> 
> > This might seem negligible to you, but it makes a substantial difference
> > should the location of make-dummy-cert change, or openssl be replaced by
> > another package.
> 
> Can you tell me what the exact difference will be here ?
It's a matter of ownership.

%{_datadir} is a property of the package/rpm-spec you are currently
building, it is by no means related/coupled to the directory being used
by make-dummy-cert.

Try 
rpmbuild --define '_datadir /tmp/foo'
then you probably understand the difference.

It will tell rpmbuild to install files using %_datadir into /tmp/foo,
but it will also bogusly tell the package to call 
/tmp/foo/..../make-dummy-cert

=> The package depends on
/usr/share/ssl/certs/make-dummy-cert
and does _not_ depend on
%{_datadir}/ssl/certs/make-dummy-cert

>  First of all,
> if make-dummy-cert changes location, it won't work anymore anyway.
> Second, when would %{_datadir} not expand in /usr/share ? Why would it
> need to be changed here, while everywhere else we use %{_datadir} ?
>  I feel like I'm missing an important point.
The point is: The fact that %{_datadir}/.../make-dummy-cert expands
into /usr/share/.../make-dummy-cert is "just a random accident" and
"lucky coincidence".

Ralf











More information about the fedora-extras-commits mailing list