How would I specify in the spec file where to install the RPM to?
Fabricio Cannini
fcannini at gmail.com
Wed Mar 26 19:12:51 UTC 2014
Em 26-03-2014 13:55, Kyle Crumpton (kcrumpto) escreveu:
> Here is the content of .rpmmacros
>
>
> %_topdir %(echo $HOME)/rpmbuild
This is strange because if '%_topdir' is right.
'%_builddir' should "go without saying" .
Have you tried to set it manually in $HOME/.rpmmacros ?
> %_smp_mflags %( \
> [ -z "$RPM_BUILD_NCPUS" ] \\\
> && RPM_BUILD_NCPUS="`/usr/bin/nproc 2>/dev/null || \\\
> /usr/bin/getconf _NPROCESSORS_ONLN`"; \\\
> if [ "$RPM_BUILD_NCPUS" -gt 16 ]; then \\\
> echo "-j16"; \\\
> elif [ "$RPM_BUILD_NCPUS" -gt 3 ]; then \\\
> echo "-j$RPM_BUILD_NCPUS"; \\\
> else \\\
> echo "-j3"; \\\
> fi )
>
> %__arch_install_post \
> [ "%{buildarch}" = "noarch" ] || QA_CHECK_RPATHS=1 ; \
> case "${QA_CHECK_RPATHS:-}" in [1yY]*) /usr/lib/rpm/check-rpaths ;;
> esac \
> /usr/lib/rpm/check-buildroot
>
>
>
> On 3/26/14 11:42 AM, "Fabricio Cannini" <fcannini at gmail.com> wrote:
>
>> 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 at lists.rpm.org
>> http://lists.rpm.org/mailman/listinfo/rpm-list
>
> _______________________________________________
> Rpm-list mailing list
> Rpm-list at lists.rpm.org
> http://lists.rpm.org/mailman/listinfo/rpm-list
>
More information about the Rpm-list
mailing list