[TriLUG] RPM: spec file questions
Tanner Lovelace
lovelace at trilug.org
Thu Dec 19 15:57:06 EST 2002
On Thu, 2002-12-19 at 15:49, H Brett Bolen wrote:
> Is there a way to extract the spec file out of an rpm file?
I presume you mean out of the source rpm, since they're
not stored in the binary rpms. :-) Yes, you can use
rpm2cpio to convert the rpm file into a cpio stream
that you can then use with cpio (which is similar to tar).
rpm2cpio <rpmfile> | cpio [params] should do the trick.
See the cpio man file for params.
> When I list the files in the spec file, Do I have to use
> a full pathname -- is there a way to use relative paths
> ( aka tar cvf MyDir.tar ./MyDir )
What are you trying to do? This question is confusing.
> Is there list of %vars I can use in the spec file?
You can look in the rpm macros file (generally found
in /usr/lib/rpm/macros) for a start.
> Is Maximum RPM still a good source for info?
Maximum RPM is showing its age these days, but it's
still a good place for the fundamentals. I don't
know for certain, but I think just about everything
in it will still work. (If someone knows differently,
please correct me.)
Cheers,
Tanner
--
Tanner Lovelace | lovelace(at)trilug.org | http://www.trilug.org/
--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--
GPG Fingerprint = A66C 8660 924F 5F8C 71DA BDD0 CE09 4F8E DE76 39D4
GPG Key can be found at http://wtl.wayfarer.org/lovelace.gpg.asc
--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--
"Junk food is considered part of the vegetable food group, because it
comes from a plant. A big chemical plant. In New Jersey." - Kludge
Dorsey
More information about the TriLUG
mailing list