[packages/GLM] - initial revision - package nome in upper case b/c of conflict with existing package

baggins baggins at pld-linux.org
Sun Jul 14 16:37:13 CEST 2013


commit 9352f43c75a59e3a2e82e223b3ca9e9b7f5b4499
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Sun Jul 14 16:36:26 2013 +0200

    - initial revision
    - package nome in upper case b/c of conflict with existing package

 GLM.spec | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 50 insertions(+)
---
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
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/GLM.git/commitdiff/9352f43c75a59e3a2e82e223b3ca9e9b7f5b4499



More information about the pld-cvs-commit mailing list