eigen2-vl.spec 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. %define _with_check -DEIGEN_BUILD_TESTS:BOOL=ON
  2. Name: eigen2
  3. Summary: A lightweight C++ template library for vector and matrix math
  4. Version: 2.0.9
  5. Release: 1%{?_dist_release}
  6. Group: System Environment/Libraries
  7. License: GPLv2+ or LGPLv3+
  8. URL: http://eigen.tuxfamily.org/
  9. Source0: http://bitbucket.org/eigen/eigen2/get/%{name}-%{version}.tar.bz2
  10. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  11. BuildArch: noarch
  12. BuildRequires: cmake
  13. BuildRequires: pkgconfig
  14. #docs
  15. BuildRequires: doxygen graphviz
  16. %description
  17. %{summary}
  18. %package devel
  19. Summary: A lightweight C++ template library for vector and matrix math
  20. Group: Development/Libraries
  21. # -devel subpkg only atm, compat with other distros
  22. Provides: %{name} = %{version}-%{release}
  23. Requires: pkgconfig
  24. %description devel
  25. %{summary}
  26. %prep
  27. %setup -q -n eigen2
  28. #patch50 -p1 -b .pkgconfig_noarch
  29. %build
  30. mkdir -p %{_target_platform}
  31. pushd %{_target_platform}
  32. %cmake ..
  33. popd
  34. make %{?_smp_mflags} -C %{_target_platform}
  35. # docs
  36. doxygen
  37. %install
  38. rm -rf $RPM_BUILD_ROOT
  39. make install DESTDIR=$RPM_BUILD_ROOT -C %{_target_platform}
  40. # changed eigen2.pc location
  41. mkdir -p $RPM_BUILD_ROOT%{_datadir}/pkgconfig
  42. mv $RPM_BUILD_ROOT%{_libdir}/pkgconfig/eigen2.pc \
  43. $RPM_BUILD_ROOT%{_datadir}/pkgconfig/eigen2.pc
  44. %clean
  45. rm -rf %{buildroot}
  46. %files devel
  47. %defattr(-,root,root,-)
  48. %doc COPYING COPYING.LESSER
  49. %doc html/
  50. %{_includedir}/eigen2
  51. %{_datadir}/pkgconfig/eigen2.pc
  52. %changelog
  53. * Thu Nov 12 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 2.0.9-1
  54. - new upstream release
  55. * Mon Oct 19 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 2.0.6-1
  56. - new upstream release
  57. * Sat Sep 5 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 2.0.5-1
  58. - Initial build for Vine Linux