[packages/glm-devel] new package

jajcus jajcus at pld-linux.org
Tue Feb 23 15:10:56 CET 2016


commit 91cfbb18080f8b7f88dbf6609f78c25f9dde85ef
Author: Jacek Konieczny <j.konieczny at eggsoft.pl>
Date:   Tue Feb 23 15:10:20 2016 +0100

    new package

 glm-devel.spec | 66 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 66 insertions(+)
---
diff --git a/glm-devel.spec b/glm-devel.spec
new file mode 100644
index 0000000..62ff874
--- /dev/null
+++ b/glm-devel.spec
@@ -0,0 +1,66 @@
+# NOTE: there used to be a different 'glm' package,
+#	it has been moved to 'devernay-glm'
+
+# Conditional build:
+%bcond_without	tests		# build without tests
+
+Summary:	OpenGL Mathematics library
+Name:		glm-devel
+Version:	0.9.7.3
+Release:	1
+License:	MIT
+Group:		Development/Libraries
+Source0:	https://github.com/g-truc/glm/releases/download/%{version}/glm-%{version}.7z
+# Source0-md5:	7de0a61696cc25969fef84aa1ba627b8
+URL:		http://glm.g-truc.net/
+%if %{with tests}
+BuildRequires:	cmake
+BuildRequires:	libstdc++-devel
+%endif
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+OpenGL Mathematics (GLM) is a header only C++ mathematics library for
+graphics software based on the OpenGL Shading Language (GLSL)
+specifications.
+
+GLM provides classes and functions designed and implemented with the
+same naming conventions and functionalities than GLSL so that anyone
+who knows GLSL, can use GLM as well in C++.
+
+This project isn't limited to GLSL features. An extension system,
+based on the GLSL extension conventions, provides extended
+capabilities: matrix transformations, quaternions, data packing,
+random numbers, noise, etc...
+
+%prep
+%setup -qn glm
+
+%build
+%if %{with tests}
+install -d build
+cd build
+%{__cmake} \
+	-DGLM_TEST_ENABLE=ON \
+	../
+
+%{__make}
+%{__make} test
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{_includedir}
+
+cp -pR glm $RPM_BUILD_ROOT%{_includedir}/glm
+
+find $RPM_BUILD_ROOT%{_includedir}/glm -name CMakeLists.txt | xargs rm
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc readme.md copying.txt doc
+%{_includedir}/glm
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/glm-devel.git/commitdiff/91cfbb18080f8b7f88dbf6609f78c25f9dde85ef



More information about the pld-cvs-commit mailing list