The package rpms/tinygltf.git has added or updated architecture specific content in its spec file (ExclusiveArch/ExcludeArch or %ifarch/%ifnarch) in commit(s): https://src.fedoraproject.org/cgit/rpms/tinygltf.git/commit/?id=c788818b84b0....
Change: +%ifarch ppc64le s390x
Thanks.
Full change: ============
commit b3406550290ba2340e6caf504f1255534b7fc72a Author: Jonathan Steffan jsteffan@fedoraproject.org Date: Sat May 24 09:41:03 2025 -0600
Update to 2.9.6 (fedora#2367408).
diff --git a/.gitignore b/.gitignore index b9f857d..c90923f 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ /tinygltf-2.9.5.tar.gz +/tinygltf-2.9.6.tar.gz diff --git a/sources b/sources index be73e31..b9ca603 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (tinygltf-2.9.5.tar.gz) = 8eaf4d888ca96daef7c8cd638f5847e81febc3ce1f21668b98b345ad75dd00fbf91f3d75f0509a429db9985aa843f3379dc1515ce3a1b3d375f00e6b8af3b3f7 +SHA512 (tinygltf-2.9.6.tar.gz) = 89397dc2c8884a54ea0c370251449459a200057b5e470210c4468f43c4623947500630b1a67ff6319e0998e648487367398f134711bc7d2c42ebdbd7097770b3 diff --git a/tinygltf.spec b/tinygltf.spec index c12a5b1..9ed4148 100644 --- a/tinygltf.spec +++ b/tinygltf.spec @@ -9,7 +9,7 @@ TinyGLTF is a header only C++11 glTF 2.0 library.}
Name: tinygltf -Version: 2.9.5 +Version: 2.9.6 Release: %autorelease Summary: Header only C++11 tiny glTF 2.0 library
commit c788818b84b0707e5af3addb80c514b44697ee48 Author: Davide Cavalca dcavalca@fedoraproject.org Date: Sun Mar 30 17:23:52 2025 -0700
Initial import; Fixes: RHBZ#2276294
diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..b9f857d --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/tinygltf-2.9.5.tar.gz diff --git a/sources b/sources new file mode 100644 index 0000000..be73e31 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (tinygltf-2.9.5.tar.gz) = 8eaf4d888ca96daef7c8cd638f5847e81febc3ce1f21668b98b345ad75dd00fbf91f3d75f0509a429db9985aa843f3379dc1515ce3a1b3d375f00e6b8af3b3f7 diff --git a/tinygltf.spec b/tinygltf.spec new file mode 100644 index 0000000..c12a5b1 --- /dev/null +++ b/tinygltf.spec @@ -0,0 +1,105 @@ +# 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.} + +Name: tinygltf +Version: 2.9.5 +Release: %autorelease +Summary: Header only C++11 tiny glTF 2.0 library + +License: MIT +URL: https://github.com/syoyo/tinygltf +Source: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz + +BuildRequires: cmake +BuildRequires: gcc-c++ +BuildRequires: make +BuildRequires: sed + +BuildRequires: catch1-devel +BuildRequires: json-devel +BuildRequires: stb_image-devel +BuildRequires: stb_image_write-devel + +%description %{common_description} + +%package devel +Summary: %{summary} +Provides: %{name}-static = %{version}-%{release} +Requires: cmake-filesystem + +%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 \ + -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' + +%build +%cmake -DTINYGLTF_HEADER_ONLY=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 +%endif + +%files devel +%license LICENSE +%doc README.md +%{_includedir}/tiny_gltf.h +%{_libdir}/cmake/%{name}/ + +%files examples +%license LICENSE +%{_bindir}/%{name}_loader_example + +%changelog +%autochangelog
arch-excludes@lists.fedoraproject.org