3 %bcond_without tests # build without tests
4 %bcond_with p7zip # plain p7zip (compatible with both rpm4/rpm5)
6 Summary: OpenGL Mathematics (GLM) - C++ mathematics library for GLSL
7 Summary(pl.UTF-8): OpenGL Mathematics (GLM) - biblioteka matematyczna C++ dla GLSL
12 Group: Development/Libraries
13 Source0: http://downloads.sourceforge.net/ogl-math/glm-%{version}.7z
14 # Source0-md5: 1c5a626c025dff9664b08d8f39c7e11b
15 URL: http://glm.g-truc.net/
20 BuildRequires: p7zip-standalone
21 BuildRequires: rpm-build >= 5
23 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26 OpenGL Mathematics (GLM) is a C++ mathematics library for graphics
27 software based on the OpenGL Shading Language (GLSL) specification.
29 GLM is a header only library, there is nothing to build,
32 %description -l pl.UTF-8
33 OpenGL Mathematics (GLM) to biblioteka matematyczna C++ dla programów
34 graficznych opartych na specyfikacji OpenGL Shading Language (GLSL).
38 %setup -q -c -T -n glm-%{version}
41 %setup -q -n glm-%{version}
48 -DGLM_TEST_ENABLE:BOOL=%{!?with_tests:OFF}%{?with_tests:ON}
50 %{?with_tests:%{__make}}
53 rm -rf $RPM_BUILD_ROOT
54 #install -d $RPM_BUILD_ROOT
56 %{__make} -C build install \
57 DESTDIR=$RPM_BUILD_ROOT
60 rm -rf $RPM_BUILD_ROOT
63 %defattr(644,root,root,755)
64 %doc readme.txt doc/glm.pdf
65 %attr(755,root,root) %{_includedir}/glm