summaryrefslogtreecommitdiff
path: root/libnanopb-dev.spec
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2026-09-28 08:53:10 +0000
committerCoprDistGit <infra@openeuler.org>2026-09-28 08:53:10 +0000
commit4714211c3892c4cc9d16fa598378c9ad96238cbc (patch)
tree97e1c623dad9d903bca8182fb44398ec54b5097d /libnanopb-dev.spec
parent1a1742ec185f63ac424475018970280242b62ae4 (diff)
automatic import of libnanopb-dev
Diffstat (limited to 'libnanopb-dev.spec')
-rw-r--r--libnanopb-dev.spec13
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