Is there a way to verify if an application is installed , from within a SPEC file ?
Maybe using %verifyscript section ?
Thanks,
-Kamal.
--
packaging mailing list
packaging@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/packaging
05-07-2012, 03:14 PM
Jon Ciesla
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.
--
http://cecinestpasunefromage.wordpress.com/
------------------------------------------------
in your fear, seek only peace
in your fear, seek only love
-d. bowie
--
packaging mailing list
packaging@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/packaging
05-07-2012, 03:54 PM
Kamal Ahmed
use of %verifyscript
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.
--
http://cecinestpasunefromage.wordpress.com/
------------------------------------------------
in your fear, seek only peace
in your fear, seek only
love
-d. bowie
--
packaging mailing list
packaging@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/packaging
05-07-2012, 04:58 PM
Michael Schwendt
use of %verifyscript
On Mon, 7 May 2012 08:54:09 -0700 (PDT), KA (Kamal) wrote:
> Jon,
>
> So now i have the following requires:
>
> Requires:****** python-devel.i386
> Requires:****** postgresql84-server.i386
> Requires:****** postgresql84-python.i386
Typically, one does not add architecture specifiers, such as ".i386", to
Requires in a spec file, but relies on package tools to choose packages
made for a compatible architecture. On platforms, where the %_isa macro is
defined,
$ rpm --eval %_isa
(x86-64)
you can use it to create arch-specific Requires:
Requires: python-devel%{?_isa}
Only do it if you feel confident enough, of course.
> and if i do "yum install myapplication", it will majically install* the pre-requisites* ? correct ?
>
> Queation is how would yum KNOW "myappliction"
Publish your packages in a local or remote _repository_ of packages.
Use "createrepo" tool, and point Yum at that repository.
--
Fedora release 17 (Beefy Miracle) - Linux 3.3.4-4.fc17.x86_64
loadavg: 0.00 0.03 0.05
--
packaging mailing list
packaging@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/packaging