what about, lets say:
Requires(post): openssl >= 0.9.7f-4, /bin/cat
i would like to package openssl in the rpm , is that possible ?
or the standard way, is that if openssl is not installed, i just get an error, and have to
manually install it?
I am taking example of openssh, so when i do yum -y install openssh , it installs the
openssh-server and openssh-client and also executes/runs the binary.
From: Jon Ciesla <limburgher(a)gmail.com>
To: Kamal Ahmed <kamal2222ahmed(a)yahoo.com>; Discussion of RPM packaging standards
and practices for Fedora <packaging(a)lists.fedoraproject.org>
Sent: Tuesday, May 1, 2012 9:24 AM
Subject: Re: [Fedora-packaging] Running installation shell script
On Tue, May 1, 2012 at 8:22 AM, Kamal Ahmed <kamal2222ahmed(a)yahoo.com> wrote:
> Is it permissible to run a shell script, which has commands like:
> echo "Installing Development Tools"
> yum $YUMOPTS groupinstall "Development Tools"
> echo "Installing other packages"
> yum $YUMOPTS install python-devel.i386
> yum $YUMOPTS install postgresql84-server.i386 postgresql84-devel.i386
> # note: check install script that already exists. ask kamal.
> # Download and install other packages
> echo "Installing Asterisk"
> tar xvzf asterisk-10.2.1.tar.gz
> cd asterisk-10.2.1
> make install
> chkconfig asterisk on
> in the %post section ?
No, don't run rpm or yum in the spec, in any place. If you need
packages installed to build, use BuildRequires. If you need packages
installed to run, use Requires.
> packaging mailing list
in your fear, seek only peace
in your fear, seek only love