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
|
_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/rpm-list