3 %bcond_without tests # build without tests
5 Summary: OpenGL Mathematics (GLM)
11 Source0: http://downloads.sourceforge.net/ogl-math/glm-%{version}.7z
12 # Source0-md5: 1c5a626c025dff9664b08d8f39c7e11b
13 URL: http://glm.g-truc.net/
15 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18 OpenGL Mathematics (GLM) is a C++ mathematics library for graphics
19 software based on the OpenGL Shading Language (GLSL) specification.
21 GLM is a header only library, there is nothing to build,
25 %setup -q -n glm-%{version}
32 -DGLM_TEST_ENABLE:BOOL=%{!?with_tests:OFF}%{?with_tests:ON}
34 %{?with_tests:%{__make}}
37 rm -rf $RPM_BUILD_ROOT
38 install -d $RPM_BUILD_ROOT
42 DESTDIR=$RPM_BUILD_ROOT
45 rm -rf $RPM_BUILD_ROOT
48 %defattr(644,root,root,755)
49 %doc readme.txt doc/glm.pdf
50 %attr(755,root,root) %{_includedir}/glm