RPM Community Forums

Mailing List Message of <rpm-devel>

Re: vcheck question

From: Ralf S. Engelschall <rse+rpm-devel@rpm5.org>
Date: Sat 05 Apr 2008 - 20:06:46 CEST
Message-ID: <20080405180646.GA64983@engelschall.com>
On Sat, Apr 05, 2008, devzero2000 wrote:

> It is possible to have a description how to use vcheck and %track
> section in rpm5 ?I have read some mail on the subject, but I have't
> understood very well (my fault, naturally). Which macro it is
> necessary to use for example and why? It is necessary to use the
> OpenPKG rpm version to use this features well ? (e.g. the -bf option)

%track originally was invented by OpenPKG for its RPM 4, but it is now
included in stock RPM 5 out-of-the-box. You just need to create a %track
section and run "rpm -bt" on the *.spec file:

| $ ./rpm --version
| rpm (RPM) 5.1.DEVEL
| $ ./rpm -bt uuid.spec
| Checking for uuid... 1.6.1 remains latest version.
| $ sed -n -e '/%track/,/%prep/p' <uuid.spec
| %track
|     prog uuid = {
|         version   = %{version}
|         url       = ftp://ftp.ossp.org/pkg/lib/uuid/
|         regex     = uuid-(__VER__)\.tar\.gz
|     }
|
| %prep

This is with RPM 5.1 as of today, but the same should work equally well
with the released RPM 5.0.3.

                                       Ralf S. Engelschall
                                       rse@engelschall.com
                                       www.engelschall.com
Received on Sat Apr 5 20:09:30 2008
Driven by Jeff Johnson and the RPM project team.
Hosted by OpenPKG and Ralf S. Engelschall.
Powered by FreeBSD and OpenPKG.