## START: Set by rpmautospec ## (rpmautospec version 0.8.4) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 6; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec # We use non-standard sover to avoid conflict with protobuf-c, linked to more recent protobuf #global sover 1 %global sover 30 %global origname protobuf-c Name: protobuf3-c Version: 1.5.2 # anything below 50 is reserved for "old" protobuf-c Release: %autorelease -b 50 Summary: C bindings for Google's Protocol Buffers License: BSD-2-Clause URL: https://github.com/protobuf-c/protobuf-c Source0: %{url}/releases/download/v%{version}/%{origname}-%{version}.tar.gz BuildRequires: autoconf BuildRequires: automake BuildRequires: gcc-c++ BuildRequires: make BuildRequires: autoconf BuildRequires: libtool BuildRequires: sed BuildRequires: pkgconfig(protobuf) < 4 %description Protocol Buffers are a way of encoding structured data in an efficient yet extensible format. This package provides a code generator and run-time libraries to use Protocol Buffers from pure C (not C++). It uses a modified version of protoc called protoc-c. This is bindings for compat package protobuf3 %package compiler Summary: Protocol Buffers C compiler Requires: %{name}%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release} Conflicts: protobuf-c-compiler %description compiler This package contains a modified version of the Protocol Buffers compiler for the C programming language called protoc-c. %package devel Summary: Protocol Buffers C headers and libraries Requires: %{name}%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release} Requires: %{name}-compiler%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release} Conflicts: protobuf-c-devel %description devel This package contains protobuf-c headers and libraries. This is bindings for compat package protobuf3 %prep %autosetup -p1 -n'%{origname}-%{version}' # Ensure our sover matches the protobuf one realpath %{_libdir}/libprotobuf.so | grep "libprotobuf\.so\.%{sover}" # Provide fake sover sed -i -e "/^LIBPROTOBUF_C_CURRENT=/ s|=1$|=%{sover}|" Makefile.am autoreconf -fiv %build %configure --disable-static %make_build %check make check %install %make_install find %{buildroot} -type f -name '*.la' -delete %files %license LICENSE %doc README.md TODO %{_libdir}/lib%{origname}.so.%{sover}* %files compiler %{_bindir}/protoc-c %{_bindir}/protoc-gen-c %files devel %dir %{_includedir}/google %{_includedir}/%{origname}/ %{_includedir}/google/%{origname}/ %{_libdir}/lib%{origname}.so %{_libdir}/pkgconfig/lib%{origname}.pc %changelog ## START: Generated by rpmautospec * Fri Jul 10 2026 Petr Menšík - 1.5.2-55 - Provide fake sover to avoid conflict with latest protobuf-c * Thu Jul 09 2026 Petr Menšík - 1.5.2-54 - Switch wrong obsoletes to explicit conflicts * Thu Jul 09 2026 Petr Menšík - 1.5.2-53 - Use fixed version for Obsoletes * Thu Jul 09 2026 Petr Menšík - 1.5.2-52 - Provide and obsolete also previous subpackages * Mon May 18 2026 Miroslav Suchý - 1.5.2-51 - simplify buildrequires * Thu May 14 2026 Miroslav Suchý - 1.5.2-50 - initial packaging of compat package ## END: Generated by rpmautospec