Re: How would I specify in the spec file where to install the RPM to?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Em 26-03-2014 13:10, Kyle Crumpton (kcrumpto) escreveu:
Hi Fabricio.

These are two concepts I wasn't familiar with.

When I went to /usr/lib/rpm/macros I noticed that it had

%_prefix 		/usr

I changed this to /opt and saw no change in where it was installed too..

You did this in the spec file, right ?

it still installs to /BUILD.
The build root is set to
232:%_buildrootdir		%{_topdir}/BUILDROOT
235:%buildroot		%{_buildrootdir}/%{name}-%{version}-%{release}.%{_arch}


And when I look at _topdir it points to %{getenv:HOME}/rpmbuild..

It seems there is something wrong with your macros.

The 'BUILD' directory ( %_builddir ) is usually '%_topdir/BUILD' .

Is there any '.rpmmacros' file in your $HOME ? If so, what is the content of it ?


_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxxxxx
http://lists.rpm.org/mailman/listinfo/rpm-list




[Index of Archives]     [RPM Ecosystem]     [Linux Kernel]     [Red Hat Install]     [PAM]     [Red Hat Watch]     [Red Hat Development]     [Red Hat]     [Gimp]     [Yosemite News]     [IETF Discussion]

  Powered by Linux