OS: CentOS 5 x86.
I have read in some places that we can make an rpm package from tar.gz, by issuing rpmbuild -ta. However it doesn't seem to work. Any hints?
On Mon, Apr 23, 2007 at 04:15:53PM +0300, Ioannis Vranos wrote:
I have read in some places that we can make an rpm package from tar.gz, by issuing rpmbuild -ta. However it doesn't seem to work. Any hints?
The tarball needs to have the spec file inside otherwise rpmbuild won't know how to build it.
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Mon, Apr 23, 2007 at 04:15:53PM +0300, Ioannis Vranos wrote:
OS: CentOS 5 x86.
I have read in some places that we can make an rpm package from tar.gz, by issuing rpmbuild -ta. However it doesn't seem to work. Any hints?
- -ta will only work if you have a specfile inside the tarball. Otherwise, you will have to create the specfile yourself.
Best Regards,
- -- Rodrigo Barbosa "Quid quid Latine dictum sit, altum viditur" "Be excellent to each other ..." - Bill & Ted (Wyld Stallyns)
On Mon, 23 Apr 2007, Ioannis Vranos wrote:
I have read in some places that we can make an rpm package from tar.gz, by issuing rpmbuild -ta. However it doesn't seem to work. Any hints?
The tarball has to have a .spec file within itself for this to work - not all do
-- Russ Herrold
Miark wrote:
On Mon, 23 Apr 2007 16:15:53 +0300, Ioannis wrote:
I have read in some places that we can make an rpm package from tar.gz, by issuing rpmbuild -ta. However it doesn't seem to work. Any hints?
Might checkinstall help?
It might, but in my experience it doesn't. I've tried using it three times, and each time it bombed out somewhere. I tried for a few hours to get past the problems each times, and finally gave up on it. It's a nice idea, but suffers in the implementation.
It's been a year or so since I used it, so things may be better now, but I can't recommend it.
Mike
Ioannis Vranos wrote:
OS: CentOS 5 x86.
I have read in some places that we can make an rpm package from tar.gz, by issuing rpmbuild -ta. However it doesn't seem to work. Any hints?
Generally works well if there's a .spec file in the tarball, not at all if there's none. I don't know exactly what happens if there are two or more .spec files; I suspect you get rpms as defined by one of them.
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Tue, Apr 24, 2007 at 06:46:13AM +0800, John Summerfield wrote:
Ioannis Vranos wrote:
OS: CentOS 5 x86.
I have read in some places that we can make an rpm package from tar.gz, by issuing rpmbuild -ta. However it doesn't seem to work. Any hints?
Generally works well if there's a .spec file in the tarball, not at all if there's none. I don't know exactly what happens if there are two or more .spec files; I suspect you get rpms as defined by one of them.
The "-t" code on rpm is ugly, Ugly, UGLY. I avoid using it at all costs. Having more than one specfile on the tarball is not something I would be willing to experiment with.
[]s
- -- Rodrigo Barbosa "Quid quid Latine dictum sit, altum viditur" "Be excellent to each other ..." - Bill & Ted (Wyld Stallyns)
Rodrigo Barbosa wrote:
Generally works well if there's a .spec file in the tarball, not at all if there's none. I don't know exactly what happens if there are two or more .spec files; I suspect you get rpms as defined by one of them.
The "-t" code on rpm is ugly, Ugly, UGLY. I avoid using it at all costs. Having more than one specfile on the tarball is not something I would be willing to experiment with.
Some packers include .spec files for more than one distro. Be grateful.
Be cautious.