rpm-list-bounces@xxxxxxxxxx wrote on 10/26/2006 11:20:25 AM: > > On Oct 26, 2006, at 11:11 AM, Fulko.Hew@xxxxxxxxx wrote: > > > > > Is there any way to specify a target filespec that is independent > > of the file's location on the build machine. > > > > ie. on the build machine the source file is in > > /home/me/myproject/src/myfile > > but when installed, I want it to be in /bin/myfile on the target > > machine. > > > > I can't find anything in the Maximum RPM book to point me in a > > direction to > > go. > > I would have thought it would be something in the %files list. > > > > The %files list should include the install, not the build, path. > > RPM_BUILD_ROOT (or the equivalently valued macro %{buildroot}) is > where a mapping between build path and install path is achieved, > basically > by copying from the build path to the buildroot, something like the > following > > BuildRoot: %{_tmppath}/%{name} > ... > > %install > rm -rf %{buildroot} > mkdir -p %{buildroot}/bin > ... > cp /home/me/myproject/src/myfile %{buildroot}/bin > ... > > %files > %defattr(-,root,root) > /bin/myfile > > It sounds like you are not using a BuildRoot: directive at all > however, but > that's just my guess. Thanks. I've unfortunately inherited the responsibility for all of the rpm spec files for our products, and I (thought I) didn't understand the relationship between BuildRoot and the %install block. Especially, since our %install block didn't use buildroot properly (so it didn't work the way its supposed to) making me believe that I was 'missing' something in my understanding. Turns out I wasn't missing anything... I was looking at a bug propagated across all of our spec files. :-( This document is strictly confidential and intended only for use by the addressee unless otherwise stated. If you are not the intended recipient, please notify the sender immediately and delete it from your system. _______________________________________________ Rpm-list mailing list Rpm-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/rpm-list