diff --git a/eigen3.spec b/eigen3.spec index 96f0e72..b115aa8 100644 --- a/eigen3.spec +++ b/eigen3.spec @@ -8,7 +8,7 @@ Name: eigen3 Version: 3.2.7 -Release: 1%{?dist} +Release: 2%{?dist} Summary: A lightweight C++ template library for vector and matrix math Group: Development/Libraries @@ -22,6 +22,10 @@ Source0: eigen-%{version}.tar.bz2 # Adapted from Debian eigen3 package Patch0: 01_install_FindEigen3.patch +# Fix incorrect include path in pkgconfig file +# See http://eigen.tuxfamily.org/bz/show_bug.cgi?id=1100#c2 +Patch1: eigen_pkgconfig.patch + BuildRequires: atlas-devel BuildRequires: fftw-devel BuildRequires: glew-devel @@ -63,6 +67,7 @@ Developer documentation for Eigen. %prep %setup -q -n eigen-eigen-%{commit} %patch0 -p1 +%patch1 -p1 %build mkdir %{_target_platform} @@ -99,6 +104,9 @@ make -C %{_target_platform} %{?_smp_mflags} test ARGS="-V" || exit 0 %doc %{_target_platform}/doc/html %changelog +* Fri Nov 06 2015 Sandro Mani - 3.2.7-2 +- Fix incorrect include path in pkgconfig file + * Thu Nov 05 2015 Sandro Mani - 3.2.7-1 - Update to release 3.2.7 diff --git a/eigen_pkgconfig.patch b/eigen_pkgconfig.patch new file mode 100644 index 0000000..450dcac --- /dev/null +++ b/eigen_pkgconfig.patch @@ -0,0 +1,13 @@ +--- a/eigen3.pc.in ++++ a/eigen3.pc.in +@@ -1,6 +1,9 @@ ++prefix=${CMAKE_INSTALL_PREFIX} ++exec_prefix=${prefix} ++ + Name: Eigen3 + Description: A C++ template library for linear algebra: vectors, matrices, and related algorithms + Requires: + Version: ${EIGEN_VERSION_NUMBER} + Libs: +-Cflags: -I${INCLUDE_INSTALL_DIR} ++Cflags: -I${prefix}/${INCLUDE_INSTALL_DIR}