[packages/protobuf-c] pldize, adapter

glen glen at pld-linux.org
Mon Nov 25 22:16:29 CET 2013


commit e2ca71dc73b86d138d3b5262c8768ac1c920f190
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Mon Nov 25 23:16:21 2013 +0200

    pldize, adapter

 protobuf-c.spec | 24 +++++++++++++-----------
 1 file changed, 13 insertions(+), 11 deletions(-)
---
diff --git a/protobuf-c.spec b/protobuf-c.spec
index 0cb94c2..508a13d 100644
--- a/protobuf-c.spec
+++ b/protobuf-c.spec
@@ -1,16 +1,18 @@
 #
-%bcond_with	tests
-#
+# Conditional build:
+%bcond_with	tests		# build with tests
+
 Summary:	C bindings for Google's Protocol Buffers
 Name:		protobuf-c
 Version:	0.15
 Release:	1
-License:	ASL 2.0
+License:	Apache v2.0
 Group:		Libraries
-URL:		http://code.google.com/p/protobuf-c/
 Source0:	http://protobuf-c.googlecode.com/files/%{name}-%{version}.tar.gz
 # Source0-md5:	73ff0c8df50d2eee75269ad8f8c07dc8
+URL:		http://code.google.com/p/protobuf-c/
 BuildRequires:	protobuf-devel
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
 Protocol Buffers are a way of encoding structured data in an efficient
@@ -42,23 +44,23 @@ rm -rf $RPM_BUILD_ROOT
 %{__make} install \
 	DESTDIR=$RPM_BUILD_ROOT
 
-rm -f $RPM_BUILD_ROOT/%{_libdir}/libprotobuf-c.la
+%{__rm} $RPM_BUILD_ROOT/%{_libdir}/libprotobuf-c.la
+
+%clean
+rm -rf $RPM_BUILD_ROOT
 
-%post -p /sbin/ldconfig
-%postun -p /sbin/ldconfig
+%post	-p /sbin/ldconfig
+%postun	-p /sbin/ldconfig
 
 %files
 %defattr(644,root,root,755)
 %doc TODO ChangeLog
 %attr(755,root,root) %{_bindir}/protoc-c
-%attr(755,root,root) %{_libdir}/libprotobuf-c.so.0
 %attr(755,root,root) %{_libdir}/libprotobuf-c.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libprotobuf-c.so.0
 
 %files devel
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_libdir}/libprotobuf-c.so
 %{_includedir}/google
 %{_pkgconfigdir}/libprotobuf-c.pc
-
-%clean
-rm -rf $RPM_BUILD_ROOT
================================================================

---- gitweb:

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



More information about the pld-cvs-commit mailing list