]> git.pld-linux.org Git - packages/protobuf-c.git/blame - protobuf-c.spec
- release 4 (protobuf 3.13)
[packages/protobuf-c.git] / protobuf-c.spec
CommitLineData
68eba501 1#
e2ca71dc 2# Conditional build:
6a35030c 3%bcond_without tests # build with tests
e2ca71dc 4
68eba501 5Summary: C bindings for Google's Protocol Buffers
7b46e477 6Summary(pl.UTF-8): Wiązania C do biblioteki Google Protocol Buffers
68eba501 7Name: protobuf-c
15191d17 8Version: 1.3.3
22c9be39 9Release: 4
e2ca71dc 10License: Apache v2.0
68eba501 11Group: Libraries
45a08926 12#Source0Download: https://github.com/protobuf-c/protobuf-c/releases
8a83ddb4 13Source0: https://github.com/protobuf-c/protobuf-c/archive/v%{version}/%{name}-%{version}.tar.gz
15191d17 14# Source0-md5: 16a79ce1f6e168c1b3ed41175ba57ee5
8a83ddb4
JB
15URL: https://github.com/protobuf-c/protobuf-c
16BuildRequires: autoconf >= 2.64
17BuildRequires: automake >= 1:1.11
18BuildRequires: doxygen
45a08926 19BuildRequires: libstdc++-devel >= 6:4.7
8a83ddb4
JB
20BuildRequires: libtool >= 2:2
21BuildRequires: pkgconfig
b13753a0
JB
22BuildRequires: protobuf-devel >= 2.6.0
23Requires: protobuf >= 2.6.0
e2ca71dc 24BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
68eba501
AM
25
26%description
27Protocol Buffers are a way of encoding structured data in an efficient
28yet extensible format. This package provides a code generator and
29run-time libraries to use Protocol Buffers from pure C (not C++).
30
31It uses a modified version of protoc called protoc-c.
32
7b46e477
JB
33%description -l pl.UTF-8
34Bufory protokołowe (Protocol Buffers) to sposób kodowania danych
35strukturalnych w wydajny i rozszerzalny sposób. Ten pakiet dostarcza
36generator kodu oraz biblioteki uruchomieniowe pozwalające na używanie
37buforów protokołowych z czystego języka C (nie C++).
38
39Wykorzystuje zmodyfikowaną wersję protoc o nazwie protoc-c.
40
68eba501 41%package devel
7b46e477
JB
42Summary: Protocol Buffers C header files
43Summary(pl.UTF-8): Pliki nagłówkowe C biblioteki Protocol Buffers
68eba501
AM
44Group: Development/Libraries
45Requires: %{name} = %{version}-%{release}
46
47%description devel
7b46e477
JB
48This package contains protobuf-c header files.
49
50%description devel -l pl.UTF-8
51Ten pakiet zawiera pliki nagłówkowe protobuf-c.
52
53%package static
54Summary: Static protobuf-c library
55Summary(pl.UTF-8): Statyczna biblioteka protobuf-c
56Group: Development/Libraries
57Requires: %{name}-devel = %{version}-%{release}
58
59%description static
60Static protobuf-c library.
61
62%description static -l pl.UTF-8
63Statyczna biblioteka protobuf-c.
68eba501
AM
64
65%prep
66%setup -q
67
68%build
8a83ddb4
JB
69%{__libtoolize}
70%{__aclocal} -I m4
71%{__autoconf}
72%{__autoheader}
73%{__automake}
74%configure \
75 --disable-silent-rules
7b46e477 76
68eba501
AM
77%{__make}
78
79%{?with_tests:%{__make} check}
80
81%install
82rm -rf $RPM_BUILD_ROOT
83%{__make} install \
84 DESTDIR=$RPM_BUILD_ROOT
85
7b46e477 86%{__rm} $RPM_BUILD_ROOT%{_libdir}/libprotobuf-c.la
e2ca71dc
ER
87
88%clean
89rm -rf $RPM_BUILD_ROOT
68eba501 90
e2ca71dc
ER
91%post -p /sbin/ldconfig
92%postun -p /sbin/ldconfig
68eba501
AM
93
94%files
95%defattr(644,root,root,755)
8a83ddb4 96%doc ChangeLog LICENSE README.md TODO
68eba501 97%attr(755,root,root) %{_bindir}/protoc-c
53df6cfc 98%attr(755,root,root) %{_bindir}/protoc-gen-c
68eba501 99%attr(755,root,root) %{_libdir}/libprotobuf-c.so.*.*.*
8a83ddb4 100%attr(755,root,root) %ghost %{_libdir}/libprotobuf-c.so.1
68eba501
AM
101
102%files devel
103%defattr(644,root,root,755)
104%attr(755,root,root) %{_libdir}/libprotobuf-c.so
7b46e477
JB
105# XXX: dir shared with libtcmalloc and protobuf
106%dir %{_includedir}/google
107%{_includedir}/google/protobuf-c
8a83ddb4 108%{_includedir}/protobuf-c
68eba501 109%{_pkgconfigdir}/libprotobuf-c.pc
7b46e477
JB
110
111%files static
112%defattr(644,root,root,755)
113%{_libdir}/libprotobuf-c.a
This page took 0.083121 seconds and 4 git commands to generate.