Skip to content

Commit

Permalink
Update protobuf-c to version 1.4.0 / rev 21
Browse files Browse the repository at this point in the history
  • Loading branch information
RBrownFactory authored and bmwiedemann committed Jul 27, 2022
1 parent 06ad68d commit dd45164
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 110 deletions.
Binary file modified packages/p/protobuf-c/.files
Binary file not shown.
7 changes: 7 additions & 0 deletions packages/p/protobuf-c/.rev
Original file line number Diff line number Diff line change
Expand Up @@ -152,4 +152,11 @@
<comment></comment>
<requestid>986912</requestid>
</revision>
<revision rev="21" vrev="4">
<srcmd5>5e2914bcc15e5f45a33a577a7a0b53f6</srcmd5>
<version>1.4.0</version>
<time>1658951219</time>
<user>RBrownFactory</user>
<comment>Revert to rev 19, https://github.com/protocolbuffers/protobuf/issues/10323</comment>
</revision>
</revisionlist>
1 change: 1 addition & 0 deletions packages/p/protobuf-c/.servicemark
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
af206b64c264d24c57cb01e60575fd7f
86 changes: 0 additions & 86 deletions packages/p/protobuf-c/508.patch

This file was deleted.

9 changes: 0 additions & 9 deletions packages/p/protobuf-c/protobuf-c.changes
Original file line number Diff line number Diff line change
@@ -1,12 +1,3 @@
-------------------------------------------------------------------
Tue Jul 5 12:38:17 UTC 2022 - Adam Majer <[email protected]>

- Do not build static libraries
- Run unit tests
- Explicit files and directories for includedir, so we can detect
what we actually install there
- 508.patch: fixes invalid arithmetic shift (bsc#1200908, CVE-2022-33070)

-------------------------------------------------------------------
Tue Nov 23 10:10:53 UTC 2021 - Bjørn Lie <[email protected]>

Expand Down
19 changes: 4 additions & 15 deletions packages/p/protobuf-c/protobuf-c.spec
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ License: BSD-3-Clause
Group: Development/Tools/Other
URL: https://github.com/protobuf-c/protobuf-c
Source: https://github.com/protobuf-c/protobuf-c/releases/download/v%version/%name-%version.tar.gz
Patch1: 508.patch
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: gcc
Expand Down Expand Up @@ -55,7 +54,7 @@ Summary: C bindings for Google's Protocol Buffers
Group: Development/Libraries/C and C++
Requires: libprotobuf-c%sover = %version
Provides: %name = %version
Obsoletes: %name <= 1.4.0
Obsoletes: %name <= %version

%description -n libprotobuf-c-devel
This package provides a code generator and runtime libraries to use Protocol
Expand All @@ -65,20 +64,14 @@ Buffers from pure C (not C++).
%autosetup -p1

%build
%{!?make_build:%define make_build make -O %{?_smp_mflags} V=1 VERBOSE=1}
%define _lto_cflags %nil
autoreconf -fvi
%configure \
--enable-static=no

%configure
%make_build

%install
%make_install
rm %buildroot/%_libdir/*.la

%check
make check
rm "%buildroot/%_libdir"/*.a "%buildroot/%_libdir"/*.la

%post -n libprotobuf-c%sover -p /sbin/ldconfig
%postun -n libprotobuf-c%sover -p /sbin/ldconfig
Expand All @@ -90,13 +83,9 @@ make check

%files -n libprotobuf-c-devel
%doc ChangeLog TODO
%dir %_includedir/protobuf-c
%dir %_includedir/google
%dir %_includedir/google/protobuf-c
%_includedir/protobuf-c/*
%_includedir/google/protobuf-c/protobuf-c.h
%_bindir/protoc-c
%_bindir/protoc-gen-c
%_includedir/*/
%_libdir/libprotobuf-c.so
%_libdir/pkgconfig/libprotobuf-c.pc

Expand Down

0 comments on commit dd45164

Please sign in to comment.