Name: exodusii Version: 6.09 Release: 1%{?dist} Summary: Library to store and retrieve transient finite element data License: BSD Url: http://sourceforge.net/projects/exodusii/ #last version of the orinal source, got merge into https://github.com/gsjaardema/seacas # but has different API Source0: http://distfiles.gentoo.org/distfiles/exodus-%{version}.tar.gz Source1: http://prod.sandia.gov/techlib/access-control.cgi/1992/922137.pdf Source2: http://gsjaardema.github.io/seacas/exodusII.pdf Patch1: sovers.diff BuildRequires: tcsh BuildRequires: gcc-gfortran BuildRequires: cmake BuildRequires: netcdf-devel %description EXODUS II is a model developed to store and retrieve data for finite element analyses. It is used for pre-processing (problem definition), post-processing (results visualization), as well as code to code data transfer. An EXODUS II data file is a random access, machine independent, binary file that is written and read via C, C++, or Fortran library routines which comprise the Application Programming Interface (API). %package devel Summary: Development headers and libraries for exodusII Requires: %{name}%{_isa} = %{version}-%{release} Requires: netcdf-devel %description devel EXODUS II is a model developed to store and retrieve data for finite element analyses. It is used for pre-processing (problem definition), post-processing (results visualization), as well as code to code data transfer. An EXODUS II data file is a random access, machine independent, binary file that is written and read via C, C++, or Fortran library routines which comprise the Application Programming Interface (API). This package contains development headers and libraries for exodusII. %package doc Summary: PDF documentation for exodusII BuildArch: noarch %description doc EXODUS II is a model developed to store and retrieve data for finite element analyses. It is used for pre-processing (problem definition), post-processing (results visualization), as well as code to code data transfer. An EXODUS II data file is a random access, machine independent, binary file that is written and read via C, C++, or Fortran library routines which comprise the Application Programming Interface (API). This package contains pdf documentation for exodusII. %prep %setup -n exodus-%{version} -q %patch -P 1 -p1 #avoid over-linking #zlib is actually not a direct dep of exodus, but hdf5 sed -i '/FATAL_ERROR.*ZLib/s/^/#/' exodus/CMakeLists.txt %build cd exodus mkdir %{_target_platform} pushd %{_target_platform} export LDFLAGS="%{__global_ldflags} -Wl,--as-needed" %{cmake} -DBUILD_SHARED=ON -DHDF5HL_LIBRARY="" -DHDF5_LIBRARY="" -DCMAKE_DISABLE_FIND_PACKAGE_ZLIB=ON -DZLIB_LIBRARY="" -DPYTHON=FALSE .. %make_build %install %make_install -C exodus/%{_target_platform} [[ %{_lib} = lib ]] || mv %{buildroot}/%{_prefix}/{lib,%{_lib}} pushd %{buildroot}/%{_prefix}/%{_lib} ln -s libexodus-*.so "%buildroot/%_libdir/libexodus.so" ln -s libexoIIv2for-*.so "%buildroot/%_libdir/libexoIIv2for.so" mkdir -p %{buildroot}/%{_docdir}/%{name} cp -p %{S:1} %{S:2} %{buildroot}/%{_docdir}/%{name} %check make -C exodus/%{_target_platform} check f_check %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files devel %{_includedir}/* %{_libdir}/libexodus.so %{_libdir}/libexoIIv2for.so %files %license exodus/COPYRIGHT %{_libdir}/libexodus-*.so %{_libdir}/libexoIIv2for-*.so %files doc %{_docdir}/%{name} %changelog * Mon Nov 07 2016 Christoph Junghans - 6.09-1 - version bump to 6.09 - devel: fix deps * Mon Oct 03 2016 Christoph Junghans - 6.02-5 - added __global_ldflags to LDFLAGS * Mon Sep 26 2016 Christoph Junghans - 6.02-4 - Fixed another overlinking issue by --as-needed * Fri Sep 09 2016 Christoph Junghans - 6.02-3 - Fixed testsuite - Avoid over-linking - Minor changes from review (bug #1336552) * Sat Sep 03 2016 Christoph Junghans - 6.02-2 - Minor changes from review (bug #1336552) - Added doc package * Thu Sep 01 2016 Christoph Junghans - 6.02-1 - First release.