!1 package init

Merge pull request !1 from small_leek/add-proto
This commit is contained in:
openeuler-ci-bot 2020-02-14 20:31:47 +08:00 committed by Gitee
commit 66d138daf0
2 changed files with 55 additions and 0 deletions

55
protobuf-c.spec Normal file
View File

@ -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 <xiasenlin1@huawei.com> - 1.3.2-2
- Package init

BIN
v1.3.2.tar.gz Normal file

Binary file not shown.