Update zoneminder.cmake.el6.spec

We need to strip the prefix from perl_vendorlib macro before passing it to cmake.
This commit is contained in:
Andrew Bauer 2013-10-20 12:44:09 -05:00
parent cdd2920767
commit 183ce4b422
1 changed files with 1 additions and 1 deletions

View File

@ -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}