2013-07-22 12:59:26 +02:00
|
|
|
#
|
|
|
|
# spec file for package glm
|
|
|
|
#
|
2014-05-16 18:08:18 +02:00
|
|
|
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2013-07-22 12:59:26 +02:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: glm
|
2014-05-16 18:08:18 +02:00
|
|
|
Version: 0.9.5.3
|
2013-07-22 12:59:26 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: Header only C++ mathematics library for graphics
|
2014-05-16 18:08:18 +02:00
|
|
|
License: MIT
|
2013-07-22 12:59:26 +02:00
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Url: http://glm.g-truc.net/
|
2014-05-16 18:08:18 +02:00
|
|
|
Source0: http://downloads.sourceforge.net/ogl-math/%{name}-%{version}.zip
|
|
|
|
Patch0: glm-0.9.5.3-no_gtc_packing_test.patch
|
2014-09-28 19:55:28 +02:00
|
|
|
Patch1: aliasing.patch
|
2013-07-22 12:59:26 +02:00
|
|
|
BuildRequires: cmake
|
2013-08-06 06:55:50 +02:00
|
|
|
BuildRequires: dos2unix
|
2014-05-16 18:08:18 +02:00
|
|
|
BuildRequires: fdupes
|
2013-07-22 12:59:26 +02:00
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: unzip
|
2014-05-16 18:08:18 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
BuildArch: noarch
|
2013-07-22 12:59:26 +02:00
|
|
|
|
|
|
|
%description
|
|
|
|
OpenGL Mathematics (GLM) is a header only C++ mathematics library for graphics
|
|
|
|
software based on the OpenGL Shading Language (GLSL) specification.
|
|
|
|
|
|
|
|
GLM provides classes and functions designed and implemented with the same naming
|
|
|
|
conventions and functionalities than GLSL so that when a programmer knows GLSL,
|
|
|
|
he knows GLM as well which makes it really easy to use.
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Header only C++ mathematics library for graphics
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
OpenGL Mathematics (GLM) is a header only C++ mathematics library for graphics
|
|
|
|
software based on the OpenGL Shading Language (GLSL) specification.
|
|
|
|
|
|
|
|
GLM provides classes and functions designed and implemented with the same naming
|
|
|
|
conventions and functionalities than GLSL so that when a programmer knows GLSL,
|
|
|
|
he knows GLM as well which makes it really easy to use.
|
|
|
|
|
|
|
|
%package doc
|
|
|
|
Summary: Documentation for GLM library
|
|
|
|
Group: Documentation/Other
|
|
|
|
|
|
|
|
%description doc
|
|
|
|
This package provides the documentation for GLM library.
|
|
|
|
|
|
|
|
%prep
|
2014-05-16 18:08:18 +02:00
|
|
|
%setup -q -n %{name}
|
2013-07-22 12:59:26 +02:00
|
|
|
# Fix wrong-file-end-of-line-encoding
|
2014-05-16 18:08:18 +02:00
|
|
|
find ./ -type f -print0 |xargs -0 dos2unix -q
|
2013-08-06 06:55:50 +02:00
|
|
|
%patch0 -p1
|
2014-09-28 19:55:28 +02:00
|
|
|
%patch1 -p1
|
2013-07-22 12:59:26 +02:00
|
|
|
|
|
|
|
%build
|
2014-05-16 18:08:18 +02:00
|
|
|
%cmake \
|
2014-09-28 19:55:28 +02:00
|
|
|
-DCMAKE_CXX_FLAGS="$RPM_OPT_FLAGS" \
|
2014-05-16 18:08:18 +02:00
|
|
|
-DGLM_TEST_ENABLE=ON
|
2013-07-22 12:59:26 +02:00
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
%install
|
2014-05-16 18:08:18 +02:00
|
|
|
%cmake_install
|
2013-07-22 12:59:26 +02:00
|
|
|
install -D -m 644 util/FindGLM.cmake %{buildroot}%{_datadir}/cmake/Modules/FindGLM.cmake
|
2014-05-16 18:08:18 +02:00
|
|
|
%fdupes -s %{buildroot}
|
2013-07-22 12:59:26 +02:00
|
|
|
|
|
|
|
%check
|
|
|
|
cd build
|
2014-05-16 18:08:18 +02:00
|
|
|
ctest %{?_smp_mflags} --output-on-failure
|
2013-07-22 12:59:26 +02:00
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%{_includedir}/glm
|
|
|
|
%{_datadir}/cmake/Modules/FindGLM.cmake
|
|
|
|
%doc copying.txt
|
|
|
|
|
|
|
|
%files doc
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc doc/api
|
|
|
|
%doc doc/glm.pdf
|
|
|
|
%doc readme.txt
|
|
|
|
|
|
|
|
%changelog
|