Re: [ydl-gen] rpms

Richard June <[email protected]>
Newsgroups gmane.linux.yellowdog.general
Message-ID <[email protected]>
On Wednesday 10 June 2009 02:38:23 pm Atro Tossavainen wrote:
> Derick,
>
> > I suppose there's a way to extract or discover the spec file from a .gz
> > or bz2 file prepared by a project. In this case, I downloaded the
> > latest libgcrypt source from gnupg. So how would I use rpm to extract
> > that info?
rpm does nothing with it if it does not exist, tar -tzf <FILE> | grep spec 
should give you a clue as to whether or not a specfile exists.

> "man rpmbuild" is your friend :-)
>
>    BUILD OPTIONS
>        The general form of an rpm build command is
>
>        rpmbuild -bSTAGE|-tSTAGE [      rpmbuild-options
>         ] FILE ...
>
>        The  argument  used  is  -b  if a spec file is being used to build
> the package and -t if rpmbuild should look  inside  of  a  (possibly  com-
> pressed)  tar file for the spec file to use.
>
>
> so:	rpmbuild -tb something-1.2.3.tar.gz
> might get you going in case the .tar.gz contains a spec file.
I think -ta will actually build the packages, IIRC, tb will go so far as 
building the program.

>
>
> Sub-note, not related to building rpms:
> Would all the people who think they can get removed from the list by
> posting to the list itself rather than following removal instructions
> please cease to exist?  The "remove me!" traffic is really quite annoying
> and makes me want to do things a conscientious objector can't do, by
> definition.

Doesn't sound like you're so conscientious. :-D
_______________________________________________
yellowdog-general mailing list
[email protected]
http://lists.fixstars.com/mailman/listinfo/yellowdog-general
HINT: to Google archives, try  '<keywords> site:us.fixstars.com'
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.