Group :: Development/C++
RPM: getfemxx
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
%define rname getfem++
Name: getfemxx
Version: 3.1
Release: alt1
Group: Development/C++
Summary: Generic and efficient C++ library for finite element methods
Url: http://home.gna.org/getfem/
License: LGPLv2+
Requires: lib%name = %version-%release
Source0: http://download.gna.org/getfem/stable/getfem++-%version.tar.gz
BuildRequires: gcc-c++ gcc-fortran glibc-devel libatlas-devel
%description
The Getfem++ project focuses on the development of a generic and efficient
C++ library for finite element methods. The goal is to provide a library
allowing the computation of any elementary matrix (even for mixed finite
element methods) on the largest class of methods and elements, and for
arbitrary dimension (i.e. not only 2D and 3D problems).
%package -n lib%name
Group: System/Libraries
Summary: %rname library
%description -n lib%name
%rname library
%prep
%setup -q -n %rname-%version
autoreconf -fisv
%build
%define _optlevel 3
%add_optflags -fno-strict-aliasing
export CFLAGS="%optflags" CXXFLAGS="%optflags"
%configure \
--disable-static \
--enable-shared \
--with-matlab-toolbox-dir=%_datadir/getfem_toolbox
CUT_CFLAGS=`grep "^CXXFLAGS" Makefile | head -n 1| sed "s|^CXXFLAGS[[:space:]][[:space:]]*=||"`
%make CFLAGS="$CUT_CFLAGS"
%install
%make DESTDIR=%buildroot install
%post -n lib%name
%post_ldconfig
%postun -n lib%name
%postun_ldconfig
%files
%doc README NEWS BUGS AUTHORS
%_datadir/getfem_toolbox
%_bindir/getfem-config
%_includedir/getfem
%_includedir/getfem_boost
%_includedir/gmm
%_libdir/*.so
%files -n lib%name
%_libdir/*.so.*
%changelog
…
Full changelog you can see here
Name: getfemxx
Version: 3.1
Release: alt1
Group: Development/C++
Summary: Generic and efficient C++ library for finite element methods
Url: http://home.gna.org/getfem/
License: LGPLv2+
Requires: lib%name = %version-%release
Source0: http://download.gna.org/getfem/stable/getfem++-%version.tar.gz
BuildRequires: gcc-c++ gcc-fortran glibc-devel libatlas-devel
%description
The Getfem++ project focuses on the development of a generic and efficient
C++ library for finite element methods. The goal is to provide a library
allowing the computation of any elementary matrix (even for mixed finite
element methods) on the largest class of methods and elements, and for
arbitrary dimension (i.e. not only 2D and 3D problems).
%package -n lib%name
Group: System/Libraries
Summary: %rname library
%description -n lib%name
%rname library
%prep
%setup -q -n %rname-%version
autoreconf -fisv
%build
%define _optlevel 3
%add_optflags -fno-strict-aliasing
export CFLAGS="%optflags" CXXFLAGS="%optflags"
%configure \
--disable-static \
--enable-shared \
--with-matlab-toolbox-dir=%_datadir/getfem_toolbox
CUT_CFLAGS=`grep "^CXXFLAGS" Makefile | head -n 1| sed "s|^CXXFLAGS[[:space:]][[:space:]]*=||"`
%make CFLAGS="$CUT_CFLAGS"
%install
%make DESTDIR=%buildroot install
%post -n lib%name
%post_ldconfig
%postun -n lib%name
%postun_ldconfig
%files
%doc README NEWS BUGS AUTHORS
%_datadir/getfem_toolbox
%_bindir/getfem-config
%_includedir/getfem
%_includedir/getfem_boost
%_includedir/gmm
%_libdir/*.so
%files -n lib%name
%_libdir/*.so.*
%changelog
…
Full changelog you can see here