2013-07-22 12:59:26 +02:00
|
|
|
#
|
|
|
|
# spec file for package glm
|
|
|
|
#
|
2019-03-27 16:13:56 +01:00
|
|
|
# Copyright (c) 2019 SUSE LINUX 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.
|
|
|
|
|
2019-04-17 03:24:41 +02:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
2013-07-22 12:59:26 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: glm
|
2019-04-17 03:24:41 +02:00
|
|
|
Version: 0.9.9.5
|
2013-07-22 12:59:26 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: Header only C++ mathematics library for graphics
|
2019-03-29 08:33:00 +01:00
|
|
|
License: MIT AND GPL-2.0-only
|
2013-07-22 12:59:26 +02:00
|
|
|
Group: Development/Libraries/C and C++
|
2019-04-25 09:42:14 +02:00
|
|
|
Url: https://glm.g-truc.net/
|
2019-03-27 16:13:56 +01:00
|
|
|
#Git-Clone: https://github.com/g-truc/glm.git
|
|
|
|
Source: https://github.com/g-truc/%{name}/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
2016-03-29 09:52:58 +02:00
|
|
|
# PATCH-FIX-OPENSUSE glm-cmake-config.patch -- Fix cmake config location
|
|
|
|
Patch1: glm-cmake-config.patch
|
2013-07-22 12:59:26 +02:00
|
|
|
BuildRequires: cmake
|
2014-05-16 18:08:18 +02:00
|
|
|
BuildRequires: fdupes
|
2013-07-22 12:59:26 +02:00
|
|
|
BuildRequires: gcc-c++
|
2019-03-27 16:13:56 +01:00
|
|
|
BuildRequires: pkgconfig
|
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++
|
2016-03-29 09:52:58 +02:00
|
|
|
Requires: cmake
|
2013-07-22 12:59:26 +02:00
|
|
|
|
|
|
|
%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
|
2016-03-29 09:52:58 +02:00
|
|
|
BuildArch: noarch
|
2013-07-22 12:59:26 +02:00
|
|
|
|
|
|
|
%description doc
|
|
|
|
This package provides the documentation for GLM library.
|
|
|
|
|
|
|
|
%prep
|
2019-03-27 16:13:56 +01:00
|
|
|
%setup -q
|
|
|
|
%patch1 -p1
|
2013-07-22 12:59:26 +02:00
|
|
|
|
|
|
|
%build
|
2014-05-16 18:08:18 +02:00
|
|
|
%cmake \
|
2016-07-01 09:55:40 +02:00
|
|
|
-DCMAKE_CXX_FLAGS="%{optflags} -fPIC -fno-strict-aliasing" \
|
|
|
|
-DGLM_TEST_ENABLE=ON
|
2019-03-27 16:13:56 +01:00
|
|
|
%make_jobs
|
2013-07-22 12:59:26 +02:00
|
|
|
|
|
|
|
%install
|
2014-05-16 18:08:18 +02:00
|
|
|
%cmake_install
|
|
|
|
%fdupes -s %{buildroot}
|
2019-03-27 16:13:56 +01:00
|
|
|
%fdupes -s doc/api
|
2013-07-22 12:59:26 +02:00
|
|
|
|
|
|
|
%check
|
2016-03-29 09:52:58 +02:00
|
|
|
%ctest
|
2013-07-22 12:59:26 +02:00
|
|
|
|
|
|
|
%files devel
|
2016-03-29 09:52:58 +02:00
|
|
|
%{_includedir}/glm/
|
|
|
|
%{_libdir}/cmake/%{name}/
|
2019-03-27 16:13:56 +01:00
|
|
|
%{_libdir}/pkgconfig/%{name}.pc
|
2013-07-22 12:59:26 +02:00
|
|
|
|
|
|
|
%files doc
|
2019-03-27 16:13:56 +01:00
|
|
|
# See https://github.com/g-truc/glm/blob/master/manual.md#-licenses for license details
|
|
|
|
%license readme.md
|
2013-07-22 12:59:26 +02:00
|
|
|
%doc doc/api
|
2019-03-27 16:13:56 +01:00
|
|
|
%doc manual.md readme.md
|
2013-07-22 12:59:26 +02:00
|
|
|
|
|
|
|
%changelog
|