packages: protobuf/protobuf.spec - add -lite subpackage, move compiler rela...
glen
glen at pld-linux.org
Sun Apr 29 22:55:12 CEST 2012
Author: glen Date: Sun Apr 29 20:55:12 2012 GMT
Module: packages Tag: HEAD
---- Log message:
- add -lite subpackage, move compiler related lib to base pkg; update BR
---- Files affected:
packages/protobuf:
protobuf.spec (1.9 -> 1.10)
---- Diffs:
================================================================
Index: packages/protobuf/protobuf.spec
diff -u packages/protobuf/protobuf.spec:1.9 packages/protobuf/protobuf.spec:1.10
--- packages/protobuf/protobuf.spec:1.9 Sun Apr 29 22:24:59 2012
+++ packages/protobuf/protobuf.spec Sun Apr 29 22:55:07 2012
@@ -1,9 +1,8 @@
# $Revision$, $Date$
-#
# TODO:
# - add bindings for java and python
# - add vim syntax package
-#
+
Summary: Protocol Buffers - Google's data interchange format
Summary(pl.UTF-8): Protocol Buffers - format wymiany danych Google
Name: protobuf
@@ -12,25 +11,32 @@
License: BSD
Group: Libraries
Source0: http://protobuf.googlecode.com/files/%{name}-%{version}.tar.bz2
-# Source0-md5: ed436802019c9e1f40cc750eaf78f318
+# Source0-md5: 79a8072490f863139f32488c3ff84d39
URL: http://code.google.com/p/protobuf/
+BuildRequires: autoconf
+BuildRequires: automake
BuildRequires: libstdc++-devel
-BuildRequires: rpm-pythonprov
+BuildRequires: libtool
+BuildRequires: pkgconfig
+BuildRequires: zlib-devel
Requires: %{name}-libs = %{version}-%{release}
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
-Protocol buffers are a flexible, efficient, automated mechanism
-for serializing structured data - similar to XML, but smaller,
-faster, and simpler. You define how you want your data to be
-structured once, then you can use special generated source code
-to easily write and read your structured data to and from
-a variety of data streams and using a variety of languages.
-You can even update your data structure without breaking deployed
-programs that are compiled against the "old" format.
+Protocol Buffers are a way of encoding structured data in an efficient
+yet extensible format. Google uses Protocol Buffers for almost all of
+its internal RPC protocols and file formats.
+
+Protocol buffers are a flexible, efficient, automated mechanism for
+serializing structured data – think XML, but smaller, faster, and
+simpler. You define how you want your data to be structured once, then
+you can use special generated source code to easily write and read
+your structured data to and from a variety of data streams and using a
+variety of languages. You can even update your data structure without
+breaking deployed programs that are compiled against the "old" format.
-Google uses Protocol Buffers for almost all of its internal RPC
-protocols and file formats.
+This package contains Protocol Buffers compiler for all programming
+languages
%description -l pl.UTF-8
Bufory protokołowe to elastyczny, wydajny i zautomatyzowany sposób
@@ -55,27 +61,41 @@
%description libs -l pl.UTF-8
Biblioteki protobuf.
+%package lite
+Summary: Protocol Buffers LITE_RUNTIME libraries
+Group: Development/Libraries
+
+%description lite
+Protocol Buffers built with optimize_for = LITE_RUNTIME.
+
+The "optimize_for = LITE_RUNTIME" option causes the compiler to
+generate code which only depends libprotobuf-lite, which is much
+smaller than libprotobuf but lacks descriptors, reflection, and some
+other features.
+
%package devel
-Summary: Header files for protobuf libraries
+Summary: Protocol Buffers C++ headers and libraries
Summary(pl.UTF-8): Pliki nagłówkowe bibliotek protobuf
Group: Development/Libraries
+Requires: %{name} = %{version}-%{release}
Requires: %{name}-libs = %{version}-%{release}
Requires: libstdc++-devel
%description devel
-Header files for protobuf libraries.
+This package contains Protocol Buffers compiler for all languages and
+C++ headers and libraries
%description devel -l pl.UTF-8
Pliki nagłówkowe bibliotek protobuf.
%package static
-Summary: Static protobuf libraries
+Summary: Static development files for protobuf
Summary(pl.UTF-8): Statyczne biblioteki protobuf
Group: Development/Libraries
Requires: %{name}-devel = %{version}-%{release}
%description static
-Static protobuf libraries.
+Static libraries for Protocol Buffers
%description static -l pl.UTF-8
Statyczne biblioteki protobuf.
@@ -92,29 +112,41 @@
install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
%{__make} install \
+ STRIPBINARIES=no \
+ INSTALL="install -p" \
+ CPPROG="cp -p" \
DESTDIR=$RPM_BUILD_ROOT
-install examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+cp -p examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
%clean
rm -rf $RPM_BUILD_ROOT
+%post -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
+
%post libs -p /sbin/ldconfig
%postun libs -p /sbin/ldconfig
+%post lite -p /sbin/ldconfig
+%postun lite -p /sbin/ldconfig
+
%files
%defattr(644,root,root,755)
%doc CHANGES.txt CONTRIBUTORS.txt README.txt
%attr(755,root,root) %{_bindir}/protoc
+%attr(755,root,root) %{_libdir}/libprotoc.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libprotoc.so.7
%files libs
%defattr(644,root,root,755)
-%attr(755,root,root) %{_libdir}/libprotobuf-lite.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libprotobuf-lite.so.7
%attr(755,root,root) %{_libdir}/libprotobuf.so.*.*.*
%attr(755,root,root) %ghost %{_libdir}/libprotobuf.so.7
-%attr(755,root,root) %{_libdir}/libprotoc.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libprotoc.so.7
+
+%files lite
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libprotobuf-lite.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libprotobuf-lite.so.7
%files devel
%defattr(644,root,root,755)
@@ -141,6 +173,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.10 2012/04/29 20:55:07 glen
+- add -lite subpackage, move compiler related lib to base pkg; update BR
+
Revision 1.9 2012/04/29 20:24:59 glen
- up to 2.4.1
@@ -148,7 +183,7 @@
- Be explicit with .so.7
Revision 1.7 2011/03/18 05:32:33 aredridel
- 2.4.0a
+- 2.4.0a
Revision 1.6 2009/11/28 01:43:15 sparky
- BR: rpm-pythonprov
================================================================
---- CVS-web:
http://cvs.pld-linux.org/packages/protobuf/protobuf.spec?r1=1.9&r2=1.10
More information about the pld-cvs-commit
mailing list