mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-11-28 20:13:49 -06:00
Merge pull request #365 from akva2/update_redhat_packaging
update redhat packaging
This commit is contained in:
commit
1b7b786cba
@ -13,12 +13,11 @@ 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
|
||||
BuildRequires: git suitesparse-devel cmake28 doxygen bc
|
||||
BuildRequires: git suitesparse-devel cmake28 doxygen bc boost148-devel
|
||||
BuildRequires: opm-parser-devel opm-core-devel dune-cornerpoint-devel
|
||||
BuildRequires: tinyxml-devel dune-istl-devel eigen3-devel ert.ecl-devel
|
||||
%{?el5:BuildRequires: gcc44 gcc44-c++}
|
||||
%{!?el5:BuildRequires: gcc gcc-c++}
|
||||
%{?el5:BuildRequires: boost141-devel}
|
||||
%{!?el5:BuildRequires: boost-devel}
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
Requires: libopm-autodiff1 = %{version}
|
||||
|
||||
@ -59,22 +58,11 @@ Requires: libopm-autodiff1 = %{version}
|
||||
%description bin
|
||||
This package contains the applications for opm-autodiff
|
||||
|
||||
%{?el5:
|
||||
%package debuginfo
|
||||
Summary: Debug info in opm-autodiff
|
||||
Group: Scientific
|
||||
Requires: libopm-autodiff1 = %{version}, opm-autodiff-bin = %{version}
|
||||
BuildArch: %{_arch}
|
||||
|
||||
%description debuginfo
|
||||
This package contains the debug symbols for opm-autodiff
|
||||
}
|
||||
|
||||
%prep
|
||||
%setup -q -n %{name}-release-%{version}-%{tag}
|
||||
|
||||
%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 -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}/boost148 -DBOOST_INCLUDEDIR=/usr/include/boost148
|
||||
make
|
||||
|
||||
%install
|
||||
@ -105,8 +93,3 @@ rm -rf %{buildroot}
|
||||
|
||||
%files bin
|
||||
%{_bindir}/*
|
||||
|
||||
%{?el5:
|
||||
%files debuginfo
|
||||
/usr/lib/debug/%{_libdir}/*.so*.debug
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user