make packaging compatible with EL5

This commit is contained in:
Arne Morten Kvarving
2013-10-30 17:26:33 +01:00
parent b683a8acb1
commit 62d6ab18ac

View File

@@ -14,7 +14,7 @@ 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
BuildRequires: git suitesparse-devel cmake28 doxygen bc
BuildRequires: tinyxml-devel dune-istl-devel
BuildRequires: tinyxml-devel dune-istl-devel ert.ecl-devel
%{?el5:BuildRequires: gcc44 gcc44-gfortran gcc44-c++}
%{!?el5:BuildRequires: gcc gcc-gfortran gcc-c++}
%{?el5:BuildRequires: boost141-devel}
@@ -27,7 +27,7 @@ The Open Porous Media (OPM) initiative provides a set of open-source tools cente
%package devel
Summary: Development and header files for opm-material
Group: Development/Libraries/C and C++
Requires: %{name} = %{version}
%{?el5:BuildArch: %{_arch}}
%description devel
This package contains the development and header files for opm-material
@@ -45,7 +45,7 @@ This package contains the documentation files for opm-material
# 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 -DBOOST_LIBRARYDIR=%{_libdir}/boost141 -DBOOST_INCLUDEDIR=/usr/include/boost141}
make
%install