2013-02-21 18:57:55 +01:00
|
|
|
#
|
|
|
|
|
# spec file for package opm-core
|
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
Name: opm-core
|
2013-10-22 12:32:42 +02:00
|
|
|
Version: 2013.10
|
2013-02-21 18:57:55 +01:00
|
|
|
Release: 0
|
|
|
|
|
Summary: Open Porous Media - core library
|
|
|
|
|
License: GPL-3.0
|
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
|
Url: http://www.opm-project.org/
|
|
|
|
|
Source0: %{name}-%{version}.tar.gz
|
|
|
|
|
BuildRequires: blas-devel gcc-c++ gcc-gfortran lapack-devel dune-common-devel
|
|
|
|
|
BuildRequires: boost-devel git suitesparse-devel cmake28 doxygen bc
|
|
|
|
|
BuildRequires: tinyxml-devel dune-istl-devel
|
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
Requires: libopm-core1 = %{version}
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
The Open Porous Media (OPM) initiative provides a set of open-source tools centered around the simulation of flow and transport of fluids in porous media. The goal of the initiative is to establish a sustainable environment for the development of an efficient and well-maintained software suite.
|
|
|
|
|
|
|
|
|
|
%package -n libopm-core1
|
|
|
|
|
Summary: Open Porous Media - core library
|
|
|
|
|
Group: System/Libraries
|
|
|
|
|
|
|
|
|
|
%description -n libopm-core1
|
|
|
|
|
The Open Porous Media (OPM) initiative provides a set of open-source tools centered around the simulation of flow and transport of fluids in porous media. The goal of the initiative is to establish a sustainable environment for the development of an efficient and well-maintained software suite.
|
|
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
|
Summary: Development and header files for opm-core
|
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
|
Requires: %{name} = %{version}
|
|
|
|
|
Requires: blas-devel
|
|
|
|
|
Requires: lapack-devel
|
|
|
|
|
Requires: suitesparse-devel
|
|
|
|
|
Requires: libopm-core1 = %{version}
|
|
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
|
This package contains the development and header files for opm-core
|
|
|
|
|
|
|
|
|
|
%package doc
|
|
|
|
|
Summary: Documentation files for opm-core
|
|
|
|
|
Group: Documentation
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
%description doc
|
|
|
|
|
This package contains the documentation files for opm-core
|
|
|
|
|
|
2013-04-02 11:46:26 +02:00
|
|
|
%package bin
|
|
|
|
|
Summary: Applications in opm-core
|
|
|
|
|
Group: Scientific
|
|
|
|
|
Requires: %{name} = %{version}
|
|
|
|
|
Requires: libopm-core1 = %{version}
|
|
|
|
|
|
|
|
|
|
%description bin
|
|
|
|
|
This package contains the applications for opm-core
|
|
|
|
|
|
2013-02-21 18:57:55 +01:00
|
|
|
%prep
|
|
|
|
|
%setup -q
|
|
|
|
|
|
2013-08-23 22:46:12 +02:00
|
|
|
# consider using -DUSE_VERSIONED_DIR=ON if backporting
|
2013-02-21 18:57:55 +01:00
|
|
|
%build
|
2013-08-01 14:32:59 +02:00
|
|
|
cmake28 -DBUILD_SHARED_LIBS=1 -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=%{_prefix} -DCMAKE_INSTALL_DOCDIR=share/doc/%{name}-%{version} -DWHOLE_PROG_OPTIM=ON -DUSE_RUNPATH=OFF
|
2013-02-21 18:57:55 +01:00
|
|
|
make
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
make install DESTDIR=${RPM_BUILD_ROOT}
|
|
|
|
|
make install-html DESTDIR=${RPM_BUILD_ROOT}
|
|
|
|
|
|
|
|
|
|
%clean
|
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
|
|
|
|
|
|
%post -n libopm-core1 -p /sbin/ldconfig
|
|
|
|
|
|
|
|
|
|
%postun -n libopm-core1 -p /sbin/ldconfig
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%doc COPYING README
|
|
|
|
|
|
|
|
|
|
%files doc
|
|
|
|
|
%{_docdir}/*
|
|
|
|
|
|
|
|
|
|
%files -n libopm-core1
|
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
|
%{_libdir}/*.so.*
|
|
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
|
%{_libdir}/*.so
|
|
|
|
|
%{_libdir}/dunecontrol/*
|
|
|
|
|
%{_libdir}/pkgconfig/*
|
|
|
|
|
%{_includedir}/*
|
|
|
|
|
%{_datadir}/cmake/*
|
2013-04-02 11:46:26 +02:00
|
|
|
|
|
|
|
|
%files bin
|
|
|
|
|
%{_bindir}/*
|