Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Rotkraut:Attic
gmsh
gmsh.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File gmsh.spec of Package gmsh
Name: gmsh Summary: A three-dimensional finite element mesh generator Version: 2.5.0 Release: 1 License: GPL Group: Productivity/Scientific/Math URL: http://geuz.org/gmsh/ Source0: http://geuz.org/gmsh/src/gmsh-2.5.0-source.tgz Patch0: gmsh-return-values-fix.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root BuildRequires: cmake, gcc-c++, flex, bison, texlive, texinfo # Actually, gcc-fortran is not needed at all, but cmake insists on # configuring a Fortran compiler regardless whether the packages needs # one or not. BuildRequires: gcc-fortran BuildRequires: gmp-devel, lua-devel, blas, lapack %if %sles_version >= 11 BuildRequires: libhdf5-devel %else %if 0%{?suse_version} > 1110 BuildRequires: libhdf5-devel %else BuildRequires: hdf5-devel %endif %endif BuildRequires: libjpeg-devel, libpng-devel, zlib-devel BuildRequires: Mesa-devel, fltk-devel >= 1.1.7, OpenCASCADE-devel %description Gmsh is a 3D finite element grid generator with a build-in CAD engine and post-processor. Its design goal is to provide a fast, light and user-friendly meshing tool with parametric input and advanced visualization capabilities. Gmsh is built around four modules: geometry, mesh, solver and post-processing. The specification of any input to these modules is done either interactively using the graphical user interface or in ASCII text files using a own scripting language. Authors: -------- Christophe Geuzaine Jean-François Remacle %package -n libGmsh Summary: A three-dimensional finite element mesh generator Group: System/Libraries %description -n libGmsh Gmsh is a 3D finite element grid generator with a build-in CAD engine and post-processor. Its design goal is to provide a fast, light and user-friendly meshing tool with parametric input and advanced visualization capabilities. Gmsh is built around four modules: geometry, mesh, solver and post-processing. The specification of any input to these modules is done either interactively using the graphical user interface or in ASCII text files using a own scripting language. This package contains the shared libraries. Author: ------- Christophe Geuzaine Jean-François Remacle %package -n libGmsh-devel Summary: A three-dimensional finite element mesh generator Group: Development/Libraries/C and C++ Requires: libGmsh = %{version} %description -n libGmsh-devel Gmsh is a 3D finite element grid generator with a build-in CAD engine and post-processor. Its design goal is to provide a fast, light and user-friendly meshing tool with parametric input and advanced visualization capabilities. Gmsh is built around four modules: geometry, mesh, solver and post-processing. The specification of any input to these modules is done either interactively using the graphical user interface or in ASCII text files using a own scripting language. This package contains the header file and the static library as needed for development. Authors: -------- Christophe Geuzaine Jean-François Remacle %prep # Use -c to unpack the sources in a subdir of the build dir in order # to separate the source dir from the build dir (note the command line # arg to cmake in %build). %setup -c -q cd %{name}-%{version}-source %patch0 -p1 %build export CFLAGS="%{optflags}" export CXXFLAGS="%{optflags}" cmake %{name}-%{version}-source \ -DCMAKE_C_FLAGS:STRING="%{optflags}" \ -DCMAKE_CXX_FLAGS:STRING="%{optflags}" \ -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} make %{?_smp_mflags} all lib shared doc %install # As usual---this package using cmake---"make install" is just crap. # Solution: install into a temporary build root first and repair the # mess manually. make install DESTDIR=%{buildroot}/cmake-crap-tmp # make doc creates a tar file with some docu in the builddir (strange # idea). Extract the relevant bits manually from there. tar --directory=%{buildroot}/cmake-crap-tmp/%{_prefix}/share --extract --file=%{name}-%{version}-doc.tgz --gunzip doc/texinfo/gmsh.info doc/texinfo/gmsh.pdf mkdir -p %{buildroot}/%{_bindir} mkdir -p %{buildroot}/%{_includedir} mkdir -p %{buildroot}/%{_libdir} mkdir -p %{buildroot}/%{_datadir}/doc/packages/%{name} mkdir -p %{buildroot}/%{_infodir} mkdir -p %{buildroot}/%{_mandir} mv %{buildroot}/cmake-crap-tmp/%{_prefix}/bin/* \ %{buildroot}/%{_bindir} mv %{buildroot}/cmake-crap-tmp/%{_prefix}/include/* \ %{buildroot}/%{_includedir} mv %{buildroot}/cmake-crap-tmp/%{_prefix}/lib/* \ %{buildroot}/%{_libdir} mv %{buildroot}/cmake-crap-tmp/%{_prefix}/share/doc/%{name}/* \ %{buildroot}/%{_datadir}/doc/packages/%{name} mv %{buildroot}/cmake-crap-tmp/%{_prefix}/share/doc/texinfo/gmsh.pdf \ %{buildroot}/%{_datadir}/doc/packages/%{name} mv %{buildroot}/cmake-crap-tmp/%{_prefix}/share/doc/texinfo/gmsh.info \ %{buildroot}/%{_infodir} mv %{buildroot}/cmake-crap-tmp/%{_prefix}/share/man/* \ %{buildroot}/%{_mandir} install -m 755 -s libGmsh.so %{buildroot}/%{_libdir} %clean %__rm -rf %buildroot %post /sbin/ldconfig %install_info --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz %postun /sbin/ldconfig %install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz %files %defattr(-,root,root) %doc %{_datadir}/doc/packages/%{name} %doc %{_mandir}/*/* %doc %{_infodir}/%{name}.* %{_bindir}/* %files -n libGmsh %defattr(-,root,root) %{_libdir}/libGmsh.so %files -n libGmsh-devel %defattr(-,root,root) %{_includedir}/gmsh %{_libdir}/libGmsh.a %changelog * Thu Dec 2 2010 rolf@rotkraut.de - Install some more documentation * Wed Nov 17 2010 rolf@rotkraut.de - Initial package (2.5.0) # FIXME: # * gmsh brings its own Metis, Netgen, Tetgen, ... # Use the external packages metis-devel, netgen, ... instead. # * Build QT GUI? Switched off by default, may apparently be switched # on with ENABLE_QT:BOOL=ON. # * Add PETSc.
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor