The package rpms/nanopb.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/nanopb.git/commit/?id=921442f5ff9....
Change:
+ExcludeArch: %{ix86}
Thanks.
Full change:
============
commit 921442f5ff94b24617eb543ce0e95f2545cce96b
Author: topazus <topazus(a)outlook.com>
Date: Sun Jun 25 14:47:55 2023 +0800
initial import; rhbz#2216595
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..b31182e
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+/nanopb-0.4.7.tar.gz
diff --git a/nanopb-remove-bin.patch b/nanopb-remove-bin.patch
new file mode 100644
index 0000000..38faf2d
--- /dev/null
+++ b/nanopb-remove-bin.patch
@@ -0,0 +1,27 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 8d241c5..655c9f3 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -70,22 +70,6 @@ if(nanopb_BUILD_GENERATOR)
+ DESTINATION ${PYTHON_INSTDIR}/proto/ )
+ endif()
+
+-if(WIN32)
+- install(
+- PROGRAMS
+- generator/nanopb_generator.py
+- generator/protoc-gen-nanopb.bat
+- DESTINATION ${CMAKE_INSTALL_BINDIR}
+- )
+-else()
+- install(
+- PROGRAMS
+- generator/nanopb_generator.py
+- generator/protoc-gen-nanopb
+- DESTINATION ${CMAKE_INSTALL_BINDIR}
+- )
+-endif()
+-
+ if(nanopb_BUILD_RUNTIME)
+ if(BUILD_SHARED_LIBS)
+ add_library(protobuf-nanopb SHARED
diff --git a/nanopb.spec b/nanopb.spec
new file mode 100644
index 0000000..c5b821f
--- /dev/null
+++ b/nanopb.spec
@@ -0,0 +1,104 @@
+%bcond_without check
+
+%global forgeurl
https://github.com/nanopb/nanopb
+Version: 0.4.7
+%global tag %{version}
+%forgemeta
+
+Name: nanopb
+Release: %autorelease
+Summary: A small code-size Protocol Buffers implementation in ansi C
+License: Zlib
+URL:
https://jpa.kapsi.fi/nanopb/
+Source0: %{forgesource}
+# remove binary tools of protoc-based generator
+Patch0: nanopb-remove-bin.patch
+
+#
https://fedoraproject.org/wiki/Changes/EncourageI686LeafRemoval
+ExcludeArch: %{ix86}
+
+BuildRequires: gcc-c++
+BuildRequires: cmake
+BuildRequires: ninja-build
+BuildRequires: protobuf-devel
+BuildRequires: python3-devel
+# for testing
+%if %{with check}
+BuildRequires: python3-scons
+BuildRequires: %{py3_dist grpcio-tools}
+%endif
+
+%description
+Nanopb is a small code-size Protocol Buffers implementation in ansi C. It is
+especially suitable for use in microcontrollers, but fits any memory restricted
+system.
+
+%package devel
+Summary: Development files for %{name}
+Requires: %{name}%{?_isa} = %{version}-%{release}
+
+%description devel
+The %{name}-devel package contains libraries and header files for
+developing applications that use %{name}.
+
+%package python3
+Summary: Small code-size Protocol Buffers implementation in Python
+Requires: %{name}%{?_isa} = %{version}-%{release}
+
+%description python3
+The %{name}-python3 package contains Small code-size Protocol Buffers
+implementation in Python. It includes the protoc-based generator, which converts
+.proto files to .pb.h files for inclusion in a project.
+
+%prep
+%forgeautosetup -p1
+
+#
https://github.com/nanopb/nanopb/blob/master/extra/poetry/poetry_build.sh
+cp extra/poetry/pyproject.toml .
+mkdir -p nanopb
+cp -r generator nanopb
+touch nanopb/__init__.py nanopb/generator/__init__.py
+make -C nanopb/generator/proto
+
+%generate_buildrequires
+%pyproject_buildrequires
+
+%build
+%cmake \
+ -GNinja \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DBUILD_STATIC_LIBS=OFF \
+ -Dnanopb_BUILD_GENERATOR=OFF \
+
+%cmake_build
+%pyproject_wheel
+
+%install
+%cmake_install
+%pyproject_install
+%pyproject_save_files nanopb
+
+%if %{with check}
+%check
+pushd tests
+ scons
+popd
+%endif
+
+%files
+%license LICENSE.txt
+%doc README.md
+%{_libdir}/libprotobuf-nanopb.so.0
+
+%files devel
+%{_libdir}/libprotobuf-nanopb.so
+%{_includedir}/pb*.h
+%dir %{_libdir}/cmake/nanopb
+%{_libdir}/cmake/nanopb/*.cmake
+
+%files python3 -f %{pyproject_files}
+%{_bindir}/nanopb_generator
+%{_bindir}/protoc-gen-nanopb
+
+%changelog
+%autochangelog
diff --git a/sources b/sources
new file mode 100644
index 0000000..73c0e8c
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+SHA512 (nanopb-0.4.7.tar.gz) =
7fb46dad8a432898c8f9e7faa90a55276670dea3b13f15b68010fe126d7f6251ef5715d0dfe5bce66582e80cfdc5d4b1e7f5947e96a058fa7181f0a45da20860