Sophie

Sophie

distrib > Altlinux > 4.1 > i586 > media > core-src > by-pkgid > 961084ea7043ab88cf8fd6870fedb65f > files > 2

eigen-1.0.5-alt0.M41.1.src.rpm


Name: eigen
Version: 1.0.5
Release: alt0.M41.1

Group: Development/C++
Summary: Lightweight C++ template library for vector and matrix math, a.k.a. linear algebra
License: LGPL
Url: http://eigen.tuxfamily.org/

Provides: %name-devel = %version-%release

Source: eigen-%version.tar.gz

BuildRequires: cmake >= 2.4.6 gcc-c++

%description
Eigen is a lightweight C++ template library for vector and matrix math, a.k.a.
linear algebra.

%prep
%setup -q -n %name

%build
%define _optlevel s
%add_optflags -DNDEBUG
%define lib_suffix %nil
%ifarch x86_64 ppc64
%define lib_suffix 64
%endif
mkdir -p %_target_platform
pushd %_target_platform
cmake .. \
    -DCMAKE_INSTALL_PREFIX=%prefix \
    -DCMAKE_BUILD_TYPE:STRING=Release \
    -DCMAKE_C_FLAGS_RELEASE:STRING='%optflags' \
    -DCMAKE_CXX_FLAGS_RELEASE:STRING='%optflags' \
    -DLIB_DESTINATION=%_lib \
    -DLIB_SUFFIX=%lib_suffix
popd
%make_build -C %_target_platform VERBOSE=1

%install
%make -C %_target_platform DESTDIR=%buildroot install

%files
%_includedir/eigen/

%changelog
* Mon Oct 20 2008 Sergey V Turchin <zerg at altlinux dot org> 1.0.5-alt0.M41.1
- built for M41

* Thu Oct 16 2008 Sergey V Turchin <zerg at altlinux dot org> 1.0.5-alt1
- initial specfile