summaryrefslogtreecommitdiff
path: root/libnanopb-dev.spec
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 /libnanopb-dev.spec
parentf25eb833b9b15567d8d5a0ed2088c5046d69a07a (diff)
automatic import of libnanopb-dev
Diffstat (limited to 'libnanopb-dev.spec')
-rw-r--r--libnanopb-dev.spec15
1 files changed, 12 insertions, 3 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