[packages/GLM] - updated to 1.0.2

qboosh qboosh at pld-linux.org
Sat Dec 27 11:15:31 CET 2025


commit b9d919935f3d6e9bf9cf15abc2bb27ec3db0def4
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sat Dec 27 11:16:01 2025 +0100

    - updated to 1.0.2

 GLM-types.patch | 11 -----------
 GLM.spec        | 18 ++++++++----------
 2 files changed, 8 insertions(+), 21 deletions(-)
---
diff --git a/GLM.spec b/GLM.spec
index c23e94c..6beeee8 100644
--- a/GLM.spec
+++ b/GLM.spec
@@ -1,23 +1,22 @@
 #
 # Conditional build:
-%bcond_without	tests		# build without tests
+%bcond_without	tests	# test suite
 #
 Summary:	OpenGL Mathematics (GLM) - C++ mathematics library for GLSL
 Summary(pl.UTF-8):	OpenGL Mathematics (GLM) - biblioteka matematyczna C++ dla GLSL
 Name:		GLM
-Version:	1.0.1
-Release:	3
+Version:	1.0.2
+Release:	1
 License:	MIT
 Group:		Libraries
 #Source0Download: https://github.com/g-truc/glm/releases
 Source0:	https://github.com/g-truc/glm/archive/%{version}/glm-%{version}.tar.gz
-# Source0-md5:	f824ac50e16310a95279032f82cbd341
+# Source0-md5:	1215b4d29f7a34933f941411bda228a2
 Patch0:		x32.patch
-Patch1:		%{name}-types.patch
 URL:		https://glm.g-truc.net/
 BuildRequires:	cmake >= 3.6
 %{?with_tests:BuildRequires:	libstdc++-devel}
-BuildRequires:	rpmbuild(macros) >= 1.605
+BuildRequires:	rpmbuild(macros) >= 2.047
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -48,15 +47,14 @@ graficznych opartych na specyfikacji OpenGL Shading Language (GLSL).
 %prep
 %setup -q -n glm-%{version}
 %patch -P0 -p1
-%patch -P1 -p1
 
 %build
-mkdir build
+install -d build
 cd build
 # change CMAKE_INSTALL_DATAROOTDIR to arch-dependent (files contain arch-dependent libglm.so paths)
 %cmake .. \
 	-DCMAKE_INSTALL_DATAROOTDIR=%{_libdir}/cmake \
-	-DGLM_TEST_ENABLE:BOOL=%{!?with_tests:OFF}%{?with_tests:ON}
+	-DGLM_BUILD_TESTS:BOOL=%{__ON_OFF tests}
 
 %{__make}
 
@@ -79,7 +77,7 @@ rm -rf $RPM_BUILD_ROOT
 %files
 %defattr(644,root,root,755)
 %doc manual.md readme.md
-%attr(755,root,root) %{_libdir}/libglm.so
+%{_libdir}/libglm.so
 
 %files devel
 %defattr(644,root,root,755)
diff --git a/GLM-types.patch b/GLM-types.patch
deleted file mode 100644
index b112ea9..0000000
--- a/GLM-types.patch
+++ /dev/null
@@ -1,11 +0,0 @@
---- glm-1.0.1/test/core/core_func_matrix.cpp.orig	2024-02-27 18:19:47.000000000 +0100
-+++ glm-1.0.1/test/core/core_func_matrix.cpp	2024-05-30 13:20:49.089552367 +0200
-@@ -392,7 +392,7 @@ static int test_inverse_perf(std::size_t
- 	//glm::uint Ulp = 0;
- 	//Ulp = glm::max(glm::float_distance(*Dst, *Src), Ulp);
- 
--	std::printf("inverse<%s>(%f): %lu\n", Message, static_cast<double>(Diff), EndTime - StartTime);
-+	std::printf("inverse<%s>(%f): %llu\n", Message, static_cast<double>(Diff), (unsigned long long)(EndTime - StartTime));
- 
- 	return 0;
- }
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/GLM.git/commitdiff/b9d919935f3d6e9bf9cf15abc2bb27ec3db0def4



More information about the pld-cvs-commit mailing list