diff options
| -rw-r--r-- | libnanopb-dev.spec | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/libnanopb-dev.spec b/libnanopb-dev.spec index 8088df2..0c2d286 100644 --- a/libnanopb-dev.spec +++ b/libnanopb-dev.spec @@ -7,7 +7,7 @@ Name: libnanopb-dev Version: 0.4.9.2 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Protocol Buffers library for embedded systems - development files License: Zlib @@ -19,6 +19,7 @@ Packager: openEuler Builder <builder@openeuler.org> BuildRequires: cmake BuildRequires: gcc +BuildRequires: make BuildRequires: protobuf-compiler BuildRequires: python3 @@ -50,10 +51,10 @@ header files, CMake integration files, and the Python-based code generator -Dnanopb_BUILD_RUNTIME=ON \ -Dnanopb_BUILD_GENERATOR=ON \ -Dnanopb_PYTHON_INSTDIR_OVERRIDE=%{python3_sitelib} -%cmake_build +%make_build %install -%cmake_install +%make_install %files %license LICENSE.txt @@ -62,9 +63,15 @@ header files, CMake integration files, and the Python-based code generator %{_libdir}/libprotobuf-nanopb.a %{_libdir}/cmake/nanopb/ %{_bindir}/nanopb_generator +%{_bindir}/nanopb_generator.py %{_bindir}/protoc-gen-nanopb %{python3_sitelib}/nanopb/ %changelog +* Mon Sep 28 2026 openEuler Builder <builder@openeuler.org> - 0.4.9.2-2 +- Fix %build: replace %cmake_build/%cmake_install with %make_build/%make_install + (%cmake macro runs in-place but %cmake_build expects %{_target_platform} dir) +- Add %{_bindir}/nanopb_generator.py to %files (installed by cmake, was missing) + * Mon Sep 28 2026 openEuler Builder <builder@openeuler.org> - 0.4.9.2-1 - Initial package |
