[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Interaction of %_sourcedir and %version
- From: "Kenneth Porter" <shiva well com>
- To: "RPM List" <rpm-list redhat com>
- Subject: Interaction of %_sourcedir and %version
- Date: Wed, 20 Sep 2000 23:37:21 -0700
I just tried to build rpm-3.0.5-9.6x.src.rpm from the RH6.2 updates,
and ran into a problem. My .rpmmacros defines %_sourcedir:
%_sourcedir %{_topdir}/SOURCES/%{name}-%{version}-%{release}
Installing the source package puts the tarball in the correct
subdirectory of SOURCES.
rpm.spec specifies the popt subpackage to have "Version: 1.5". When
%prep occurs just after this, popt's version number is stuffed into the
%_sourcedir path, and rpm fails to find the tarball in
SOURCES/rpm-1.5-9.6x.
Temporarily I can remove %version and %release from my %_sourcedir, but
what's the Right Way to handle this? For example, is there a way to
force the macro definition in .rpmmacros to expand once there to its
final value so it can't be changed later in the spec file?
Ken
mailto:shiva@well.com
http://www.sewingwitch.com/ken/
http://www.harrybrowne2000.org/
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
[]