From e2079ed33be492b3440bc925794725a313cbf79c Mon Sep 17 00:00:00 2001 From: Rex Dieter Date: Jul 01 2009 16:51:52 +0000 Subject: add some pkgconfig love --- diff --git a/eigen2-pkgconfig_noarch.patch b/eigen2-pkgconfig_noarch.patch new file mode 100644 index 0000000..7db90ef --- /dev/null +++ b/eigen2-pkgconfig_noarch.patch @@ -0,0 +1,12 @@ +diff -up eigen2/CMakeLists.txt.pkgconfig_noarch eigen2/CMakeLists.txt +--- eigen2/CMakeLists.txt.pkgconfig_noarch 2009-06-22 03:44:09.000000000 -0500 ++++ eigen2/CMakeLists.txt 2009-07-01 11:50:50.590919637 -0500 +@@ -114,7 +114,7 @@ set(INCLUDE_INSTALL_DIR + if(EIGEN_BUILD_PKGCONFIG) + configure_file(eigen2.pc.in eigen2.pc) + install(FILES ${CMAKE_CURRENT_BINARY_DIR}/eigen2.pc +- DESTINATION lib/pkgconfig ++ DESTINATION share/pkgconfig + ) + endif(EIGEN_BUILD_PKGCONFIG) + diff --git a/eigen2.spec b/eigen2.spec index 5a3ad20..99df77d 100644 --- a/eigen2.spec +++ b/eigen2.spec @@ -22,7 +22,11 @@ Source0: http://bitbucket.org/eigen/eigen2/get/%{version}%{?pre:-%{pre}}.tar.bz2 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch +## upstreamable patches +Patch50: eigen2-pkgconfig_noarch.patch + BuildRequires: cmake +BuildRequires: pkgconfig #docs BuildRequires: doxygen graphviz @@ -54,6 +58,7 @@ Summary: A lightweight C++ template library for vector and matrix math Group: Development/Libraries # -devel subpkg only atm, compat with other distros Provides: %{name} = %{version}-%{release} +Requires: pkgconfig %description devel %{summary} @@ -61,6 +66,8 @@ Provides: %{name} = %{version}-%{release} %prep %setup -q -n eigen2%{!?snap:-%{version}} +%patch50 -p1 -b .pkgconfig_noarch + %build @@ -98,6 +105,7 @@ rm -rf %{buildroot} %doc COPYING COPYING.LESSER %doc html/ %{_includedir}/eigen2/ +%{_datadir}/pkgconfig/eigen2.pc %changelog