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 #Source0Download: https://github.com/g-truc/glm/releases
14 Source0: https://github.com/g-truc/glm/releases/download/%{version}/glm-%{version}.7z
15 # Source0-md5: c8342552801ebeb31497288192c4e793
17 URL: https://glm.g-truc.net/
18 BuildRequires: cmake >= 3.2
22 BuildRequires: p7zip-standalone
23 BuildRequires: rpm-build >= 5
25 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28 OpenGL Mathematics (GLM) is a C++ mathematics library for graphics
29 software based on the OpenGL Shading Language (GLSL) specification.
31 GLM is a header only library, there is nothing to build, just include
34 %description -l pl.UTF-8
35 OpenGL Mathematics (GLM) to biblioteka matematyczna C++ dla programów
36 graficznych opartych na specyfikacji OpenGL Shading Language (GLSL).
40 %setup -q -c -T -n glm
51 -DGLM_TEST_ENABLE:BOOL=%{!?with_tests:OFF}%{?with_tests:ON}
59 rm -rf $RPM_BUILD_ROOT
60 install -d $RPM_BUILD_ROOT%{_includedir}
62 cp -a glm $RPM_BUILD_ROOT%{_includedir}
65 rm -rf $RPM_BUILD_ROOT
68 %defattr(644,root,root,755)
69 %doc manual.md readme.md