summaryrefslogtreecommitdiff
path: root/libnanopb-dev.spec
diff options
context:
space:
mode:
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