How can I change the target of an RPM install?

devzero2000 devzero2000 at rpm5.org
Fri Nov 7 10:35:22 UTC 2008


Put in ~/.rpmmacros

%_topdir   %(echo $HOME)/rpmbuild (o what you want )
%_srcrpmdir %{_topdir}/<WHATYOUWANT> the default is SRPMS


the useful build macros are (in RHEL/FEDORA)

grep topdir /usr/lib/rpm/macros
%_builddir              %{_topdir}/BUILD
%_rpmdir                %{_topdir}/RPMS
%_sourcedir             %{_topdir}/SOURCES
%_specdir               %{_topdir}/SPECS
%_srcrpmdir             %{_topdir}/SRPMS
%_topdir                %{_usrsrc}/redhat

hth

On Thu, Nov 6, 2008 at 8:10 PM, William Estrada <MrUmunhum at popdial.com>wrote:

> I don't want to install a source file in the default directory, I want
> to specify my own target.
> What RPM option should I use.
>
> Thanks for your time.
>
> --
> William Estrada
> MrUmunhum at popdial.com
> Mt-Umunhum-Wireless.net ( http://Mt-Umunhum-Wireless.net )
> Ymessenger: MrUmunhum
>
>
> _______________________________________________
> Rpm-list mailing list
> Rpm-list at lists.rpm.org
> http://lists.rpm.org/mailman/listinfo/rpm-list
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.rpm.org/pipermail/rpm-list/attachments/20081107/9b505041/attachment.htm 


More information about the Rpm-list mailing list