summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2026-09-23 14:17:41 +0000
committerCoprDistGit <infra@openeuler.org>2026-09-23 14:17:41 +0000
commita8ff71c29ccb49c5eb9c84fbb7f96331c9107391 (patch)
tree4e1c2ee1762bb1148a9e93bd5f6545b1bcfa8bc6
parentf25eb833b9b15567d8d5a0ed2088c5046d69a07a (diff)
automatic import of libnanopb-dev
-rw-r--r--libnanopb-dev.spec15
-rw-r--r--sources2
2 files changed, 13 insertions, 4 deletions
diff --git a/libnanopb-dev.spec b/libnanopb-dev.spec
index 77903d6..8c6e2ba 100644
--- a/libnanopb-dev.spec
+++ b/libnanopb-dev.spec
@@ -8,7 +8,7 @@
Name: libnanopb-dev
Version: 0.4.9.2
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: Protocol Buffers for embedded systems - development files
License: Zlib
@@ -52,10 +52,15 @@ source files.
-Dnanopb_BUILD_RUNTIME=ON \
-Dnanopb_BUILD_GENERATOR=ON \
-DPython_EXECUTABLE=%{_bindir}/python3
-%cmake_build
+# This chroot's %cmake performs an in-source build (writes Makefile into the
+# source tree) while %cmake_build expects an out-of-source dir named
+# %{_vpath_builddir} (aarch64-openEuler-linux-gnu) -> "is not a directory".
+# %make_build / %make_install run against the in-source Makefile that %cmake
+# actually generated, sidestepping the mismatched cmake-macros pair.
+%make_build
%install
-%cmake_install
+%make_install
%files
%license LICENSE.txt
@@ -69,5 +74,9 @@ source files.
%{python3_sitelib}/nanopb/
%changelog
+* Wed Sep 23 2026 openEuler Builder <builder@openeuler.org> - 0.4.9.2-2
+- Fix %build: use %make_build/%make_install against %cmake in-source Makefile
+ (chroot's %cmake_build expects absent out-of-source dir)
+
* Wed Sep 23 2026 openEuler Builder <builder@openeuler.org> - 0.4.9.2-1
- Initial package for openEuler
diff --git a/sources b/sources
index 67044c4..752a4c3 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-1f510192222702be8cebe46555ec2427 libnanopb-dev-0.4.9.2.tar.gz
+2f9524bf7fa24e4ac6e21829783ec642 libnanopb-dev-0.4.9.2.tar.gz