Hello community,

here is the log from the commit of package nanopb for openSUSE:Factory checked 
in at 2019-01-15 09:16:39
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/nanopb (Old)
 and      /work/SRC/openSUSE:Factory/.nanopb.new.28833 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "nanopb"

Tue Jan 15 09:16:39 2019 rev:2 rq:664676 version:0.3.9.2

Changes:
--------
--- /work/SRC/openSUSE:Factory/nanopb/nanopb.changes    2018-12-13 
19:48:50.968669513 +0100
+++ /work/SRC/openSUSE:Factory/.nanopb.new.28833/nanopb.changes 2019-01-15 
09:16:40.766218529 +0100
@@ -1,0 +2,13 @@
+Mon Jan  7 15:47:22 UTC 2019 - Michał Rostecki <mroste...@suse.de>
+
+- Enable PB_FIELD_16BIT setting to add support for tag numbers >
+  255 and fields larger than 255 bytes.
+
+-------------------------------------------------------------------
+Mon Jan  7 14:32:19 UTC 2019 - Michał Rostecki <mroste...@suse.de>
+
+- Add nanopb-source package - some Go programs using gRPC need
+  protobuf definitions which are included inside the source code,
+  but are not included in the devel package.
+
+-------------------------------------------------------------------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ nanopb.spec ++++++
--- /var/tmp/diff_new_pack.HpXhV2/_old  2019-01-15 09:16:41.150218171 +0100
+++ /var/tmp/diff_new_pack.HpXhV2/_new  2019-01-15 09:16:41.154218168 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package nanopb
 #
-# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -12,11 +12,12 @@
 # license that conforms to the Open Source Definition (Version 1.9)
 # published by the Open Source Initiative.
 
-# Please submit bugfixes or comments via http://bugs.opensuse.org/
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
 #
 
 
 %define sover 0
+%define src_install_dir /usr/src/%{name}
 
 Name:           nanopb
 Version:        0.3.9.2
@@ -27,6 +28,7 @@
 Url:            https://jpa.kapsi.fi/nanopb/
 Source:         %{name}-%{version}.tar.xz
 BuildRequires:  cmake
+BuildRequires:  fdupes
 BuildRequires:  protobuf-devel
 BuildRequires:  python-devel
 BuildRequires:  python-rpm-macros
@@ -53,8 +55,19 @@
 Development files for nanopb - a C implementation of Google's Protocol Buffers
 data format.
 
+%package source
+Summary:        Source code of nanopb
+Group:          Development/Sources
+BuildArch:      noarch
+
+%description source
+Source code of nanopb - a C implementation of Google's Protocol Buffers data
+format.
+
 %prep
 %setup -q
+# Add support for tag numbers > 255 and fields larger than 255 bytes.
+sed -i 's|/\* #define PB_FIELD_16BIT 1 \*/|#define PB_FIELD_16BIT 1|' ./pb.h
 
 %build
 %cmake -DBUILD_SHARED_LIBS=ON -DBUILD_STATIC_LIBS=OFF
@@ -65,6 +78,15 @@
 rm %{buildroot}%{python_sitelib}/nanopb_pb2.py
 rm %{buildroot}%{python_sitelib}/plugin_pb2.py
 
+mkdir -p %{buildroot}%{src_install_dir}
+tar -xf %{SOURCE0} --strip-components=1 -C %{buildroot}%{src_install_dir}
+# Fix env-script-interpreter rpmlint error
+find %{buildroot}%{src_install_dir} -type f -name "*.py" -exec sed -i 
's|#!/usr/bin/env python|#!/usr/bin/python|' "{}" +
+# Add support for tag numbers > 255 and fields larger than 255 bytes.
+sed -i 's|/\* #define PB_FIELD_16BIT 1 \*/|#define PB_FIELD_16BIT 1|' 
%{buildroot}%{src_install_dir}/pb.h
+
+%fdupes %{buildroot}%{src_install_dir}
+
 %post -n libprotobuf-nanopb%{sover} -p /sbin/ldconfig
 %postun -n libprotobuf-nanopb%{sover} -p /sbin/ldconfig
 
@@ -85,4 +107,7 @@
 %{_libdir}/cmake/nanopb/nanopb-targets.cmake
 %{_libdir}/libprotobuf-nanopb.so
 
+%files source
+%{src_install_dir}
+
 %changelog


Reply via email to