--- /dev/null
+diff -up plplot-5.10.0/cmake/modules/pkg-config.cmake.cmake31 plplot-5.10.0/cmake/modules/pkg-config.cmake
+--- plplot-5.10.0/cmake/modules/pkg-config.cmake.cmake31 2014-02-05 22:06:07.000000000 -0700
++++ plplot-5.10.0/cmake/modules/pkg-config.cmake 2015-02-06 08:49:06.376911059 -0700
+@@ -1,6 +1,6 @@
+ # cmake/modules/pkg-config.cmake
+ #
+-# Copyright (C) 2006 Alan W. Irwin
++# Copyright (C) 2006-2015 Alan W. Irwin
+ #
+ # This file is part of PLplot.
+ #
+@@ -94,7 +94,12 @@ macro(pkg_check_pkgconfig _package _incl
+ set(_xprefix ${_prefix})
+ endif(FORCE_EXTERNAL_STATIC)
+
+- _pkg_check_modules_internal(0 0 ${_prefix} "${_package}")
++ if(CMAKE_VERSION VERSION_LESS "3.1")
++ _pkg_check_modules_internal(0 0 ${_prefix} "${_package}")
++ else(CMAKE_VERSION VERSION_LESS "3.1")
++ _pkg_check_modules_internal(0 0 0 0 ${_prefix} "${_package}")
++ endif(CMAKE_VERSION VERSION_LESS "3.1")
++
+ if(${_prefix}_FOUND)
+ cmake_link_flags(${_link_FLAGS} "${${_xprefix}_LDFLAGS}")
+ # If libraries cannot be not found, then that is equivalent to whole
Patch5: %{name}-adadirs.patch
Patch6: %{name}-ocamldir.patch
Patch7: %{name}-d.patch
+Patch8: %{name}-cmake31.patch
URL: http://plplot.sourceforge.net/
BuildRequires: QtGui-devel >= 4
BuildRequires: QtSvg-devel >= 4
%patch5 -p1
%patch6 -p1
%patch7 -p1
+%patch8 -p1
# "Posix" is reserved and can be set only automatically
#%{__sed} -i -e 's/-version=Posix //' cmake/modules/language_support/cmake/Platform/Linux-dmd.cmake