97 lines
3.1 KiB
RPMSpec
97 lines
3.1 KiB
RPMSpec
#
|
|
# spec file for package glm
|
|
#
|
|
# Copyright (c) 2022 SUSE LLC
|
|
#
|
|
# 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 https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
Name: glm
|
|
Version: 0.9.9.8
|
|
Release: 0
|
|
Summary: Header only C++ mathematics library for graphics
|
|
License: GPL-2.0-only AND MIT
|
|
Group: Development/Libraries/C and C++
|
|
URL: https://glm.g-truc.net/
|
|
#Git-Clone: https://github.com/g-truc/glm.git
|
|
Source: https://github.com/g-truc/%{name}/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
|
# PATCH-FIX-OPENSUSE glm-0.9.9.8-install.patch
|
|
Patch2: glm-0.9.9.8-install.patch
|
|
# PATCH-FIX-OPENSUSE glm-0.9.9.8-pkgconfig.patch add pkgconfig file -- aloisio@gmx.com
|
|
Patch3: glm-0.9.9.8-pkgconfig.patch
|
|
# PATCH-FIX-UPSTREAM glm-0.9.9.8-fix_tests_big-endian.patch
|
|
Patch4: glm-0.9.9.8-fix_tests_big-endian.patch
|
|
BuildRequires: cmake
|
|
BuildRequires: fdupes
|
|
BuildRequires: gcc-c++
|
|
BuildRequires: pkgconfig
|
|
|
|
%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++
|
|
Requires: cmake
|
|
|
|
%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
|
|
BuildArch: noarch
|
|
|
|
%description doc
|
|
This package provides the documentation for GLM library.
|
|
|
|
%prep
|
|
%autosetup -p1
|
|
|
|
%build
|
|
%cmake \
|
|
-DCMAKE_CXX_FLAGS="%{optflags} -fPIC -fno-strict-aliasing" \
|
|
-DGLM_TEST_ENABLE=ON
|
|
%make_jobs
|
|
|
|
%install
|
|
%cmake_install
|
|
%fdupes -s %{buildroot}
|
|
%fdupes -s doc/api
|
|
|
|
%check
|
|
%ctest
|
|
|
|
%files devel
|
|
%{_includedir}/glm
|
|
%{_libdir}/cmake/%{name}
|
|
%{_libdir}/pkgconfig/%{name}.pc
|
|
|
|
%files doc
|
|
# See https://github.com/g-truc/glm/blob/master/manual.md#-licenses for license details
|
|
%license readme.md
|
|
%doc doc/api
|
|
%doc manual.md readme.md
|
|
|
|
%changelog
|