Add eigen_pkgconfig.patch

This commit is contained in:
Sandro Mani 2015-11-06 16:21:54 +01:00
parent 0f8ef3afc2
commit 0b5ed4136e
2 changed files with 22 additions and 1 deletions

View File

@ -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 <manisandro@gmail.com> - 3.2.7-2
- Fix incorrect include path in pkgconfig file
* Thu Nov 05 2015 Sandro Mani <manisandro@gmail.com> - 3.2.7-1
- Update to release 3.2.7

13
eigen_pkgconfig.patch Normal file
View File

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