glm/glm.spec

97 lines
3.1 KiB
RPMSpec
Raw Normal View History

#
# 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.
Accepting request 900879 from home:alois:branches:science - Update to version 0.9.9.8 Features: * Added GLM_EXT_vector_intX* and GLM_EXT_vector_uintX* extensions * Added GLM_EXT_matrix_intX* and GLM_EXT_matrix_uintX* extensions Improvements: * Added clamp, repeat, mirrorClamp and mirrorRepeat function to GLM_EXT_scalar_commond and GLM_EXT_vector_commond extensions with tests Fixes: * Fixed unnecessary warnings from matrix_projection.inl * Fixed quaternion slerp overload which interpolates with extra spins * Fixed for glm::length using arch64 * Fixed singularity check for quatLookAt version 0.9.9.7 Improvements: * Improved Neon support with more functions optimized * Added CMake GLM interface * Added fma implementation based on std::fma * Added missing quat constexpr * Added GLM_FORCE_QUAT_DATA_WXYZ to store quat data as w,x,y,z instead of x,y,z,w Fixes: * Fixed equal ULP variation when using negative sign * Fixed for intersection ray/plane and added related tests * Fixed ARM 64bit detection * Fixed GLM_EXT_matrix_clip_space warnings * Fixed Wimplicit-int-float-conversion warnings with clang 10+ * Fixed EXT_matrix_clip_space perspectiveFov version 0.9.9.6 Features: * Added Neon support to glm * Added SYCL support * Added EXT_scalar_integer extension with power of two and multiple scalar functions * Added EXT_vector_integer extension with power of two and multiple vector functions Improvements: * Added missing genType check for bitCount and bitfieldReverse Fixes: * Fixed for g++6 where -std=c++1z sets __cplusplus to 201500 instead of 201402 * Fixed hash hashes qua instead of tquat * Fixed .natvis as structs renamed * Fixed ldexp and frexp declaration * Fixed missing const to quaternion conversion operators * Fixed EXT_scalar_ulp and EXT_vector_ulp API coding style * Fixed quaternion componant order: w, {x, y, z} * Fixed GLM_HAS_CXX11_STL broken on Clang with Linux * Fixed Clang or GCC build due to wrong GLM_HAS_IF_CONSTEXPR definition * Fixed CUDA 9 build - Drop glm-cmake-config.patch (no longer applies) - Add glm-0.9.9.8-install.patch (courtesy of Fedora), glm-0.9.9.8-pkgconfig.patch and glm-0.9.9.8-fix_tests_big-endian.patch OBS-URL: https://build.opensuse.org/request/show/900879 OBS-URL: https://build.opensuse.org/package/show/science/glm?expand=0&rev=11
2021-06-19 14:45:12 +00:00
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: glm
Accepting request 900879 from home:alois:branches:science - Update to version 0.9.9.8 Features: * Added GLM_EXT_vector_intX* and GLM_EXT_vector_uintX* extensions * Added GLM_EXT_matrix_intX* and GLM_EXT_matrix_uintX* extensions Improvements: * Added clamp, repeat, mirrorClamp and mirrorRepeat function to GLM_EXT_scalar_commond and GLM_EXT_vector_commond extensions with tests Fixes: * Fixed unnecessary warnings from matrix_projection.inl * Fixed quaternion slerp overload which interpolates with extra spins * Fixed for glm::length using arch64 * Fixed singularity check for quatLookAt version 0.9.9.7 Improvements: * Improved Neon support with more functions optimized * Added CMake GLM interface * Added fma implementation based on std::fma * Added missing quat constexpr * Added GLM_FORCE_QUAT_DATA_WXYZ to store quat data as w,x,y,z instead of x,y,z,w Fixes: * Fixed equal ULP variation when using negative sign * Fixed for intersection ray/plane and added related tests * Fixed ARM 64bit detection * Fixed GLM_EXT_matrix_clip_space warnings * Fixed Wimplicit-int-float-conversion warnings with clang 10+ * Fixed EXT_matrix_clip_space perspectiveFov version 0.9.9.6 Features: * Added Neon support to glm * Added SYCL support * Added EXT_scalar_integer extension with power of two and multiple scalar functions * Added EXT_vector_integer extension with power of two and multiple vector functions Improvements: * Added missing genType check for bitCount and bitfieldReverse Fixes: * Fixed for g++6 where -std=c++1z sets __cplusplus to 201500 instead of 201402 * Fixed hash hashes qua instead of tquat * Fixed .natvis as structs renamed * Fixed ldexp and frexp declaration * Fixed missing const to quaternion conversion operators * Fixed EXT_scalar_ulp and EXT_vector_ulp API coding style * Fixed quaternion componant order: w, {x, y, z} * Fixed GLM_HAS_CXX11_STL broken on Clang with Linux * Fixed Clang or GCC build due to wrong GLM_HAS_IF_CONSTEXPR definition * Fixed CUDA 9 build - Drop glm-cmake-config.patch (no longer applies) - Add glm-0.9.9.8-install.patch (courtesy of Fedora), glm-0.9.9.8-pkgconfig.patch and glm-0.9.9.8-fix_tests_big-endian.patch OBS-URL: https://build.opensuse.org/request/show/900879 OBS-URL: https://build.opensuse.org/package/show/science/glm?expand=0&rev=11
2021-06-19 14:45:12 +00:00
Version: 0.9.9.8
Release: 0
Summary: Header only C++ mathematics library for graphics
Accepting request 900879 from home:alois:branches:science - Update to version 0.9.9.8 Features: * Added GLM_EXT_vector_intX* and GLM_EXT_vector_uintX* extensions * Added GLM_EXT_matrix_intX* and GLM_EXT_matrix_uintX* extensions Improvements: * Added clamp, repeat, mirrorClamp and mirrorRepeat function to GLM_EXT_scalar_commond and GLM_EXT_vector_commond extensions with tests Fixes: * Fixed unnecessary warnings from matrix_projection.inl * Fixed quaternion slerp overload which interpolates with extra spins * Fixed for glm::length using arch64 * Fixed singularity check for quatLookAt version 0.9.9.7 Improvements: * Improved Neon support with more functions optimized * Added CMake GLM interface * Added fma implementation based on std::fma * Added missing quat constexpr * Added GLM_FORCE_QUAT_DATA_WXYZ to store quat data as w,x,y,z instead of x,y,z,w Fixes: * Fixed equal ULP variation when using negative sign * Fixed for intersection ray/plane and added related tests * Fixed ARM 64bit detection * Fixed GLM_EXT_matrix_clip_space warnings * Fixed Wimplicit-int-float-conversion warnings with clang 10+ * Fixed EXT_matrix_clip_space perspectiveFov version 0.9.9.6 Features: * Added Neon support to glm * Added SYCL support * Added EXT_scalar_integer extension with power of two and multiple scalar functions * Added EXT_vector_integer extension with power of two and multiple vector functions Improvements: * Added missing genType check for bitCount and bitfieldReverse Fixes: * Fixed for g++6 where -std=c++1z sets __cplusplus to 201500 instead of 201402 * Fixed hash hashes qua instead of tquat * Fixed .natvis as structs renamed * Fixed ldexp and frexp declaration * Fixed missing const to quaternion conversion operators * Fixed EXT_scalar_ulp and EXT_vector_ulp API coding style * Fixed quaternion componant order: w, {x, y, z} * Fixed GLM_HAS_CXX11_STL broken on Clang with Linux * Fixed Clang or GCC build due to wrong GLM_HAS_IF_CONSTEXPR definition * Fixed CUDA 9 build - Drop glm-cmake-config.patch (no longer applies) - Add glm-0.9.9.8-install.patch (courtesy of Fedora), glm-0.9.9.8-pkgconfig.patch and glm-0.9.9.8-fix_tests_big-endian.patch OBS-URL: https://build.opensuse.org/request/show/900879 OBS-URL: https://build.opensuse.org/package/show/science/glm?expand=0&rev=11
2021-06-19 14:45:12 +00:00
License: GPL-2.0-only AND MIT
Group: Development/Libraries/C and C++
Accepting request 900879 from home:alois:branches:science - Update to version 0.9.9.8 Features: * Added GLM_EXT_vector_intX* and GLM_EXT_vector_uintX* extensions * Added GLM_EXT_matrix_intX* and GLM_EXT_matrix_uintX* extensions Improvements: * Added clamp, repeat, mirrorClamp and mirrorRepeat function to GLM_EXT_scalar_commond and GLM_EXT_vector_commond extensions with tests Fixes: * Fixed unnecessary warnings from matrix_projection.inl * Fixed quaternion slerp overload which interpolates with extra spins * Fixed for glm::length using arch64 * Fixed singularity check for quatLookAt version 0.9.9.7 Improvements: * Improved Neon support with more functions optimized * Added CMake GLM interface * Added fma implementation based on std::fma * Added missing quat constexpr * Added GLM_FORCE_QUAT_DATA_WXYZ to store quat data as w,x,y,z instead of x,y,z,w Fixes: * Fixed equal ULP variation when using negative sign * Fixed for intersection ray/plane and added related tests * Fixed ARM 64bit detection * Fixed GLM_EXT_matrix_clip_space warnings * Fixed Wimplicit-int-float-conversion warnings with clang 10+ * Fixed EXT_matrix_clip_space perspectiveFov version 0.9.9.6 Features: * Added Neon support to glm * Added SYCL support * Added EXT_scalar_integer extension with power of two and multiple scalar functions * Added EXT_vector_integer extension with power of two and multiple vector functions Improvements: * Added missing genType check for bitCount and bitfieldReverse Fixes: * Fixed for g++6 where -std=c++1z sets __cplusplus to 201500 instead of 201402 * Fixed hash hashes qua instead of tquat * Fixed .natvis as structs renamed * Fixed ldexp and frexp declaration * Fixed missing const to quaternion conversion operators * Fixed EXT_scalar_ulp and EXT_vector_ulp API coding style * Fixed quaternion componant order: w, {x, y, z} * Fixed GLM_HAS_CXX11_STL broken on Clang with Linux * Fixed Clang or GCC build due to wrong GLM_HAS_IF_CONSTEXPR definition * Fixed CUDA 9 build - Drop glm-cmake-config.patch (no longer applies) - Add glm-0.9.9.8-install.patch (courtesy of Fedora), glm-0.9.9.8-pkgconfig.patch and glm-0.9.9.8-fix_tests_big-endian.patch OBS-URL: https://build.opensuse.org/request/show/900879 OBS-URL: https://build.opensuse.org/package/show/science/glm?expand=0&rev=11
2021-06-19 14:45:12 +00:00
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
Accepting request 900879 from home:alois:branches:science - Update to version 0.9.9.8 Features: * Added GLM_EXT_vector_intX* and GLM_EXT_vector_uintX* extensions * Added GLM_EXT_matrix_intX* and GLM_EXT_matrix_uintX* extensions Improvements: * Added clamp, repeat, mirrorClamp and mirrorRepeat function to GLM_EXT_scalar_commond and GLM_EXT_vector_commond extensions with tests Fixes: * Fixed unnecessary warnings from matrix_projection.inl * Fixed quaternion slerp overload which interpolates with extra spins * Fixed for glm::length using arch64 * Fixed singularity check for quatLookAt version 0.9.9.7 Improvements: * Improved Neon support with more functions optimized * Added CMake GLM interface * Added fma implementation based on std::fma * Added missing quat constexpr * Added GLM_FORCE_QUAT_DATA_WXYZ to store quat data as w,x,y,z instead of x,y,z,w Fixes: * Fixed equal ULP variation when using negative sign * Fixed for intersection ray/plane and added related tests * Fixed ARM 64bit detection * Fixed GLM_EXT_matrix_clip_space warnings * Fixed Wimplicit-int-float-conversion warnings with clang 10+ * Fixed EXT_matrix_clip_space perspectiveFov version 0.9.9.6 Features: * Added Neon support to glm * Added SYCL support * Added EXT_scalar_integer extension with power of two and multiple scalar functions * Added EXT_vector_integer extension with power of two and multiple vector functions Improvements: * Added missing genType check for bitCount and bitfieldReverse Fixes: * Fixed for g++6 where -std=c++1z sets __cplusplus to 201500 instead of 201402 * Fixed hash hashes qua instead of tquat * Fixed .natvis as structs renamed * Fixed ldexp and frexp declaration * Fixed missing const to quaternion conversion operators * Fixed EXT_scalar_ulp and EXT_vector_ulp API coding style * Fixed quaternion componant order: w, {x, y, z} * Fixed GLM_HAS_CXX11_STL broken on Clang with Linux * Fixed Clang or GCC build due to wrong GLM_HAS_IF_CONSTEXPR definition * Fixed CUDA 9 build - Drop glm-cmake-config.patch (no longer applies) - Add glm-0.9.9.8-install.patch (courtesy of Fedora), glm-0.9.9.8-pkgconfig.patch and glm-0.9.9.8-fix_tests_big-endian.patch OBS-URL: https://build.opensuse.org/request/show/900879 OBS-URL: https://build.opensuse.org/package/show/science/glm?expand=0&rev=11
2021-06-19 14:45:12 +00:00
# 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
Accepting request 900879 from home:alois:branches:science - Update to version 0.9.9.8 Features: * Added GLM_EXT_vector_intX* and GLM_EXT_vector_uintX* extensions * Added GLM_EXT_matrix_intX* and GLM_EXT_matrix_uintX* extensions Improvements: * Added clamp, repeat, mirrorClamp and mirrorRepeat function to GLM_EXT_scalar_commond and GLM_EXT_vector_commond extensions with tests Fixes: * Fixed unnecessary warnings from matrix_projection.inl * Fixed quaternion slerp overload which interpolates with extra spins * Fixed for glm::length using arch64 * Fixed singularity check for quatLookAt version 0.9.9.7 Improvements: * Improved Neon support with more functions optimized * Added CMake GLM interface * Added fma implementation based on std::fma * Added missing quat constexpr * Added GLM_FORCE_QUAT_DATA_WXYZ to store quat data as w,x,y,z instead of x,y,z,w Fixes: * Fixed equal ULP variation when using negative sign * Fixed for intersection ray/plane and added related tests * Fixed ARM 64bit detection * Fixed GLM_EXT_matrix_clip_space warnings * Fixed Wimplicit-int-float-conversion warnings with clang 10+ * Fixed EXT_matrix_clip_space perspectiveFov version 0.9.9.6 Features: * Added Neon support to glm * Added SYCL support * Added EXT_scalar_integer extension with power of two and multiple scalar functions * Added EXT_vector_integer extension with power of two and multiple vector functions Improvements: * Added missing genType check for bitCount and bitfieldReverse Fixes: * Fixed for g++6 where -std=c++1z sets __cplusplus to 201500 instead of 201402 * Fixed hash hashes qua instead of tquat * Fixed .natvis as structs renamed * Fixed ldexp and frexp declaration * Fixed missing const to quaternion conversion operators * Fixed EXT_scalar_ulp and EXT_vector_ulp API coding style * Fixed quaternion componant order: w, {x, y, z} * Fixed GLM_HAS_CXX11_STL broken on Clang with Linux * Fixed Clang or GCC build due to wrong GLM_HAS_IF_CONSTEXPR definition * Fixed CUDA 9 build - Drop glm-cmake-config.patch (no longer applies) - Add glm-0.9.9.8-install.patch (courtesy of Fedora), glm-0.9.9.8-pkgconfig.patch and glm-0.9.9.8-fix_tests_big-endian.patch OBS-URL: https://build.opensuse.org/request/show/900879 OBS-URL: https://build.opensuse.org/package/show/science/glm?expand=0&rev=11
2021-06-19 14:45:12 +00:00
%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
Accepting request 900879 from home:alois:branches:science - Update to version 0.9.9.8 Features: * Added GLM_EXT_vector_intX* and GLM_EXT_vector_uintX* extensions * Added GLM_EXT_matrix_intX* and GLM_EXT_matrix_uintX* extensions Improvements: * Added clamp, repeat, mirrorClamp and mirrorRepeat function to GLM_EXT_scalar_commond and GLM_EXT_vector_commond extensions with tests Fixes: * Fixed unnecessary warnings from matrix_projection.inl * Fixed quaternion slerp overload which interpolates with extra spins * Fixed for glm::length using arch64 * Fixed singularity check for quatLookAt version 0.9.9.7 Improvements: * Improved Neon support with more functions optimized * Added CMake GLM interface * Added fma implementation based on std::fma * Added missing quat constexpr * Added GLM_FORCE_QUAT_DATA_WXYZ to store quat data as w,x,y,z instead of x,y,z,w Fixes: * Fixed equal ULP variation when using negative sign * Fixed for intersection ray/plane and added related tests * Fixed ARM 64bit detection * Fixed GLM_EXT_matrix_clip_space warnings * Fixed Wimplicit-int-float-conversion warnings with clang 10+ * Fixed EXT_matrix_clip_space perspectiveFov version 0.9.9.6 Features: * Added Neon support to glm * Added SYCL support * Added EXT_scalar_integer extension with power of two and multiple scalar functions * Added EXT_vector_integer extension with power of two and multiple vector functions Improvements: * Added missing genType check for bitCount and bitfieldReverse Fixes: * Fixed for g++6 where -std=c++1z sets __cplusplus to 201500 instead of 201402 * Fixed hash hashes qua instead of tquat * Fixed .natvis as structs renamed * Fixed ldexp and frexp declaration * Fixed missing const to quaternion conversion operators * Fixed EXT_scalar_ulp and EXT_vector_ulp API coding style * Fixed quaternion componant order: w, {x, y, z} * Fixed GLM_HAS_CXX11_STL broken on Clang with Linux * Fixed Clang or GCC build due to wrong GLM_HAS_IF_CONSTEXPR definition * Fixed CUDA 9 build - Drop glm-cmake-config.patch (no longer applies) - Add glm-0.9.9.8-install.patch (courtesy of Fedora), glm-0.9.9.8-pkgconfig.patch and glm-0.9.9.8-fix_tests_big-endian.patch OBS-URL: https://build.opensuse.org/request/show/900879 OBS-URL: https://build.opensuse.org/package/show/science/glm?expand=0&rev=11
2021-06-19 14:45:12 +00:00
%{_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