From: Jan Rękorajski Date: Sun, 14 Jul 2013 14:36:26 +0000 (+0200) Subject: - initial revision X-Git-Tag: auto/th/GLM-0.9.4.4-1~1 X-Git-Url: http://git.pld-linux.org/?p=packages%2FGLM.git;a=commitdiff_plain;h=9352f43c75a59e3a2e82e223b3ca9e9b7f5b4499;ds=sidebyside - initial revision - package nome in upper case b/c of conflict with existing package --- 9352f43c75a59e3a2e82e223b3ca9e9b7f5b4499 diff --git a/GLM.spec b/GLM.spec new file mode 100644 index 0000000..ad0711b --- /dev/null +++ b/GLM.spec @@ -0,0 +1,50 @@ +# +# Conditional build: +%bcond_without tests # build without tests +# +Summary: OpenGL Mathematics (GLM) +Name: GLM +Version: 0.9.4.4 +Release: 1 +License: MIT +Group: Applications +Source0: http://downloads.sourceforge.net/ogl-math/glm-%{version}.7z +# Source0-md5: 1c5a626c025dff9664b08d8f39c7e11b +URL: http://glm.g-truc.net/ +BuildRequires: cmake +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%description +OpenGL Mathematics (GLM) is a C++ mathematics library for graphics +software based on the OpenGL Shading Language (GLSL) specification. + +GLM is a header only library, there is nothing to build, +just include it. + +%prep +%setup -q -n glm-%{version} + +%build +mkdir build +cd build +%cmake \ + ../ \ + -DGLM_TEST_ENABLE:BOOL=%{!?with_tests:OFF}%{?with_tests:ON} + +%{?with_tests:%{__make}} + +%install +rm -rf $RPM_BUILD_ROOT +install -d $RPM_BUILD_ROOT + +cd build +%{__make} install \ + DESTDIR=$RPM_BUILD_ROOT + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(644,root,root,755) +%doc readme.txt doc/glm.pdf +%attr(755,root,root) %{_includedir}/glm