From 183ce4b422658c64373fa76b5ece5bf033a397c2 Mon Sep 17 00:00:00 2001 From: Andrew Bauer Date: Sun, 20 Oct 2013 12:44:09 -0500 Subject: [PATCH] Update zoneminder.cmake.el6.spec We need to strip the prefix from perl_vendorlib macro before passing it to cmake. --- distros/redhat/zoneminder.cmake.el6.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/distros/redhat/zoneminder.cmake.el6.spec b/distros/redhat/zoneminder.cmake.el6.spec index acb798701..73d5bf682 100644 --- a/distros/redhat/zoneminder.cmake.el6.spec +++ b/distros/redhat/zoneminder.cmake.el6.spec @@ -66,7 +66,7 @@ too much degradation of performance. %build # Have to override CMAKE_INSTALL_LIBDIR for cmake < 2.8.7 due to this bug: # https://bugzilla.redhat.com/show_bug.cgi?id=795542 -%cmake -DZM_TARGET_DISTRO="el6" -DCMAKE_INSTALL_LIBDIR:PATH=%{_lib} -DZM_PERL_SUBPREFIX="%{perl_vendorlib}" . +%cmake -DZM_TARGET_DISTRO="el6" -DCMAKE_INSTALL_LIBDIR:PATH=%{_lib} -DZM_PERL_SUBPREFIX=`x="%{perl_vendorlib}" ; echo ${x#"%{_prefix}"}` . make %{?_smp_mflags}