From 9352f43c75a59e3a2e82e223b3ca9e9b7f5b4499 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20R=C4=99korajski?= Date: Sun, 14 Jul 2013 16:36:26 +0200 Subject: [PATCH] - initial revision - package nome in upper case b/c of conflict with existing package --- GLM.spec | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 GLM.spec 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 -- 2.43.0