mirror of
https://github.com/OPM/opm-upscaling.git
synced 2025-02-25 18:45:23 -06:00
make packaging compatible with EL5
This commit is contained in:
parent
6830e466e6
commit
fb38f9c92e
@ -15,7 +15,7 @@ Source0: https://github.com/OPM/%{name}/archive/release/%{version}/%{tag}
|
||||
BuildRequires: blas-devel lapack-devel dune-common-devel
|
||||
BuildRequires: git suitesparse-devel cmake28 doxygen bc
|
||||
BuildRequires: tinyxml-devel dune-istl-devel superlu-devel opm-core-devel
|
||||
BuildRequires: opm-porsol-devel opm-material-devel ert-devel
|
||||
BuildRequires: opm-porsol-devel opm-material-devel ert.ecl-devel
|
||||
%{?el5:BuildRequires: gcc44 gcc44-gfortran gcc44-c++}
|
||||
%{!?el5:BuildRequires: gcc gcc-gfortran gcc-c++}
|
||||
%{?el5:BuildRequires: boost141-devel}
|
||||
@ -29,6 +29,7 @@ This module provides semi-implicit pressure and transport solvers using the IMPE
|
||||
%package -n libopm-upscaling1
|
||||
Summary: Open Porous Media - upscaling library
|
||||
Group: System/Libraries
|
||||
%{?el5:BuildArch: %{_arch}}
|
||||
|
||||
%description -n libopm-upscaling1
|
||||
This module implements single-phase and steady-state upscaling methods.
|
||||
@ -41,6 +42,7 @@ Requires: blas-devel
|
||||
Requires: lapack-devel
|
||||
Requires: suitesparse-devel
|
||||
Requires: libopm-upscaling1 = %{version}
|
||||
%{?el5:BuildArch: %{_arch}}
|
||||
|
||||
%description devel
|
||||
This package contains the development and header files for opm-upscaling
|
||||
@ -58,16 +60,29 @@ Summary: Applications in opm-upscaling
|
||||
Group: Scientific
|
||||
Requires: %{name} = %{version}
|
||||
Requires: libopm-upscaling1 = %{version}
|
||||
%{?el5:BuildArch: %{_arch}}
|
||||
|
||||
%description bin
|
||||
This package contains the applications for opm-upscaling
|
||||
|
||||
%{?el5:
|
||||
%package debuginfo
|
||||
Summary: Debug info in opm-upscaling
|
||||
Group: Scientific
|
||||
Requires: %{name} = %{version}
|
||||
Requires: libopm-upscaling1 = %{version}, opm-upscaling-bin = %{version}
|
||||
BuildArch: %{_arch}
|
||||
|
||||
%description debuginfo
|
||||
This package contains the debug symbols for opm-upscaling
|
||||
}
|
||||
|
||||
%prep
|
||||
%setup -q -n %{name}-release-%{version}-%{tag}
|
||||
|
||||
# consider using -DUSE_VERSIONED_DIR=ON if backporting
|
||||
%build
|
||||
cmake28 -DBUILD_SHARED_LIBS=1 -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=%{_prefix} -DCMAKE_INSTALL_DOCDIR=share/doc/%{name}-%{version} -DUSE_RUNPATH=OFF %{?el5:-DCMAKE_CXX_COMPILER=g++44 -DCMAKE_C_COMPILER=gcc44 -DCMAKE_Fortran_COMPILER=gfortran44 -DBOOST_LIBRARYDIR=%{libdir}/boost141 -DBOOST_INCLUDEDIR=/usr/include/boost141}
|
||||
cmake28 -DBUILD_SHARED_LIBS=1 -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=%{_prefix} -DCMAKE_INSTALL_DOCDIR=share/doc/%{name}-%{version} -DUSE_RUNPATH=OFF %{?el5:-DCMAKE_CXX_COMPILER=g++44 -DCMAKE_C_COMPILER=gcc44 -DCMAKE_Fortran_COMPILER=gfortran44 -DBOOST_LIBRARYDIR=%{_libdir}/boost141 -DBOOST_INCLUDEDIR=/usr/include/boost141}
|
||||
make
|
||||
|
||||
%install
|
||||
@ -101,3 +116,8 @@ rm -rf %{buildroot}
|
||||
|
||||
%files bin
|
||||
%{_bindir}/*
|
||||
|
||||
%{?el5:
|
||||
%files debuginfo
|
||||
/usr/lib/debug/%{_libdir}/*.so*.debug
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user