diff --git a/protobuf-c.spec b/protobuf-c.spec new file mode 100644 index 0000000000000000000000000000000000000000..d4358452ebec1e7bbd534a1b7a6024e9e89fc143 --- /dev/null +++ b/protobuf-c.spec @@ -0,0 +1,55 @@ +Name: protobuf-c +Version: 1.3.2 +Release: 2 +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} + +%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 +* Fri Feb 14 2020 Senlin Xia - 1.3.2-2 +- Package init diff --git a/v1.3.2.tar.gz b/v1.3.2.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..5b402501b5619e9b41ca80e2f525ef6fa4009b6d Binary files /dev/null and b/v1.3.2.tar.gz differ