On September 7, 2005 10:59:03 AM -0400 "Steven W. Orr" <steveo@xxxxxxxxxxx> wrote:
I have the following snippet: Name: guard_stap Version: 1.0 Release: 1 Prefix: /usr/local/guardium %define InstRoot %{Prefix}/%{Name}-%{Version}-%{Release} Then later on I have these refs: %files %defattr(-,root,root) %dir /usr/ %dir /usr/local/ %dir /usr/local/guardium/ %dir %{InstRoot}/
...
error: File must begin with "/": %{Prefix}/%{Name}-%{Version}-%{Release}/ Am I doing something wrong or is this not allowed in the %files section?
The 'Prefix:' tag does not define %prefix. %name, %version, %release are special that way, other tags are not. You can just define it. In the olden days (circa 3.0) before those tags were special, this was common: %define name foo %define version 1.0 %define release 1 Name: %name Version: %version Release: %release -frank _______________________________________________ Rpm-list mailing list Rpm-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/rpm-list