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]

 



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..
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..

Kyle

On 3/25/14 5:11 PM, "Fabricio Cannini" <fcannini@xxxxxxxxx> wrote:

>Em 25-03-2014 19:01, Kyle Crumpton (kcrumpto) escreveu:
>> Hi all. I am very new to RPM building and chose Cassandra as the service
>> for my first rpm. I'm just curious about one thing. How  would I specify
>> in the .spec file to install the rpm to /opt instead of /BUILD which
>> seems to be the default/where Cassandra installs with my first rpm I
>>built?
>
>Hi Kyle
>
>'%_prefix' is the macro that says where in the filesystem your package
>will be installed. It is the initial directory of your package, and it
>must an absolute path.
>
>'%buildroot' is the macro that says where, inside '%_topdir', the
>directory structure of your package will be created.
>( thinking about %buildroot as a kind of chroot may help )
>
>
>I'm guessing that you are confused about these two concepts. Am I right ?
>_______________________________________________
>Rpm-list mailing list
>Rpm-list@xxxxxxxxxxxxx
>http://lists.rpm.org/mailman/listinfo/rpm-list

_______________________________________________
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