qucs package : first try and need help

Ralf Corsepius rc040203 at freenet.de
Wed Oct 12 08:02:13 UTC 2005


On Wed, 2005-10-12 at 09:07 +0200, Eric TANGUY wrote:
> > On Wed, 2005-10-12 at 07:15 +0200, Eric Tanguy wrote:

> So if i unerstand well i can invoke . /etc/profile.d/qt.sh directly in the
> spec file to put QTDIR to the right path ?
Basically yes. This is what most KDE/QT packages apply:
...
%build
[ -n "$QTDIR" ] || . %{_sysconfdir}/profile.d/qt.sh
...

May be, I need to explain this line a little.
It means:
If QTDIR is not set, then "source" /etc/profile.d/qt.sh. 
I.e. execute all commands in /etc/profile.d/qt.sh as part of the shell
calling sh-script (%build sections inside of an rpm.spec are shell
scripts).

Ralf





More information about the fedora-extras-list mailing list