[packages/protobuf-c] - pl, cleanups

qboosh qboosh at pld-linux.org
Tue Apr 15 21:04:28 CEST 2014


commit 7b46e4770b23a49c224e707a2d8c3b495426a459
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Tue Apr 15 21:06:24 2014 +0200

    - pl, cleanups

 protobuf-c.spec | 47 ++++++++++++++++++++++++++++++++++++++++-------
 1 file changed, 40 insertions(+), 7 deletions(-)
---
diff --git a/protobuf-c.spec b/protobuf-c.spec
index 92abcef..21249f2 100644
--- a/protobuf-c.spec
+++ b/protobuf-c.spec
@@ -3,14 +3,17 @@
 %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:	0.15
 Release:	2
 License:	Apache v2.0
 Group:		Libraries
+#Source0Download: http://code.google.com/p/protobuf-c/downloads/list
 Source0:	http://protobuf-c.googlecode.com/files/%{name}-%{version}.tar.gz
 # Source0-md5:	73ff0c8df50d2eee75269ad8f8c07dc8
 URL:		http://code.google.com/p/protobuf-c/
+BuildRequires:	libstdc++-devel
 BuildRequires:	protobuf-devel
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -21,20 +24,44 @@ 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 headers and libraries
+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 headers and libraries.
+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
-%configure \
-	--disable-static
+%configure
+
 %{__make}
 
 %{?with_tests:%{__make} check}
@@ -44,7 +71,7 @@ rm -rf $RPM_BUILD_ROOT
 %{__make} install \
 	DESTDIR=$RPM_BUILD_ROOT
 
-%{__rm} $RPM_BUILD_ROOT/%{_libdir}/libprotobuf-c.la
+%{__rm} $RPM_BUILD_ROOT%{_libdir}/libprotobuf-c.la
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -54,7 +81,7 @@ rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc TODO ChangeLog
+%doc ChangeLog README 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.0
@@ -62,5 +89,11 @@ rm -rf $RPM_BUILD_ROOT
 %files devel
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_libdir}/libprotobuf-c.so
-%{_includedir}/google
+# XXX: dir shared with libtcmalloc and protobuf
+%dir %{_includedir}/google
+%{_includedir}/google/protobuf-c
 %{_pkgconfigdir}/libprotobuf-c.pc
+
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/libprotobuf-c.a
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/protobuf-c.git/commitdiff/7b46e4770b23a49c224e707a2d8c3b495426a459



More information about the pld-cvs-commit mailing list