On Oct 18, 2006, at 10:21 AM, rajat.dudeja@xxxxxxx wrote:
>>
>>Hello All,
>>I am new to building rpm packages. I am trying to make a rpm package and facing the following errors:
>>Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1
>>RPM build errors:
>>File not found: /usr/src/redhat/usr/local/racoon2/sbin/iked
>>File not found: /usr/src/redhat/usr/local/racoon2/sbin/spmd
>>my spec file is as follows:
>>Name: racoon2
>>Version: 20051102a
>>Release:A
>>URL: NONE
>>Group: Development/Tools
>>Summary: A tool for building packages.
>>License: GPL
>>Source: racoon2.tar.gz
>>This is what is causing rpm to look in /usr/src/prefix:
>>BuildRoot: %{_topdir}
>>and usually has a value of
>> BuildRoot: %{_tmppath}
>>with %{_tmppath} having the value /var/tmp.
>>%description
>>RACOON2 is a tool that implements IPsec.
>>%prep
>>%setup -q
>>%build
>>make
>>%install
>>make install
>>%clean
>>rm -rf %{_builddir}
mkdir %{_builddir}
> And the above should be using %{buildroot}, not %{_builddir}
>>%files
%defattr(-,root,root)
>You need the following files (at least)
>/usr/local/racoon2/sbin/iked
> /usr/local/racoon2/sbin/spmd
>>Though the make install is installing iked and spmd binaries in to the /usr/local/racoon2/sbin yet the rpm is not able to look into this directory an is looking into >>the /usr/src/redhat/usr/local/racoon2/sbin/iked and /usr/src/redhat/usr/local/racoon2/sbin/spmd
>>I cannot make out if this behaviour of rpm is correct. I read few of the articles petaining to this problem and found that this might be a problem with the local rpm >>enviromnet. I am not sure if this right? I tried looking into the rpmmacros and rpmrc files and did not find any such environment variable.
>Don't try to configure rpm (other than changing %{_topdir} to be something other than /usr/src/redhat)
>is probably best.
>73 de Jeff
Hello Jeff,
Thanks a lot for your help. The points you menioned helped solved my problem.
Best regards,
Rajat
=====-----=====-----===== Notice: The information contained in this e-mail message and/or attachments to it may contain confidential or privileged information. If you are not the intended recipient, any dissemination, use, review, distribution, printing or copying of the information contained in this e-mail message and/or attachments to it are strictly prohibited. If you have received this communication in error, please notify us by reply e-mail or telephone and immediately and permanently delete the message and any attachments. Thank you
_______________________________________________ Rpm-list mailing list Rpm-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/rpm-list