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