1 | %define _with_check -DEIGEN_BUILD_TESTS:BOOL=ON |
---|
2 | %define bit b23437e61a07 |
---|
3 | |
---|
4 | Name: eigen2 |
---|
5 | Summary: A lightweight C++ template library for vector and matrix math |
---|
6 | Version: 2.0.17 |
---|
7 | Release: 1%{?_dist_release} |
---|
8 | |
---|
9 | Group: System Environment/Libraries |
---|
10 | License: GPLv2+ or LGPLv3+ |
---|
11 | URL: http://eigen.tuxfamily.org/ |
---|
12 | |
---|
13 | Source0: http://bitbucket.org/eigen/eigen2/get/%{version}.tar.bz2 |
---|
14 | |
---|
15 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
16 | BuildArch: noarch |
---|
17 | BuildRequires: cmake |
---|
18 | BuildRequires: pkgconfig |
---|
19 | #docs |
---|
20 | BuildRequires: doxygen graphviz |
---|
21 | |
---|
22 | %description |
---|
23 | %{summary} |
---|
24 | |
---|
25 | %package devel |
---|
26 | Summary: A lightweight C++ template library for vector and matrix math |
---|
27 | Group: Development/Libraries |
---|
28 | # -devel subpkg only atm, compat with other distros |
---|
29 | Provides: %{name} = %{version}-%{release} |
---|
30 | |
---|
31 | %description devel |
---|
32 | %{summary} |
---|
33 | |
---|
34 | |
---|
35 | %prep |
---|
36 | %setup -q -n eigen-eigen-%{bit} |
---|
37 | |
---|
38 | %build |
---|
39 | mkdir -p %{_target_platform} |
---|
40 | pushd %{_target_platform} |
---|
41 | %cmake .. |
---|
42 | popd |
---|
43 | |
---|
44 | make %{?_smp_mflags} -C %{_target_platform} |
---|
45 | |
---|
46 | # docs |
---|
47 | doxygen |
---|
48 | |
---|
49 | |
---|
50 | %install |
---|
51 | rm -rf $RPM_BUILD_ROOT |
---|
52 | make install DESTDIR=$RPM_BUILD_ROOT -C %{_target_platform} |
---|
53 | |
---|
54 | %clean |
---|
55 | rm -rf %{buildroot} |
---|
56 | |
---|
57 | |
---|
58 | %files devel |
---|
59 | %defattr(-,root,root,-) |
---|
60 | %doc COPYING COPYING.LESSER |
---|
61 | %doc html/ |
---|
62 | %{_includedir}/eigen2 |
---|
63 | %{_datadir}/pkgconfig/eigen2.pc |
---|
64 | |
---|
65 | %changelog |
---|
66 | * Sun Dec 14 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 2.0.17-1 |
---|
67 | - updated to 2.0.17 |
---|
68 | |
---|
69 | * Sat May 19 2012 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 2.0.15-2 |
---|
70 | - rebuilt with rpm-4.8.1-3 |
---|
71 | |
---|
72 | * Sun Sep 26 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 2.0.15-1 |
---|
73 | - new upstream release |
---|
74 | - built with rpm-4.8.1 for pkg-config |
---|
75 | |
---|
76 | * Thu Nov 12 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 2.0.9-1 |
---|
77 | - new upstream release |
---|
78 | |
---|
79 | * Mon Oct 19 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 2.0.6-1 |
---|
80 | - new upstream release |
---|
81 | |
---|
82 | * Sat Sep 5 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 2.0.5-1 |
---|
83 | - Initial build for Vine Linux |
---|