mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-01-24 01:16:24 -06:00
update redhat6 packaging
build using devtoolset-3
This commit is contained in:
parent
7e0cb99bad
commit
e173306403
@ -16,7 +16,7 @@ BuildRequires: blas-devel lapack-devel dune-common-devel opm-output-devel
|
||||
BuildRequires: git suitesparse-devel doxygen bc
|
||||
BuildRequires: opm-parser-devel opm-core-devel opm-grid-devel
|
||||
BuildRequires: tinyxml-devel dune-istl-devel eigen3-devel ert.ecl-devel
|
||||
%{?el6:BuildRequires: cmake28 devtoolset-2 boost148-devel}
|
||||
%{?el6:BuildRequires: cmake28 devtoolset-3-toolchain boost148-devel}
|
||||
%{!?el6:BuildRequires: cmake gcc gcc-c++ boost-devel}
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
Requires: libopm-simulators1 = %{version}
|
||||
@ -59,8 +59,8 @@ This package contains the applications for opm-simulators
|
||||
%setup -q -n %{name}-release-%{version}-%{tag}
|
||||
|
||||
%build
|
||||
%{?el6:scl enable devtoolset-2 bash}
|
||||
%{?el6:cmake28} %{?!el6:cmake} -DBUILD_SHARED_LIBS=1 -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=%{_prefix} -DCMAKE_INSTALL_DOCDIR=share/doc/%{name}-%{version} -DUSE_RUNPATH=OFF %{?el6:-DCMAKE_CXX_COMPILER=/opt/rh/devtoolset-2/root/usr/bin/g++ -DCMAKE_C_COMPILER=/opt/rh/devtoolset-2/root/usr/bin/gcc -DBOOST_LIBRARYDIR=%{_libdir}/boost148 -DBOOST_INCLUDEDIR=%{_includedir}/boost148}
|
||||
%{?el6:scl enable devtoolset-3 bash}
|
||||
%{?el6:cmake28} %{?!el6:cmake} -DBUILD_SHARED_LIBS=1 -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=%{_prefix} -DCMAKE_INSTALL_DOCDIR=share/doc/%{name}-%{version} -DUSE_RUNPATH=OFF %{?el6:-DCMAKE_CXX_COMPILER=/opt/rh/devtoolset-3/root/usr/bin/g++ -DCMAKE_C_COMPILER=/opt/rh/devtoolset-3/root/usr/bin/gcc -DBOOST_LIBRARYDIR=%{_libdir}/boost148 -DBOOST_INCLUDEDIR=%{_includedir}/boost148}
|
||||
make
|
||||
|
||||
%install
|
||||
|
Loading…
Reference in New Issue
Block a user