Jon,

So now i have the following requires:

Requires:       python-devel.i386
Requires:       postgresql84-server.i386
Requires:       postgresql84-python.i386

and the following BuildRequires:

BuildRequires:  gcc = 4.1.2
BuildRequires:  make >= 3.81
BuildRequires:  postgresql84-devel = 8.4.9

and i get rpm buid fine, and get the following message:


Requires: /bin/bash /usr/bin/env libc.so.6 libc.so.6(GLIBC_2.0) libc.so.6(GLIBC_2.1) libc.so.6(GLIBC_2.2) libc.so.6(GLIBC_2.3) libnsl.so.1 libpq.so.5 libpthread.so.0 libpthread.so.0(GLIBC_2.0) libpthread.so.0(GLIBC_2.1) libpthread.so.0(GLIBC_2.2) librt.so.1 postgresql84-python.i386 postgresql84-server.i386 python(abi) = 2.4 python-devel.i386 rtld(GNU_HASH)
So now when i install this rpm via the "rpm -ivh myapplication.rpm"
i will get Warnings, IF the Requires are not installed

and if i do "yum install myapplication", it will majically install  the pre-requisites  ? correct ?

Queation is how would yum KNOW "myappliction"

Thanks,
-Kamal.


From: Jon Ciesla <limburgher@gmail.com>
To: Kamal Ahmed <kamal2222ahmed@yahoo.com>; Discussion of RPM packaging standards and practices for Fedora <packaging@lists.fedoraproject.org>
Sent: Monday, May 7, 2012 11:14 AM
Subject: Re: [Fedora-packaging] use of %verifyscript

On Mon, May 7, 2012 at 10:13 AM, Kamal Ahmed <kamal2222ahmed@yahoo.com> wrote:
> Is there a way to verify if an application is installed , from within a SPEC
> file ?
> Maybe using %verifyscript section ?

For build time, BuildRequires.  For runtime, Requires.

-J

> Thanks,
> -Kamal.
>
> --
> packaging mailing list
> packaging@lists.fedoraproject.org
> https://admin.fedoraproject.org/mailman/listinfo/packaging



--
http://cecinestpasunefromage.wordpress.com/
------------------------------------------------
in your fear, seek only peace
in your fear, seek only love

-d. bowie