protobuf-c/protobuf-c.spec

93 lines
3.4 KiB
RPMSpec
Raw Permalink Normal View History

Name: protobuf-c
Version: 1.5.0
Release: 2mamba
Summary: A C implementation of the Google Protocol Buffers data serialization format
Group: System/Libraries
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://github.com/protobuf-c
Source: https://github.com/protobuf-c/protobuf-c.git/v%{version}/protobuf-c-%{version}.tar.bz2
Patch0: protobuf-c-1.5.0-protobuf-26.patch
License: BSD
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libabseil-cpp-devel
BuildRequires: libgcc
BuildRequires: libprotobuf-devel
BuildRequires: libstdc++6-devel
## AUTOBUILDREQ-END
BuildRequires: libprotobuf-devel >= 28.1
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
%description
Protobuf-c is a C implementation of the Google Protocol Buffers data serialization format. It includes libprotobuf-c, a pure C library that implements protobuf encoding and decoding, and protoc-c, a code generator that converts Protocol Buffer .proto files to C descriptor code, based on the original protoc. protobuf-c formerly included an RPC implementation; that code has been split out into the protobuf-c-rpc project.
%package -n lib%{name}
Group: System/Libraries
Summary: A C implementation of the Google Protocol Buffers data serialization format
%description -n lib%{name}
Protobuf-c is a C implementation of the Google Protocol Buffers data serialization format. It includes libprotobuf-c, a pure C library that implements protobuf encoding and decoding, and protoc-c, a code generator that converts Protocol Buffer .proto files to C descriptor code, based on the original protoc. protobuf-c formerly included an RPC implementation; that code has been split out into the protobuf-c-rpc project.
This package contains shared libraries for %{name}.
%package -n lib%{name}-devel
Group: Development/Libraries
Summary: Development files for %{name}
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
Requires: pkg-config
%description -n lib%{name}-devel
This package contains libraries and header files for developing applications that use %{name}.
%debug_package
%prep
%setup -q
%patch 0 -p1 -b .protobuf-26
./autogen.sh
%build
%configure
%make
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%files -n lib%{name}
%defattr(-,root,root)
%{_libdir}/libprotobuf-c.so.*
%doc LICENSE
%files -n lib%{name}-devel
%defattr(-,root,root)
%{_bindir}/protoc-c
%{_bindir}/protoc-gen-c
%dir %{_includedir}/google/protobuf-c
%{_includedir}/google/protobuf-c/protobuf-c.h
%dir %{_includedir}/protobuf-c
%{_includedir}/protobuf-c/protobuf-c.h
%{_includedir}/protobuf-c/protobuf-c.proto
%{_libdir}/libprotobuf-c.a
%{_libdir}/libprotobuf-c.so
%{_libdir}/pkgconfig/libprotobuf-c.pc
%doc CHANGELOG.md README.md TODO
%changelog
* Wed Sep 18 2024 Silvan Calarco <silvan.calarco@mambasoft.it> 1.5.0-2mamba
- rebuilt with protobuf 28.1
* Fri Dec 01 2023 Automatic Build System <autodist@mambasoft.it> 1.5.0-1mamba
- automatic version update by autodist
* Tue Jul 12 2022 Automatic Build System <autodist@mambasoft.it> 1.4.1-1mamba
- automatic version update by autodist
* Thu Jun 24 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 1.4.0-1mamba
- package created using the webbuild interface