Summary: Gmsh, A three-dimensional finite element mesh generator with built-in pre- and post-processing facilities Name: gmsh Version: 2.16.0 Release: 10.12%{?dist}1a Source0: localhost:/%{name}-%{version}-source.tar.gz URL: http://gmsh.info/ Group: Development/Libraries License: GPL %define __prefix /opt/gmsh Prefix: %{__prefix} BuildRoot: %{_tmppath}/%{name}-root %description Gmsh is a free 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 Gmsh's own scripting language. Gmsh is copyright (C) 1997-2017 by C. Geuzaine and J.-F. Remacle (see the CREDITS file for more information) and is distributed under the terms of the GNU General Public License (GPL) (version 2 or later, with an exception to allow for easier linking with external libraries). If you use Gmsh please cite the following reference in your work (books, articles, reports, etc.): C. Geuzaine and J.-F. Remacle. Gmsh: a three-dimensional finite element mesh generator with built-in pre- and post-processing facilities. International Journal for Numerical Methods in Engineering 79(11), pp. 1309-1331, 2009. You can also cite additional references for specific features and algorithms. %prep %setup -n %{name}-%{version}-source rm -rf $RPM_BUILD_ROOT mkdir -p $RPM_BUILD_ROOT%{__prefix} %build mkdir build cd build cmake -DCMAKE_PREFIX_PATH=%{_prefix} -DCMAKE_INSTALL_PREFIX=%{__prefix}/%{version} .. make %{?_smp_mflags} %install cd build make install DESTDIR=$RPM_BUILD_ROOT cd .. mv demos demos.bak mv tutorial tutorial.bak mv $RPM_BUILD_ROOT/*.txt . mv $RPM_BUILD_ROOT/demos . mv $RPM_BUILD_ROOT/tutorial . mv $RPM_BUILD_ROOT/gmsh.1 . cd $RPM_BUILD_ROOT%{__prefix} mkdir %{version}/icons mkdir %{version}/bin mv MacOS/* %{version}/bin rmdir MacOS mv %{version}/*.icns %{version}/icons/ %clean rm -rf $RPM_BUILD_ROOT %files %doc *.txt demos tutorial gmsh.1 %defattr(-,root,wheel) %dir %{__prefix}/%{version} %{__prefix}/%{version}/* %changelog * Sun Jan 8 2017 Keisuke Fujii 8.2-10.12hepx1a - 1st release on MacOS X 10.12 for x86_64.