]> git.pld-linux.org Git - packages/GLM.git/blame - GLM.spec
- updated to 0.9.6.3
[packages/GLM.git] / GLM.spec
CommitLineData
9352f43c
JR
1#
2# Conditional build:
3%bcond_without tests # build without tests
516635ef 4%bcond_with p7zip # plain p7zip (compatible with both rpm4/rpm5)
9352f43c 5#
516635ef
JB
6Summary: OpenGL Mathematics (GLM) - C++ mathematics library for GLSL
7Summary(pl.UTF-8): OpenGL Mathematics (GLM) - biblioteka matematyczna C++ dla GLSL
9352f43c 8Name: GLM
72741b95 9Version: 0.9.6.3
9352f43c
JR
10Release: 1
11License: MIT
516635ef 12Group: Development/Libraries
9352f43c 13Source0: http://downloads.sourceforge.net/ogl-math/glm-%{version}.7z
72741b95
JB
14# Source0-md5: 044224370047034c3d9340550e0ed52a
15Patch0: %{name}-opt.patch
9352f43c
JR
16URL: http://glm.g-truc.net/
17BuildRequires: cmake
516635ef
JB
18%if %{with p7zip}
19BuildRequires: p7zip
20%else
a760c65a 21BuildRequires: p7zip-standalone
516635ef
JB
22BuildRequires: rpm-build >= 5
23%endif
9352f43c
JR
24BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25
26%description
27OpenGL Mathematics (GLM) is a C++ mathematics library for graphics
28software based on the OpenGL Shading Language (GLSL) specification.
29
eb3f4301
AM
30GLM is a header only library, there is nothing to build, just include
31it.
9352f43c 32
516635ef
JB
33%description -l pl.UTF-8
34OpenGL Mathematics (GLM) to biblioteka matematyczna C++ dla programów
35graficznych opartych na specyfikacji OpenGL Shading Language (GLSL).
36
9352f43c 37%prep
516635ef 38%if %{with p7zip}
4e88ad7b 39%setup -q -c -T -n glm
516635ef
JB
407z x %{SOURCE0} -o..
41%else
4e88ad7b 42%setup -q -n glm
516635ef 43%endif
72741b95 44%patch0 -p1
9352f43c
JR
45
46%build
47mkdir build
48cd build
516635ef 49%cmake .. \
9352f43c
JR
50 -DGLM_TEST_ENABLE:BOOL=%{!?with_tests:OFF}%{?with_tests:ON}
51
52%{?with_tests:%{__make}}
53
54%install
55rm -rf $RPM_BUILD_ROOT
9352f43c 56
516635ef 57%{__make} -C build install \
9352f43c
JR
58 DESTDIR=$RPM_BUILD_ROOT
59
60%clean
61rm -rf $RPM_BUILD_ROOT
62
63%files
64%defattr(644,root,root,755)
65%doc readme.txt doc/glm.pdf
66%attr(755,root,root) %{_includedir}/glm
eb3f4301 67%{_libdir}/cmake/FindGLM.cmake
This page took 0.034402 seconds and 4 git commands to generate.