Re: Urgent help req

2002-08-02 Thread Bret Hughes

On Thu, 2002-08-01 at 03:00, Ashwin Khandare wrote:
> Dear Sir,
> 
> Does anyone knows about any script/tool that can convert tar.gz files into rpms?


Depends.  if the tarball has a spec file in it rpm will do it:
from the rpm man page:
 The argument used is -b if a spec file is being used to build the
package and -t if rpm should look inside of a (posĀ­
   sibly compressed) tar file for the spec file to use. After the
first argument, the next character  (STAGE)  specifies
   the stages of building and packaging to be done and is one of:

   -baBuild binary and source packages (after doing the %prep,
%build, and %install stages).

If the tarball in question happens to be a perl cpan module check out
cpanflute.  I saw a message about it on this list a while back and it
worked like a dream.

Bret



-- 
redhat-list mailing list
Unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
https://listman.redhat.com/mailman/listinfo/redhat-list



Re: Urgent help req

2002-08-02 Thread Aly Dharshi

Hi,

I guess it would be easier to think of a tar.gz file as a compressed zip file 
in 
windows while an rpm as a more complex installing .exe file on windows but the 
rpm is for Linux.

Cheers,

Aly.

Kent Borg wrote:
> On Thu, Aug 01, 2002 at 01:30:56PM +0530, Ashwin Khandare wrote:
> 
>>Does anyone knows about any script/tool that can convert tar.gz
>>files into rpms?
> 
> 
> There are certainly tools to help one create rpm files (such as rpm
> itself), but there isn't going to be a simple universal converter
> because rpm and tar.gz files are not the same kind of things.
> 
> A tar file is nothing be a way to collect a bunch of files into a
> single file.  A gz file is nothing but a compressed file.  A tar.gz
> file is a compressed collection of files.
> 
> The files that go into a tar.gz file can be anything.  They can be
> source code that needs to be compiled (they can be buggy source code
> that won't compile!).  They can be binary code that is ready to
> execute.  They can be music, they can be dirty pictures, they can be
> forgeign language dictionaries, they can be old e-mail, they can be
> seismic data.  Anything that you can put in a file you can put into a
> tar.gz file, and you can do so on nearly any kind of computer or
> operating system.
> 
> A rpm file, by contrast, is explicit details about how to install and
> how to uninstall something on a Red Hat Linux computer--along with the
> "something".  (The tar.gz file is only "something".)  rpm files also
> include dependency information detailing what the prerequisites are
> for some something.
> 
> So I think the question has several (possibly annoying) answers.  Pick
> one.
> 
>  - If you want to install something on your own machine: Find the rpm
>file that Red Hat (or someone else responsible) has created, and
>install it.
> 
>  - If you want to install something on your own machine and there is
>no rpm version available: Uncompress and untar the file, and start
>looking for a "README" or other instructions on how to install from
>that form.
> 
>  - If you have some package of your own that you want to distribute to
>others as an rpm file: Find someone nerdy who knows all about
>making rpm files and have him/er do it for you; or learn a bunch of
>groady details about rpm yourself and do it yourself.
> 
> 
> There might be a tool that can figure out how to take source code that
> includes a well behaved "configure" script and well behaved "install"
> and "uninstall" Make targets and compile and build you an rpm.  Sounds
> complicated and like something that would need some expert manual
> steps, but maybe someone else knows about it.
> 
> 
> Hope this was helpful,
> 
> -kb, the Kent who has never make an rpm file.
> 
> 
> 


-- 
Aly Dharshi
[EMAIL PROTECTED]
System Administrator ORS Servers

"A good speech is like a good dress
that's short enough to be interesting
and long enough to cover the subject"



-- 
redhat-list mailing list
Unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
https://listman.redhat.com/mailman/listinfo/redhat-list



Re: Urgent help req

2002-08-02 Thread Kent Borg

On Thu, Aug 01, 2002 at 01:30:56PM +0530, Ashwin Khandare wrote:
> Does anyone knows about any script/tool that can convert tar.gz
> files into rpms?

There are certainly tools to help one create rpm files (such as rpm
itself), but there isn't going to be a simple universal converter
because rpm and tar.gz files are not the same kind of things.

A tar file is nothing be a way to collect a bunch of files into a
single file.  A gz file is nothing but a compressed file.  A tar.gz
file is a compressed collection of files.

The files that go into a tar.gz file can be anything.  They can be
source code that needs to be compiled (they can be buggy source code
that won't compile!).  They can be binary code that is ready to
execute.  They can be music, they can be dirty pictures, they can be
forgeign language dictionaries, they can be old e-mail, they can be
seismic data.  Anything that you can put in a file you can put into a
tar.gz file, and you can do so on nearly any kind of computer or
operating system.

A rpm file, by contrast, is explicit details about how to install and
how to uninstall something on a Red Hat Linux computer--along with the
"something".  (The tar.gz file is only "something".)  rpm files also
include dependency information detailing what the prerequisites are
for some something.

So I think the question has several (possibly annoying) answers.  Pick
one.

 - If you want to install something on your own machine: Find the rpm
   file that Red Hat (or someone else responsible) has created, and
   install it.

 - If you want to install something on your own machine and there is
   no rpm version available: Uncompress and untar the file, and start
   looking for a "README" or other instructions on how to install from
   that form.

 - If you have some package of your own that you want to distribute to
   others as an rpm file: Find someone nerdy who knows all about
   making rpm files and have him/er do it for you; or learn a bunch of
   groady details about rpm yourself and do it yourself.


There might be a tool that can figure out how to take source code that
includes a well behaved "configure" script and well behaved "install"
and "uninstall" Make targets and compile and build you an rpm.  Sounds
complicated and like something that would need some expert manual
steps, but maybe someone else knows about it.


Hope this was helpful,

-kb, the Kent who has never make an rpm file.



-- 
redhat-list mailing list
Unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
https://listman.redhat.com/mailman/listinfo/redhat-list



Re: Urgent help req

2002-08-02 Thread Michael Scottaline

On Thu, 1 Aug 2002 13:30:56 +0530
"Ashwin Khandare" <[EMAIL PROTECTED]> scribbled intuitively:

>Dear Sir,
>
>Does anyone knows about any script/tool that can convert tar.gz files
>into rpms?

Untar
cd to the new directory
./configure
make
su
password
checkinstall

I believe that will create an rpm for you.  If that's inaccurate (I
haven't done such myself; I just make install) I'm sure one of the more
knowledgeable list members will point out the error ;o)

Mike

-- 
BluePoint Brewery, LI
--Run a river through your liver!!



-- 
redhat-list mailing list
Unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
https://listman.redhat.com/mailman/listinfo/redhat-list