#
# Conditional build:
%bcond_without apidocs # do not build and package API docs
-#
+
Summary: Vector and Matrix Math Library for C++
Summary(pl.UTF-8): Vector and Matrix Math Library - biblioteka matematyczna wektorów i macierzy w C++
Name: vmmlib
-Version: 1.8.0
+Version: 1.14.0
Release: 1
License: BSD
Group: Libraries
-# latest is 1.6.2 here
-#Source0: https://github.com/VMML/vmmlib/archive/release-%{version}/%{name}-%{version}.tar.gz
-# use Eyescale version for now
+#Source0Download: https://github.com/Eyescale/vmmlib/releases
Source0: https://github.com/Eyescale/vmmlib/archive/%{version}/%{name}-%{version}.tar.gz
-# Source0-md5: 66fcb200c33a1bc95eb7db1de4933655
-Source1: https://github.com/Eyescale/CMake/archive/139ce7d/Eyescale-CMake-139ce7d.tar.gz
-# Source1-md5: 4a6abcd9e0fc417528a8ca68a97e65eb
+# Source0-md5: f25e57bfc1e4699447963f5dbafd22f2
URL: http://vmml.github.io/vmmlib/
-BuildRequires: blas-devel
+BuildRequires: Eyescale-CMake >= 2018.02
BuildRequires: boost-devel
-BuildRequires: cmake >= 2.8
+BuildRequires: cmake >= 3.1
%{?with_apidocs:BuildRequires: doxygen}
-BuildRequires: lapack-devel
BuildRequires: libstdc++-devel
Requires: boost-devel
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
Summary: vmmlib API documentation
Summary(pl.UTF-8): Dokumentacja API biblioteki vmmlib
Group: Documentation
+BuildArch: noarch
%description apidocs
API documentation for vmmlib library.
Dokumentacja API biblioteki vmmlib.
%prep
-%setup -q -a1
+%setup -q
-%{__mv} CMake-* CMake/common
-%{__rm} .gitexternals
+rmdir CMake/common
+ln -s %{_datadir}/Eyescale-CMake CMake/common
%build
install -d build
cd build
-%cmake .. \
- -DBUILDYARD_DISABLED=ON
+%cmake ..
%{__make}
%if %{with apidocs}
%{__make} -C build install \
DESTDIR=$RPM_BUILD_ROOT
-%{__rm} $RPM_BUILD_ROOT%{_datadir}/vmmlib/{ACKNOWLEDGEMENTS,AUTHORS,LICENSE.txt,README.md}
+%{__rm} $RPM_BUILD_ROOT%{_datadir}/vmmlib/{ACKNOWLEDGEMENTS,LICENSE.txt,README.md}
%{__rm} -r $RPM_BUILD_ROOT%{_datadir}/vmmlib/tests
%clean
%files
%defattr(644,root,root,755)
-%doc ACKNOWLEDGEMENTS AUTHORS CHANGES LICENSE.txt README.md doc/RELNOTES.md
+%doc ACKNOWLEDGEMENTS LICENSE.txt README.md doc/Changelog.md
%{_includedir}/vmmlib
-%{_pkgconfigdir}/vmmlib.pc
%dir %{_datadir}/vmmlib
%{_datadir}/vmmlib/CMake