protobuf-c/protobuf-c.spec
2023-04-20 20:04:02 +08:00

77 lines
1.9 KiB
RPMSpec

Name: protobuf-c
Version: 1.3.2
Release: 5
Summary: This is protobuf-c, a C implementation of the Google Protocol Buffers data serialization format
License: BSD
URL: https://github.com/protobuf-c/protobuf-c
Source0: https://github.com/protobuf-c/protobuf-c/archive/v%{version}.tar.gz
BuildRequires: autoconf automake libtool gcc-c++ pkgconfig(protobuf)
Provides: %{name}-compiler = %{version}-%{release}
Obsoletes: %{name}-compiler < %{version}-%{release}
Patch6000: backport-0001-Fix-issue-499-unsigned-integer-overflow.patch
Patch6001: backport-0002-Fix-regression-with-zero-length-messages-introduced-.patch
%description
This is protobuf-c, a C implementation of the Google Protocol Buffers data serialization format.
%package devel
Summary: Development files for protobuf-c library
Requires: %{name} = %{version}-%{release} %{name}-compiler = %{version}-%{release}
%description devel
Protobuf-c-devel contains development files for protobuf-c.
%prep
%autosetup -n %{name}-%{version} -p1
%build
autoreconf -ifv
%configure --disable-static
%make_build
%check
make check
%install
%make_install
%delete_la
%post
/sbin/ldconfig
%postun
/sbin/ldconfig
%files
%doc TODO LICENSE ChangeLog
%{_libdir}/libprotobuf-c.so.*
%{_bindir}/{protoc-c,protoc-gen-c}
%files devel
%dir %{_includedir}/google
%{_includedir}/{google/protobuf-c/,protobuf-c/}
%{_libdir}/{libprotobuf-c.so,pkgconfig/libprotobuf-c.pc}
%changelog
* Thu Apr 20 2023 zhoujie <zhoujie133@huawei.com> - 1.3.2-5
- Type:bugfix
- ID:NA
- SUG:NA
- DESC: fix unsigned inter overflow
* Wed Nov 24 2021 wujing <wujing50@huawei.com> - 1.3.2-4
- Type:upgrade
- ID:NA
- SUG:NA
- DESC: upgrade to new version
* Fri Aug 21 2020 fanjiachen <fanjiachen3@huawei.com> - 1.3.2-3
- Type:rebuild
- ID:NA
- SUG:NA
- DESC:rebuild for requirement package update
* Fri Feb 14 2020 Senlin Xia <xiasenlin1@huawei.com> - 1.3.2-2
- Package init