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