Mageia Bugzilla – Attachment 10278 Details for
Bug 23299
elmerfem (Elmer), an open source multiphysical simulation software mainly developed by CSC
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
New Account
|
Forgot Password
SPEC File for Elmer FEM
elmerfem.spec (text/x-rpm-spec), 2.66 KB, created by
Adrien Guichard
on 2018-07-13 12:27:53 CEST
(
hide
)
Description:
SPEC File for Elmer FEM
Filename:
MIME Type:
Creator:
Adrien Guichard
Created:
2018-07-13 12:27:53 CEST
Size:
2.66 KB
patch
obsolete
>%define name elmerfem >%define version 8.3.40a1744 >%define release %mkrel 1 >%define commit 40a1744df026be2ba8d064814a4f2052486dbe15 >%define tag 40a1744 > >Name: %{name} >Summary: Elmer is an open source multiphysical simulation software >Version: %{version} >Release: %mkrel 1 >Group: Sciences/Physics > >License: GPL+ >URL: https://www.csc.fi/web/elmer/elmer > >Source0: https://github.com/ElmerCSC/%{name}/archive/%{tag}/%{name}-%{tag}.tar.gz >Patch0: remove_mathlibs_directory.patch >Patch1: vtk-8.0-fix-include-dir.patch >Patch2: use_CMAKE_INSTALL_LIBDIR.patch > >BuildRequires: cmake >BuildRequires: gcc >BuildRequires: gcc-c++ >BuildRequires: gcc-gfortran >BuildRequires: qt4-devel >BuildRequires: arpack-devel >BuildRequires: lapack-devel >BuildRequires: blas-devel >BuildRequires: netcdf-devel >BuildRequires: netcdf-cxx-devel >BuildRequires: pkgconfig(theora) >BuildRequires: parpack-devel >BuildRequires: paraview-devel >BuildRequires: python-devel >BuildRequires: opencascade-devel >BuildRequires: libharu-devel >BuildRequires: jsoncpp-devel >BuildRequires: vtk >BuildRequires: vtk-static-devel >BuildRequires: python-vtk >%description >Elmer is an open source multiphysical simulation software mainly developed by CSC - IT Center for Science (CSC). Elmer development was started 1995 in collaboration with Finnish Universities, research institutes and industry. After it's open source publication in 2005, the use and development of Elmer has become international. > >Elmer includes physical models of fluid dynamics, structural mechanics, electromagnetics, heat transfer and acoustics, for example. These are described by partial differential equations which Elmer solves by the Finite Element Method (FEM). > >%prep >%setup -q -n %{name}-%{commit} >%patch0 -p1 >%patch1 -p1 >%patch2 -p1 > >rm -rf mathlibs > >%build ># https://bugzilla.redhat.com/show_bug.cgi?id=917407 >PATH=/usr/bin:$PATH; export PATH >CFLAGS='-O2 -g -DNDEBUG'; export CFLAGS >CPPFLAGS='-O2 -g -DNDEBUG '; export CPPFLAGS >FFLAGS='-O2 -g -DNDEBUG'; export FFLAGS >LDFLAGS=' -Wl,--as-needed -Wl,-z,relro -Wl,-O1 -Wl,--build-id -Wl,--enable-new-dtags'; export LDFLAGS >%cmake_qt4 -DWITH_PYTHONQT:BOOL=TRUE \ > -DWITH_PARAVIEW:BOOL=TRUE \ > -DWITH_ELMERGUI:BOOL=TRUE \ > -DWITH_MPI:BOOL=TRUE \ > -DOCE_DIR=/usr/share/cmake/Modules/ \ > -DWITH_OCC:BOOL=TRUE \ > -DNO_OCE:BOOL=FALSE \ > -DCMAKE_SKIP_RPATH:BOOL=TRUE \ > -DELMER_INSTALL_LIB_DIR:PATH=%{_lib} \ > -DCMAKE_INSTALL_LIBDIR=%{_lib} > >%install >%make_install -C build > >%files >%license license_texts/LICENSES >%doc README.txt >%exclude /usr/lib/debug >%exclude %{_libdir}/*.a >%{_datadir}/ElmerGUI/ >%{_datadir}/elmersolver/ >%{_libdir}/*.so >%{_bindir}/*
%define name elmerfem %define version 8.3.40a1744 %define release %mkrel 1 %define commit 40a1744df026be2ba8d064814a4f2052486dbe15 %define tag 40a1744 Name: %{name} Summary: Elmer is an open source multiphysical simulation software Version: %{version} Release: %mkrel 1 Group: Sciences/Physics License: GPL+ URL: https://www.csc.fi/web/elmer/elmer Source0: https://github.com/ElmerCSC/%{name}/archive/%{tag}/%{name}-%{tag}.tar.gz Patch0: remove_mathlibs_directory.patch Patch1: vtk-8.0-fix-include-dir.patch Patch2: use_CMAKE_INSTALL_LIBDIR.patch BuildRequires: cmake BuildRequires: gcc BuildRequires: gcc-c++ BuildRequires: gcc-gfortran BuildRequires: qt4-devel BuildRequires: arpack-devel BuildRequires: lapack-devel BuildRequires: blas-devel BuildRequires: netcdf-devel BuildRequires: netcdf-cxx-devel BuildRequires: pkgconfig(theora) BuildRequires: parpack-devel BuildRequires: paraview-devel BuildRequires: python-devel BuildRequires: opencascade-devel BuildRequires: libharu-devel BuildRequires: jsoncpp-devel BuildRequires: vtk BuildRequires: vtk-static-devel BuildRequires: python-vtk %description Elmer is an open source multiphysical simulation software mainly developed by CSC - IT Center for Science (CSC). Elmer development was started 1995 in collaboration with Finnish Universities, research institutes and industry. After it's open source publication in 2005, the use and development of Elmer has become international. Elmer includes physical models of fluid dynamics, structural mechanics, electromagnetics, heat transfer and acoustics, for example. These are described by partial differential equations which Elmer solves by the Finite Element Method (FEM). %prep %setup -q -n %{name}-%{commit} %patch0 -p1 %patch1 -p1 %patch2 -p1 rm -rf mathlibs %build # https://bugzilla.redhat.com/show_bug.cgi?id=917407 PATH=/usr/bin:$PATH; export PATH CFLAGS='-O2 -g -DNDEBUG'; export CFLAGS CPPFLAGS='-O2 -g -DNDEBUG '; export CPPFLAGS FFLAGS='-O2 -g -DNDEBUG'; export FFLAGS LDFLAGS=' -Wl,--as-needed -Wl,-z,relro -Wl,-O1 -Wl,--build-id -Wl,--enable-new-dtags'; export LDFLAGS %cmake_qt4 -DWITH_PYTHONQT:BOOL=TRUE \ -DWITH_PARAVIEW:BOOL=TRUE \ -DWITH_ELMERGUI:BOOL=TRUE \ -DWITH_MPI:BOOL=TRUE \ -DOCE_DIR=/usr/share/cmake/Modules/ \ -DWITH_OCC:BOOL=TRUE \ -DNO_OCE:BOOL=FALSE \ -DCMAKE_SKIP_RPATH:BOOL=TRUE \ -DELMER_INSTALL_LIB_DIR:PATH=%{_lib} \ -DCMAKE_INSTALL_LIBDIR=%{_lib} %install %make_install -C build %files %license license_texts/LICENSES %doc README.txt %exclude /usr/lib/debug %exclude %{_libdir}/*.a %{_datadir}/ElmerGUI/ %{_datadir}/elmersolver/ %{_libdir}/*.so %{_bindir}/*
View Attachment As Raw
Actions:
View
Attachments on
bug 23299
: 10278 |
10279
|
10280
|
10281