]>
Commit | Line | Data |
---|---|---|
9352f43c JR |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without tests # build without tests | |
4 | # | |
5 | Summary: OpenGL Mathematics (GLM) | |
6 | Name: GLM | |
7 | Version: 0.9.4.4 | |
8 | Release: 1 | |
9 | License: MIT | |
10 | Group: Applications | |
11 | Source0: http://downloads.sourceforge.net/ogl-math/glm-%{version}.7z | |
12 | # Source0-md5: 1c5a626c025dff9664b08d8f39c7e11b | |
13 | URL: http://glm.g-truc.net/ | |
14 | BuildRequires: cmake | |
a760c65a | 15 | BuildRequires: p7zip-standalone |
9352f43c JR |
16 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
17 | ||
18 | %description | |
19 | OpenGL Mathematics (GLM) is a C++ mathematics library for graphics | |
20 | software based on the OpenGL Shading Language (GLSL) specification. | |
21 | ||
22 | GLM is a header only library, there is nothing to build, | |
23 | just include it. | |
24 | ||
25 | %prep | |
26 | %setup -q -n glm-%{version} | |
27 | ||
28 | %build | |
29 | mkdir build | |
30 | cd build | |
31 | %cmake \ | |
32 | ../ \ | |
33 | -DGLM_TEST_ENABLE:BOOL=%{!?with_tests:OFF}%{?with_tests:ON} | |
34 | ||
35 | %{?with_tests:%{__make}} | |
36 | ||
37 | %install | |
38 | rm -rf $RPM_BUILD_ROOT | |
39 | install -d $RPM_BUILD_ROOT | |
40 | ||
41 | cd build | |
42 | %{__make} install \ | |
43 | DESTDIR=$RPM_BUILD_ROOT | |
44 | ||
45 | %clean | |
46 | rm -rf $RPM_BUILD_ROOT | |
47 | ||
48 | %files | |
49 | %defattr(644,root,root,755) | |
50 | %doc readme.txt doc/glm.pdf | |
51 | %attr(755,root,root) %{_includedir}/glm |