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