[packages/protobuf-c] - initial; fc based
arekm
arekm at pld-linux.org
Mon Nov 25 19:12:36 CET 2013
commit 68eba5018067faec3bb79819b25cbffc8efc19d1
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Mon Nov 25 19:12:24 2013 +0100
- initial; fc based
protobuf-c.spec | 64 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 64 insertions(+)
---
diff --git a/protobuf-c.spec b/protobuf-c.spec
new file mode 100644
index 0000000..0cb94c2
--- /dev/null
+++ b/protobuf-c.spec
@@ -0,0 +1,64 @@
+#
+%bcond_with tests
+#
+Summary: C bindings for Google's Protocol Buffers
+Name: protobuf-c
+Version: 0.15
+Release: 1
+License: ASL 2.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
+BuildRequires: protobuf-devel
+
+%description
+Protocol Buffers are a way of encoding structured data in an efficient
+yet extensible format. This package provides a code generator and
+run-time libraries to use Protocol Buffers from pure C (not C++).
+
+It uses a modified version of protoc called protoc-c.
+
+%package devel
+Summary: Protocol Buffers C headers and libraries
+Group: Development/Libraries
+Requires: %{name} = %{version}-%{release}
+
+%description devel
+This package contains protobuf-c headers and libraries.
+
+%prep
+%setup -q
+
+%build
+%configure \
+ --disable-static
+%{__make}
+
+%{?with_tests:%{__make} check}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+%{__make} install \
+ DESTDIR=$RPM_BUILD_ROOT
+
+rm -f $RPM_BUILD_ROOT/%{_libdir}/libprotobuf-c.la
+
+%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.*.*.*
+
+%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/68eba5018067faec3bb79819b25cbffc8efc19d1
More information about the pld-cvs-commit
mailing list