]> git.pld-linux.org Git - packages/protobuf-c.git/commitdiff
- pl, cleanups
authorJakub Bogusz <qboosh@pld-linux.org>
Tue, 15 Apr 2014 19:06:24 +0000 (21:06 +0200)
committerJakub Bogusz <qboosh@pld-linux.org>
Tue, 15 Apr 2014 19:06:24 +0000 (21:06 +0200)
protobuf-c.spec

index 92abcef01b2d754f5c714cea0172521ff6983373..21249f24cbfd140528333a286d1d7d1fce44360a 100644 (file)
@@ -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
This page took 0.078888 seconds and 4 git commands to generate.