]> git.pld-linux.org Git - packages/GLM.git/blame - GLM.spec
- fix tests on x32
[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
aeef72e1 9Version: 0.9.9.6
9352f43c
JR
10Release: 1
11License: MIT
516635ef 12Group: Development/Libraries
7cf3de71
JB
13#Source0Download: https://github.com/g-truc/glm/releases
14Source0: https://github.com/g-truc/glm/releases/download/%{version}/glm-%{version}.7z
aeef72e1 15# Source0-md5: 546245878ba4fc64f9af03c1c88b9ec9
72741b95 16Patch0: %{name}-opt.patch
395fffb0 17Patch1: x32.patch
7cf3de71 18URL: https://glm.g-truc.net/
1369b3b2 19BuildRequires: cmake >= 3.2
516635ef
JB
20%if %{with p7zip}
21BuildRequires: p7zip
22%else
a760c65a 23BuildRequires: p7zip-standalone
516635ef
JB
24BuildRequires: rpm-build >= 5
25%endif
9352f43c
JR
26BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27
28%description
29OpenGL Mathematics (GLM) is a C++ mathematics library for graphics
30software based on the OpenGL Shading Language (GLSL) specification.
31
eb3f4301
AM
32GLM is a header only library, there is nothing to build, just include
33it.
9352f43c 34
516635ef
JB
35%description -l pl.UTF-8
36OpenGL Mathematics (GLM) to biblioteka matematyczna C++ dla programów
37graficznych opartych na specyfikacji OpenGL Shading Language (GLSL).
38
9352f43c 39%prep
516635ef 40%if %{with p7zip}
4e88ad7b 41%setup -q -c -T -n glm
516635ef
JB
427z x %{SOURCE0} -o..
43%else
4e88ad7b 44%setup -q -n glm
516635ef 45%endif
72741b95 46%patch0 -p1
395fffb0 47%patch1 -p1
9352f43c
JR
48
49%build
50mkdir build
51cd build
516635ef 52%cmake .. \
9352f43c
JR
53 -DGLM_TEST_ENABLE:BOOL=%{!?with_tests:OFF}%{?with_tests:ON}
54
aeef72e1
BS
55%if %{with tests}
56%{__make}
57%{__make} test
58%endif
9352f43c
JR
59
60%install
61rm -rf $RPM_BUILD_ROOT
aeef72e1 62install -d $RPM_BUILD_ROOT%{_includedir}
9352f43c 63
aeef72e1 64cp -a glm $RPM_BUILD_ROOT%{_includedir}
9352f43c
JR
65
66%clean
67rm -rf $RPM_BUILD_ROOT
68
69%files
70%defattr(644,root,root,755)
7cf3de71 71%doc manual.md readme.md
aeef72e1 72%{_includedir}/glm
This page took 0.091109 seconds and 4 git commands to generate.