1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
|
#
# Conditional build:
%bcond_with tests # build with tests
Summary: C bindings for Google's Protocol Buffers
Summary(pl.UTF-8): Wiązania C do biblioteki Google Protocol Buffers
Name: protobuf-c
Version: 1.0.2
Release: 2
License: Apache v2.0
Group: Libraries
Source0: https://github.com/protobuf-c/protobuf-c/archive/v%{version}/%{name}-%{version}.tar.gz
# Source0-md5: fdd242b3380005dc9a7d2f88e9f66a3a
URL: https://github.com/protobuf-c/protobuf-c
BuildRequires: autoconf >= 2.64
BuildRequires: automake >= 1:1.11
BuildRequires: doxygen
BuildRequires: libstdc++-devel
BuildRequires: libtool >= 2:2
BuildRequires: pkgconfig
BuildRequires: protobuf-devel >= 2.5.0
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%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.
%description -l pl.UTF-8
Bufory protokołowe (Protocol Buffers) to sposób kodowania danych
strukturalnych w wydajny i rozszerzalny sposób. Ten pakiet dostarcza
generator kodu oraz biblioteki uruchomieniowe pozwalające na używanie
buforów protokołowych z czystego języka C (nie C++).
Wykorzystuje zmodyfikowaną wersję protoc o nazwie protoc-c.
%package devel
Summary: Protocol Buffers C header files
Summary(pl.UTF-8): Pliki nagłówkowe C biblioteki Protocol Buffers
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
%description devel
This package contains protobuf-c header files.
%description devel -l pl.UTF-8
Ten pakiet zawiera pliki nagłówkowe protobuf-c.
%package static
Summary: Static protobuf-c library
Summary(pl.UTF-8): Statyczna biblioteka protobuf-c
Group: Development/Libraries
Requires: %{name}-devel = %{version}-%{release}
%description static
Static protobuf-c library.
%description static -l pl.UTF-8
Statyczna biblioteka protobuf-c.
%prep
%setup -q
%build
%{__libtoolize}
%{__aclocal} -I m4
%{__autoconf}
%{__autoheader}
%{__automake}
%configure \
--disable-silent-rules
%{__make}
%{?with_tests:%{__make} check}
%install
rm -rf $RPM_BUILD_ROOT
%{__make} install \
DESTDIR=$RPM_BUILD_ROOT
%{__rm} $RPM_BUILD_ROOT%{_libdir}/libprotobuf-c.la
%clean
rm -rf $RPM_BUILD_ROOT
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(644,root,root,755)
%doc ChangeLog LICENSE README.md TODO
%attr(755,root,root) %{_bindir}/protoc-c
%attr(755,root,root) %{_libdir}/libprotobuf-c.so.*.*.*
%attr(755,root,root) %ghost %{_libdir}/libprotobuf-c.so.1
%files devel
%defattr(644,root,root,755)
%attr(755,root,root) %{_libdir}/libprotobuf-c.so
# XXX: dir shared with libtcmalloc and protobuf
%dir %{_includedir}/google
%{_includedir}/google/protobuf-c
%{_includedir}/protobuf-c
%{_pkgconfigdir}/libprotobuf-c.pc
%files static
%defattr(644,root,root,755)
%{_libdir}/libprotobuf-c.a
|