+# TODO: (optional) MPI?
Summary: Field3D - open source library for storing voxel data
Summary(pl.UTF-8): Field3D - mająca otwarte źródła biblioteka do przechowywania danych vokseli
Name: Field3D
-Version: 1.3.2
-Release: 9
+Version: 1.7.3
+Release: 3
License: BSD
Group: Libraries
-#Source0Download: https://sites.google.com/site/field3d/downloads
-Source0: http://github.com/imageworks/Field3D/tarball/v%{version}/%{name}-%{version}.tar.gz
-# Source0-md5: 98f225658977f339a734debe426694b9
-Patch0: %{name}-link.patch
+#Source0Download: https://github.com/imageworks/Field3D/releases
+Source0: https://github.com/imageworks/Field3D/archive/v%{version}/%{name}-%{version}.tar.gz
+# Source0-md5: 536198b1b4840a5b35400ccf05d4431c
URL: http://opensource.imageworks.com/?p=field3d
BuildRequires: cmake >= 2.8
BuildRequires: boost-devel >= 1.34.0
BuildRequires: hdf5-devel >= 1.8
BuildRequires: ilmbase-devel >= 1.0.1
BuildRequires: libstdc++-devel
+BuildRequires: rpmbuild(macros) >= 1.605
Requires: hdf5 >= 1.8
Requires: ilmbase >= 1.0.1
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
Summary: Field3D API documentation
Summary(pl.UTF-8): Dokumentacja API biblioteki Field3D
Group: Documentation
+BuildArch: noarch
%description apidocs
API and internal documentation for Field3D library.
Dokumentacja API biblioteki Field3D.
%prep
-%setup -q -n imageworks-Field3D-94d1bf3
-%patch0 -p1
+%setup -q
%build
# main build system is scons, but there is cmake alternative, which is slightly more usable in rpm building
install -d build
cd build
+export CXXFLAGS="%{rpmcxxflags} %{rpmcppflags} -std=c++14"
%cmake ..
%{__make}
%defattr(644,root,root,755)
%doc CHANGES COPYING README
%attr(755,root,root) %{_bindir}/f3dinfo
-%attr(755,root,root) %{_libdir}/libField3D.so.1.3
+%attr(755,root,root) %{_libdir}/libField3D.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libField3D.so.1.7
%files devel
%defattr(644,root,root,755)