Add eigen_pkgconfig.patch
This commit is contained in:
parent
0f8ef3afc2
commit
0b5ed4136e
10
eigen3.spec
10
eigen3.spec
@ -8,7 +8,7 @@
|
|||||||
|
|
||||||
Name: eigen3
|
Name: eigen3
|
||||||
Version: 3.2.7
|
Version: 3.2.7
|
||||||
Release: 1%{?dist}
|
Release: 2%{?dist}
|
||||||
Summary: A lightweight C++ template library for vector and matrix math
|
Summary: A lightweight C++ template library for vector and matrix math
|
||||||
|
|
||||||
Group: Development/Libraries
|
Group: Development/Libraries
|
||||||
@ -22,6 +22,10 @@ Source0: eigen-%{version}.tar.bz2
|
|||||||
# Adapted from Debian eigen3 package
|
# Adapted from Debian eigen3 package
|
||||||
Patch0: 01_install_FindEigen3.patch
|
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: atlas-devel
|
||||||
BuildRequires: fftw-devel
|
BuildRequires: fftw-devel
|
||||||
BuildRequires: glew-devel
|
BuildRequires: glew-devel
|
||||||
@ -63,6 +67,7 @@ Developer documentation for Eigen.
|
|||||||
%prep
|
%prep
|
||||||
%setup -q -n eigen-eigen-%{commit}
|
%setup -q -n eigen-eigen-%{commit}
|
||||||
%patch0 -p1
|
%patch0 -p1
|
||||||
|
%patch1 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
mkdir %{_target_platform}
|
mkdir %{_target_platform}
|
||||||
@ -99,6 +104,9 @@ make -C %{_target_platform} %{?_smp_mflags} test ARGS="-V" || exit 0
|
|||||||
%doc %{_target_platform}/doc/html
|
%doc %{_target_platform}/doc/html
|
||||||
|
|
||||||
%changelog
|
%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
|
* Thu Nov 05 2015 Sandro Mani <manisandro@gmail.com> - 3.2.7-1
|
||||||
- Update to release 3.2.7
|
- Update to release 3.2.7
|
||||||
|
|
||||||
|
13
eigen_pkgconfig.patch
Normal file
13
eigen_pkgconfig.patch
Normal 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}
|
Loading…
Reference in New Issue
Block a user