]> git.pld-linux.org Git - packages/GLM.git/commitdiff
- initial revision
authorJan Rękorajski <baggins@pld-linux.org>
Sun, 14 Jul 2013 14:36:26 +0000 (16:36 +0200)
committerJan Rękorajski <baggins@pld-linux.org>
Sun, 14 Jul 2013 14:36:26 +0000 (16:36 +0200)
- package nome in upper case b/c of conflict with existing package

GLM.spec [new file with mode: 0644]

diff --git a/GLM.spec b/GLM.spec
new file mode 100644 (file)
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
This page took 0.076567 seconds and 4 git commands to generate.