1
0
forked from pool/protobuf-c

Accepting request 989809 from server:monitoring

Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/989809
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/protobuf-c?expand=0&rev=23
This commit is contained in:
Fabian Vogt 2022-07-31 21:00:19 +00:00 committed by Git OBS Bridge
commit e7045649d0
2 changed files with 23 additions and 4 deletions

View File

@ -6,6 +6,15 @@ Mon Jul 11 07:46:47 UTC 2022 - Jan Engelhardt <jengelh@inai.de>
* Avoid shifting signed values (GH#508)
- Remove 508.patch (merged)
-------------------------------------------------------------------
Tue Jul 5 12:38:17 UTC 2022 - Adam Majer <adam.majer@suse.de>
- 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 <bjorn.lie@gmail.com>

View File

@ -54,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 <= %version
Obsoletes: %name <= 1.4.0
%description -n libprotobuf-c-devel
This package provides a code generator and runtime libraries to use Protocol
@ -64,14 +64,20 @@ 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
%configure \
--enable-static=no
%make_build
%install
%make_install
rm "%buildroot/%_libdir"/*.a "%buildroot/%_libdir"/*.la
rm %buildroot/%_libdir/*.la
%check
make check
%post -n libprotobuf-c%sover -p /sbin/ldconfig
%postun -n libprotobuf-c%sover -p /sbin/ldconfig
@ -83,9 +89,13 @@ rm "%buildroot/%_libdir"/*.a "%buildroot/%_libdir"/*.la
%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