]> git.pld-linux.org Git - packages/GLM.git/blame - GLM.spec
- BR 7zip
[packages/GLM.git] / GLM.spec
CommitLineData
9352f43c
JR
1#
2# Conditional build:
3%bcond_without tests # build without tests
4#
5Summary: OpenGL Mathematics (GLM)
6Name: GLM
7Version: 0.9.4.4
8Release: 1
9License: MIT
10Group: Applications
11Source0: http://downloads.sourceforge.net/ogl-math/glm-%{version}.7z
12# Source0-md5: 1c5a626c025dff9664b08d8f39c7e11b
13URL: http://glm.g-truc.net/
14BuildRequires: cmake
a760c65a 15BuildRequires: p7zip-standalone
9352f43c
JR
16BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17
18%description
19OpenGL Mathematics (GLM) is a C++ mathematics library for graphics
20software based on the OpenGL Shading Language (GLSL) specification.
21
22GLM is a header only library, there is nothing to build,
23just include it.
24
25%prep
26%setup -q -n glm-%{version}
27
28%build
29mkdir build
30cd build
31%cmake \
32 ../ \
33 -DGLM_TEST_ENABLE:BOOL=%{!?with_tests:OFF}%{?with_tests:ON}
34
35%{?with_tests:%{__make}}
36
37%install
38rm -rf $RPM_BUILD_ROOT
39install -d $RPM_BUILD_ROOT
40
41cd build
42%{__make} install \
43 DESTDIR=$RPM_BUILD_ROOT
44
45%clean
46rm -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
This page took 0.073558 seconds and 4 git commands to generate.