3 # - add bindings for java and python
4 # - add vim syntax package
6 Summary: Protocol Buffers - Google's data interchange format
7 Summary(pl.UTF-8): Protocol Buffers - format wymiany danych Google
13 Source0: http://protobuf.googlecode.com/files/%{name}-%{version}.tar.bz2
14 # Source0-md5: 37e6e4d63434672c70bd977be9c372cb
15 URL: http://code.google.com/p/protobuf/
16 Requires: %{name}-libs = %{version}-%{release}
17 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20 Protocol buffers are a flexible, efficient, automated mechanism
21 for serializing structured data - similar to XML, but smaller,
22 faster, and simpler. You define how you want your data to be
23 structured once, then you can use special generated source code
24 to easily write and read your structured data to and from
25 a variety of data streams and using a variety of languages.
26 You can even update your data structure without breaking deployed
27 programs that are compiled against the "old" format.
29 Google uses Protocol Buffers for almost all of its internal RPC
30 protocols and file formats.
32 %description -l pl.UTF-8
33 Bufory protokołowe to elastyczny, wydajny i zautomatyzowany sposób
34 serializacji danych strukturalnych - podobny do XML-a, ale mniejszy,
35 szybszy i prostszy. Definiuje się raz, jaką strukturę mają mieć dane,
36 a następnie używa specjalnie wygenerowanego kodu źródłowego do łatwego
37 zapisu i odczytu danych strukturalnych do i z różnych strumieni
38 danych, z poziomu różnych języków. Można nawet uaktualniać strukturę
39 danych bez psucia programów skompilowanych w oparciu o "stary" format.
41 Google używa buforów protokołowych (Protocol Buffers) do prawie
42 wszystkich wewnętrznych protokołów RPC i formatów plików.
45 Summary: protobuf libraries
46 Summary(pl.UTF-8): Biblioteki protobuf
52 %description libs -l pl.UTF-8
56 Summary: Header files for protobuf libraries
57 Summary(pl.UTF-8): Pliki nagłówkowe bibliotek protobuf
58 Group: Development/Libraries
59 Requires: %{name}-libs = %{version}-%{release}
62 Header files for protobuf libraries.
64 %description devel -l pl.UTF-8
65 Pliki nagłówkowe bibliotek protobuf.
68 Summary: Static protobuf libraries
69 Summary(pl.UTF-8): Statyczne biblioteki protobuf
70 Group: Development/Libraries
71 Requires: %{name}-devel = %{version}-%{release}
74 Static protobuf libraries.
76 %description static -l pl.UTF-8
77 Statyczne biblioteki protobuf.
87 rm -rf $RPM_BUILD_ROOT
88 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
91 DESTDIR=$RPM_BUILD_ROOT
93 install examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
96 rm -rf $RPM_BUILD_ROOT
98 %post libs -p /sbin/ldconfig
99 %postun libs -p /sbin/ldconfig
102 %defattr(644,root,root,755)
103 %doc CHANGES.txt CONTRIBUTORS.txt README.txt
104 %attr(755,root,root) %{_bindir}/protoc
107 %defattr(644,root,root,755)
108 %attr(755,root,root) %{_libdir}/libproto*.so.*.*.*
109 %attr(755,root,root) %ghost %{_libdir}/libprotobuf.so.3
110 %attr(755,root,root) %ghost %{_libdir}/libprotoc.so.3
113 %defattr(644,root,root,755)
114 %{_includedir}/google
115 %attr(755,root,root) %{_libdir}/libproto*.la
116 %attr(755,root,root) %{_libdir}/libproto*.so
117 %{_examplesdir}/%{name}-%{version}
120 %defattr(644,root,root,755)
121 %attr(755,root,root) %{_libdir}/libproto*.a