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