[opensuse-buildservice] %prefix variable not being substituted
I'm trying to update OGRE in the games project (https://build.opensuse.org/package/show?package=ogre&project=games) to the latest version but in the process of updating the .spec file for some reason the %prefix variable isn't being substituted. I call (in %prep but maybe it should be in %build) CMake with something like: cmake .. -DCMAKE_INSTALL_PREFIX=%prefix which I would expect to get turned in to: cmake .. -DCMAKE_INSTALL_PREFIX=/usr but it doesn't as can be seen at https://build.opensuse.org/package/rawlog?arch=x86_64&package=ogre&project=games&repository=openSUSE_11.2 (search for "CMAKE_INSTALL_PREFIX"). Now, I assume this is caused by something I'm doing wrong but I can;t work out what it is. Can anyone be of any help? Regards, Matt Williams http://milliams.com -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
On Fri, Apr 2, 2010 at 12:46 AM, Matt Williams
I'm trying to update OGRE in the games project (https://build.opensuse.org/package/show?package=ogre&project=games) to the latest version but in the process of updating the .spec file for some reason the %prefix variable isn't being substituted.
I call (in %prep but maybe it should be in %build) CMake with something like:
cmake .. -DCMAKE_INSTALL_PREFIX=%prefix
which I would expect to get turned in to:
cmake .. -DCMAKE_INSTALL_PREFIX=/usr
but it doesn't as can be seen at https://build.opensuse.org/package/rawlog?arch=x86_64&package=ogre&project=games&repository=openSUSE_11.2 (search for "CMAKE_INSTALL_PREFIX").
Now, I assume this is caused by something I'm doing wrong but I can;t work out what it is. Can anyone be of any help?
Darix helped me out on IRC and pointed out that %prefix should not be used but rather %_prefix. It does indeed fix the problem but it's strange that using %prefix has worked for me in the past and I still use it extensively in %files sections. I guess I'll be converting all those to use %_prefix instead now. Sorry for the noise all, Matt Williams http://milliams.com -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
participants (1)
-
Matt Williams