public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/tinygltf] rawhide: Update to latest (fedora#2510104).
@ 2026-09-19 20:24 Jonathan Steffan
  0 siblings, 0 replies; only message in thread
From: Jonathan Steffan @ 2026-09-19 20:24 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/tinygltf
Branch : rawhide
Commit : f9641464b8071259f7be6166fdf2960667c243c8
Author : Jonathan Steffan <jsteffan@fedoraproject.org>
Date   : 2026-08-02T12:22:16-06:00
Stats  : +21/-76 in 3 file(s)
URL    : https://src.fedoraproject.org/rpms/tinygltf/c/f9641464b8071259f7be6166fdf2960667c243c8?branch=rawhide

Log:
Update to latest (fedora#2510104).

---
diff --git a/.gitignore b/.gitignore
index 49778d8..57af3cd 100644
--- a/.gitignore
+++ b/.gitignore
@@ -2,3 +2,4 @@
 /tinygltf-2.9.6.tar.gz
 /tinygltf-2.9.7.tar.gz
 /tinygltf-3.0.0.tar.gz
+/tinygltf-3.0.1.tar.gz

diff --git a/sources b/sources
index 46eb1ef..bba2c52 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (tinygltf-3.0.0.tar.gz) = 3305c94aaa6f2b82ac2533bb17672b0ddd0239c413acc87b428be50dc0f9bcd4c300f6ed7f3077424ccc8237e4e75f1194d311d21f799809e0220eeb3f8900a4
+SHA512 (tinygltf-3.0.1.tar.gz) = a97a1da28a132e4012641fdb10ae5bc5055a49a556ab975eae3696f4c80a287423358f3408a841f3e188df578a172b0c814526511e227daa247ed61c80b9edf4

diff --git a/tinygltf.spec b/tinygltf.spec
index cdd998f..571935d 100644
--- a/tinygltf.spec
+++ b/tinygltf.spec
@@ -1,115 +1,59 @@
-# https://github.com/syoyo/tinygltf/issues/484
-%ifarch ppc64le s390x
-%bcond tests 0
-%else
-%bcond tests 1
-%endif
-
 %global common_description %{expand:
-TinyGLTF is a header only C++11 glTF 2.0 library.}
+TinyGLTF v3 is a pure C11 implementation of a glTF 2.0 loader and writer,
+with an arena-based allocator, structured error reporting, and a custom
+locale-independent JSON backend. It has no external dependencies.}
+
+# The devel package ships only headers/source and no compiled binaries, so
+# there is nothing for find-debuginfo to generate a debugsource package from
+%global debug_package %{nil}
 
 Name:           tinygltf
-Version:        3.0.0
+Version:        3.0.1
 Release:        %autorelease
-Summary:        Header only C++11 tiny glTF 2.0 library
+Summary:        C11 tiny glTF 2.0 loader/writer library
 
 License:        MIT
 URL:            https://github.com/syoyo/tinygltf
 Source:         %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
 
-# https://github.com/syoyo/tinygltf/pull/550
-Patch:          tinygltf-i686-unsigned-int.patch
-
 BuildRequires:  cmake
-BuildRequires:  gcc-c++
+BuildRequires:  gcc
 BuildRequires:  make
-BuildRequires:  sed
-
-BuildRequires:  catch1-devel
-BuildRequires:  json-devel
-# Minimum version to contain fixes for upstream issues
-# https://github.com/nothings/stb/issues/1860
-# https://github.com/nothings/stb/issues/1861
-BuildRequires:  stb_image-devel >= 2.30^20251025gitf1c79c0-2
-BuildRequires:  stb_image_write-devel
 
 %description    %{common_description}
 
 %package        devel
 Summary:        %{summary}
 Provides:       %{name}-static = %{version}-%{release}
-Requires:       cmake-filesystem
-Requires:       json-devel
-Requires:       stb_image-devel >= 2.30^20251025gitf1c79c0-2
-Requires:       stb_image_write-devel
 
 %description    devel %{common_description}
 
-%package        examples
-Summary:        Examples for %{name}
-
-%description    examples %{common_description}
-
-This package provides examples exercising %{name}.
-
 %prep
 %autosetup -p1
 
-# Replace bundled headers with system versions
-ln -sf %{_includedir}/catch/catch.hpp tests/
-rm json.hpp stb_image.h stb_image_write.h tests/catch.hpp
-sed -i CMakeLists.txt \
-  -e '/json.hpp/d' \
-  -e '/stb_image.h/d' \
-  -e '/stb_image_write.h/d'
-sed -i tiny_gltf.h tests/tester.cc tests/tester_intensive_customjson.cc \
-  -e 's:#include "catch.hpp":#include <catch/catch.hpp>:' \
-  -e 's:#include "json.hpp":#include <nlohmann/json.hpp>:' \
-  -e 's:#include "stb_image.h":#include <stb_image.h>:' \
-  -e 's:#include "stb_image_write.h":#include <stb_image_write.h>:'
-
-# The examples bundle a slew of third party libraries; these aren't built by
-# default, so we just clobber them for now instead of unbundling
-rm -r examples
-
-# Drop unused bundled deps
-rm -r deps tools
-
-# Use our compiler and build flags to build the tests
-sed -i tests/Makefile \
-  -e 's:clang++:%{__cxx}:g' \
-  -e 's:-O0:%{build_cxxflags} %{build_ldflags}:g'
+# attic/ holds the legacy header-only C++11 implementation plus vendored
+# copies of catch.hpp, json.hpp, and stb_image*.h kept by upstream for
+# reference only; none of it is used by the C11 v3 build
+rm -r attic
 
 %build
-%cmake -DTINYGLTF_HEADER_ONLY=ON
+%cmake -DTINYGLTF3_BUILD_TESTS=ON -DTINYGLTF3_INSTALL=ON
 %cmake_build
-%make_build -C tests
 
 %install
 %cmake_install
 
-# Install the examples
-install -Dpm0755 %{_vpath_builddir}/loader_example \
-  %{buildroot}%{_bindir}/%{name}_loader_example
-
 %if %{with tests}
 %check
-for t in tester tester_noexcept; do
-  echo "Running $t"
-  (cd tests && ./"$t")
-done
+%ctest
 %endif
 
 %files devel
 %license LICENSE
 %doc README.md
-%{_includedir}/tiny_gltf.h
-%{_includedir}/tinygltf_json.h
-%{_libdir}/cmake/%{name}/
-
-%files examples
-%license LICENSE
-%{_bindir}/%{name}_loader_example
+%{_includedir}/tiny_gltf_v3.h
+%{_includedir}/tiny_gltf_v3.c
+%{_includedir}/tinygltf_json_c.h
 
 %changelog
 %autochangelog

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-09-19 20:24 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-19 20:24 [rpms/tinygltf] rawhide: Update to latest (fedora#2510104) Jonathan Steffan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox