3 %bcond_without apidocs # do not build and package API docs
5 Summary: Vector and Matrix Math Library for C++
6 Summary(pl.UTF-8): Vector and Matrix Math Library - biblioteka matematyczna wektorów i macierzy w C++
12 #Source0Download: https://github.com/Eyescale/vmmlib/releases
13 Source0: https://github.com/Eyescale/vmmlib/archive/%{version}/%{name}-%{version}.tar.gz
14 # Source0-md5: f25e57bfc1e4699447963f5dbafd22f2
15 URL: http://vmml.github.io/vmmlib/
16 BuildRequires: Eyescale-CMake >= 2018.02
17 BuildRequires: boost-devel
18 BuildRequires: cmake >= 3.1
19 %{?with_apidocs:BuildRequires: doxygen}
20 BuildRequires: libstdc++-devel
22 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25 A templatized C++ vector and matrix math library.
27 %description -l pl.UTF-8
28 Biblioteka matematyczna wektorów i macierzy oparta na szablonach C++.
31 Summary: vmmlib API documentation
32 Summary(pl.UTF-8): Dokumentacja API biblioteki vmmlib
37 API documentation for vmmlib library.
39 %description apidocs -l pl.UTF-8
40 Dokumentacja API biblioteki vmmlib.
46 ln -s %{_datadir}/Eyescale-CMake CMake/common
59 rm -rf $RPM_BUILD_ROOT
61 %{__make} -C build install \
62 DESTDIR=$RPM_BUILD_ROOT
64 %{__rm} $RPM_BUILD_ROOT%{_datadir}/vmmlib/{ACKNOWLEDGEMENTS,LICENSE.txt,README.md}
65 %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/vmmlib/tests
68 rm -rf $RPM_BUILD_ROOT
71 %defattr(644,root,root,755)
72 %doc ACKNOWLEDGEMENTS LICENSE.txt README.md doc/Changelog.md
74 %dir %{_datadir}/vmmlib
75 %{_datadir}/vmmlib/CMake
79 %defattr(644,root,root,755)