update redhat packaging

This commit is contained in:
Arne Morten Kvarving 2017-10-25 09:47:07 +02:00
parent 4121088fbd
commit 8f586926ee

View File

@ -2,10 +2,10 @@
# spec file for package opm-upscaling
#
%define tag rc2
%define tag rc1
Name: opm-upscaling
Version: 2013.10
Version: 2017.10
Release: 0
Summary: Open Porous Media - upscaling library
License: GPL-3.0
@ -13,11 +13,12 @@ Group: Development/Libraries/C and C++
Url: http://www.opm-project.org/
Source0: https://github.com/OPM/%{name}/archive/release/%{version}/%{tag}.tar.gz#/%{name}-%{version}.tar.gz
BuildRequires: blas-devel lapack-devel dune-common-devel opm-grid-devel
BuildRequires: git suitesparse-devel doxygen bc opm-parser-devel
BuildRequires: git suitesparse-devel doxygen bc opm-parser-devel
BuildRequires: tinyxml-devel dune-istl-devel opm-common-devel opm-core-devel
BuildRequires: opm-material-devel ert.ecl-devel opm-output-devel
%{?el6:BuildRequires: cmake28 devtoolset-3-toolchain superlu-devel boost148-devel}
%{!?el6:BuildRequires: cmake gcc gcc-gfortran gcc-c++ SuperLU-devel boost-devel}
BuildRequires: opm-material-devel ecl-devel opm-output-devel
BuildRequires: devtoolset-6-toolchain
%{?el6:BuildRequires: cmake3 boost148-devel}
%{!?el6:BuildRequires: cmake boost-devel}
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Requires: libopm-upscaling1 = %{version}
@ -65,8 +66,8 @@ This package contains the applications for opm-upscaling
# consider using -DUSE_VERSIONED_DIR=ON if backporting
%build
%{?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=/usr/include/boost148} -DINSTALL_BENCHMARKS=1 -DWITH_NATIVE=OFF
scl enable devtoolset-6 bash
%{?el6:cmake3} %{!?el6:cmake} -DBUILD_SHARED_LIBS=1 -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=%{_prefix} -DCMAKE_INSTALL_DOCDIR=share/doc/%{name}-%{version} -DUSE_RUNPATH=OFF -DCMAKE_CXX_COMPILER=/opt/rh/devtoolset-6/root/usr/bin/g++ -DCMAKE_C_COMPILER=/opt/rh/devtoolset-6/root/usr/bin/gcc %{?el6:-DBOOST_LIBRARYDIR=%{_libdir}/boost148 -DBOOST_INCLUDEDIR=/usr/include/boost148} -DINSTALL_BENCHMARKS=1 -DWITH_NATIVE=OFF
make
%install