SHA256
10
0
forked from pool/glm
Files
glm/glm.spec
Atri Bhattacharya 7ad56b8287 - Update to version 1.0.1
* Features:
    + Added C++17 [[nodiscard]] support
  * Improvements:
    + Enables only warnings as errors while building unit tests
    + Added aligned_*vec3 simd support
  * Fixes:
    + Fixed C++ language auto detection build, disable C++98 warnings
      with Clang [gh#g-truc/glm#1235] [gh#g-truc/glm#1231]
    + Fixed GTX_color_space missing <glm/ext/scalar_constants.hpp>
      include [gh#g-truc/glm#1233]
    + Fixed EXT_matrix_transform shear implementation
    + Fixed smoothstep SIMD implementation [gh#g-truc/glm#1222]
- Changes from version 1.0.0
  * Features:
    + Added GLM_EXT_scalar_reciprocal with tests
    + Added GLM_EXT_vector_reciprocal with tests
    + Added glm::iround and glm::uround to GLM_EXT_scalar_common
      and GLM_EXT_vector_common
    + Added GLM_EXT_matrix_integer with tests
    + Added Github Actions
    + Added GLM_FORCE_UNRESTRICTED_FLOAT to prevent static asserts
      when using other scalar types with function expecting floats.
  * Improvements:
    + Added constexpr qualifier for cross product
    + Added constexpr qualifier for dot product
  * Fixes:
    + Fixed incorrect assertion for glm::min and glm::max
    + Fixed quaternion orientation in glm::decompose
    + Fixed singularity in quaternion to euler angle roll conversion
    + Fixed quat glm::pow handling of small magnitude quaternions
    + Fixed glm::fastNormalize build error
    + Fixed glm::isMultiple build error
    + Fixed glm::adjugate calculation
    + Fixed glm::angle discards the sign of result for angles in
      range (2pi-1, 2pi)
    + Removed ban on using glm::string_cast with CUDA host code
- Removed patches
  * glm-0.9.9.8-install.patch, now included upstream
- Added patches
  * glm-1.0.1-fix-install-cmake-files.patch
  * glm-1.0.1-noarch.patch
  * glm-1.0.1-without-werror.patch
- Updated patches
  * glm-0.9.9.8-pkgconfig.patch updated to
    glm-1.0.1-pkgconfig.patch
  * glm-0.9.9.8-fix_tests_big-endian.patch updated to
    glm-1.0.1-fix-tests-big-endian.patch
- Spec file changes
  * Set BuildArch to noarch for devel package as it is a header only
    package
  * Use cmake_build instead of make_jobs

OBS-URL: https://build.opensuse.org/package/show/science/glm?expand=0&rev=16
2025-05-15 17:03:08 +00:00

104 lines
3.4 KiB
RPMSpec

#
# spec file for package glm
#
# Copyright (c) 2025 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: 1.0.1
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-1.0.1-pkgconfig.patch add pkgconfig file -- aloisio@gmx.com, updated by buschmann23@opensuse.org
Patch3: glm-1.0.1-pkgconfig.patch
# PATCH-FIX-UPSTREAM glm-1.0.1-fix-tests-big-endian.patch
Patch4: glm-1.0.1-fix-tests-big-endian.patch
# PATCH-FIX-OPENSUSE glm-1.0.1-without-werror.patch
Patch5: glm-1.0.1-without-werror.patch
# PATCH-FIX-OPENSUSE glm-1.0.1-fix-install-cmake-files.patch
Patch6: glm-1.0.1-fix-install-cmake-files.patch
# PATCH-FIX-OPENSUSE glm-1.0.1-noarch.patch
Patch7: glm-1.0.1-noarch.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
BuildArch: noarch
%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_BUILD_LIBRARY=OFF \
-DGLM_BUILD_TESTS=ON \
-DGLM_BUILD_INSTALL=ON
%cmake_build
%install
%cmake_install
%fdupes -s %{buildroot}
%fdupes -s doc/api
%check
%ctest
%files devel
%{_includedir}/glm
%{_datadir}/cmake/%{name}
%{_datadir}/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