and write in <abspath>/pkg.spec from perl
The default search list for %include is
rpm --eval '%{_specdir}\n'
defined as
# The directory where the spec file from a source package will be
# installed.
%_specdir %{_topdir}/SPECS
hth
On Thu, Jun 26, 2008 at 1:15 PM, Chinnakka K Batakurki <chinnakka.batakurki@xxxxxxxxxx> wrote:
I am able to write <sharfilename> from perl to some file(pkg.spec)
but the problem is if I include in Spec file as:
%include pkg.spec
I get the error as:
error: Unable to open /pkg.spec No such file or directory
But if I comment out this(#%include pkg.spec) and first perl writes into
the file and then include this line, it works fine
Please let me know what is wrong
20/06/2008 22:08 Re: Query Regarding RPM
Regards
-----------------------
Chinnakka Batakurki
IBM Internet Security Systems,
IBM India Private Limited,
FTP - 4 - 39, EPIP (Whitefield) Industrial Area, Bangalore - 560066
Tel: +91-80-2266 9885
Mob: +91-9845704118
Email: chinnakka.batakurki@xxxxxxxxxx
Mobile: +91-9845704118
devzero2000
<pinto.elia@gmail
.com> To
Sent by: "RPM Package Manager"
rpm-list-bounces@ <rpm-list@xxxxxxxxxx>
redhat.com cc
Subject
Please respond to
RPM Package
Manager
<rpm-list@redhat.
com>
A possibility, not the only, is as follow:
%include pkg.spec <------- #
Summary: A very simple package.
Name: simplest
Version: 1.0
Release: 1
License: GPL
#cat pkg.spec
Packager: <sharfilename>
So the perl script can write in pkg.spec the sharfile name
hth
On Fri, Jun 20, 2008 at 12:33 PM, Chinnakka K Batakurki <
chinnakka.batakurki@xxxxxxxxxx> wrote:
I don't have shar file name defined in Spec file as shar file has been
created using perl script
Could you please let me know how can I access this variable from perl to
Spec file
In the perl I tried to write the shar file name to some file, but I dont
know if there is any ways to get the file content in the Spec file
Thanks a lot for the info!
Regards
-----------------------
Chinnakka Batakurki
IBM Internet Security Systems,
IBM India Private Limited,
FTP - 4 - 39, EPIP (Whitefield) Industrial Area, Bangalore - 560066
Tel: +91-80-2266 9885
Mob: +91-9845704118
Email: chinnakka.batakurki@xxxxxxxxxx
Mobile: +91-9845704118
devzero2000
<pinto.elia@gmail
.com> To
Sent by: "RPM Package Manager"
rpm-list-bounces@ <rpm-list@xxxxxxxxxx>
redhat.com cc
Subject
20/06/2008 13:41 Re: Query Regarding RPM
Please respond to
RPM Package
Manager
<rpm-list@redhat.
com>
If you want attribute the package ownership, so you can find later,
to
the shar utility that have installed the package you
can, but it is only an idea, to define in your spec file
Packager (or Vendor): <your shar file>
So you can later query for example
rpm -qa --qf 'Package %{name}-%{version}-%{release}.%{arch} was installed
by %{packager} \n"
Sure, look as an hack, and it is. In fact, some better rpm tags would be
more "right" to use : Vendor or Packager have other use.
hth
On Fri, Jun 20, 2008 at 5:35 AM, Chinnakka K Batakurki <
chinnakka.batakurki@xxxxxxxxxx> wrote:
Thanks a lot for the response, but it did not give me the shar file name
To make my query more clear, we have created shell archive of the rpm
files
I want to know which shell archive file is used, after installation
Thanks!
Regards
-----------------------
Chinnakka Batakurki
IBM Internet Security Systems,
IBM India Private Limited,
FTP - 4 - 39, EPIP (Whitefield) Industrial Area, Bangalore - 560066
Tel: +91-80-2266 9885
Mob: +91-9845704118
Email: chinnakka.batakurki@xxxxxxxxxx
Mobile: +91-9845704118
"manjunath k"
<kmanjunat@gmail.
com>
To
Sent by: "RPM Package Manager"
rpm-list-bounces@ <rpm-list@xxxxxxxxxx>
redhat.com
cc
Subject
19/06/2008 18:29 Re: Query Regarding RPM
Please respond to
RPM Package
Manager
<rpm-list@redhat.
com>
Hi chinna,
Im not very sure about your query but I will suggest you a command that
will qive the entire list of the binaries and the shared libraries
that is being installed
by a package.
The command is rpm -qlp xyz.rpm
Regards,
Manjunath.K
On 6/19/08, Chinnakka K Batakurki <chinnakka.batakurki@xxxxxxxxxx>
wrote:
>
> Hi,
>
> We are creating the shar file and running it on the target to install
the
> package,
> Is there any command to know from which shar file(install script) the
> package has been installed
>
> I am able to get the package name by querying as RPM -qa |grep ...
> but I want to know the shar file also
>
> Thanks a lot!
>
> Regards
> -----------------------
> Chinnakka Batakurki
> IBM Internet Security Systems,
> IBM India Private Limited,
> FTP - 4 - 39, EPIP (Whitefield) Industrial Area, Bangalore - 560066
> Tel: +91-80-2266 9885
> Mob: +91-9845704118
> Email: chinnakka.batakurki@xxxxxxxxxx
> Mobile: +91-9845704118
>
> _______________________________________________
> Rpm-list mailing list
> Rpm-list@xxxxxxxxxx
> https://www.redhat.com/mailman/listinfo/rpm-list
>
_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/rpm-list
_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/rpm-list
_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/rpm-list
_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/rpm-list
_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/rpm-list
_______________________________________________ Rpm-list mailing list Rpm-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/rpm-list