Summary: Protocol Buffers are a way of encoding structured data Name: protobuf Version: 2.0.0 Release: 0.1.beta%{?dist} License: ASL 2.0 URL: http://code.google.com/p/protobuf/ Group: System Environment/Libraries Source0: http://protobuf.googlecode.com/files/protobuf-2.0.0beta.tar.bz2 Source1: protobuf.pc.in Source2: ftdetect-proto.vim Patch0: protobuf-pkgconfig-autotools.patch Patch1: autogen.sh.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: automake autoconf libtool BuildRequires: pkgconfig %description 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. %package devel Summary: Headers for developing programs that will use protocol buffers Group: Development/Libraries Requires: protobuf = %{version}-%{release} Requires: pkgconfig %description devel This package contains the libraries and header files needed for developing applications that will use protocol buffers. 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. %package vim Summary: Protocol buffer syntax highlighting for vim Group: Development/Libraries Requires: protobuf = %{version}-%{release} Requires: vim-enhanced %description vim This package contains vim syntax highlighting for protocol buffers. 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. %prep %setup -q -n protobuf-2.0.0beta %patch0 -p1 %patch1 %{__cp} %{SOURCE1} . %{__chmod} 0644 examples/* %build ./autogen.sh %configure --enable-static=no %{__make} %{?_smp_mflags} %install %{__rm} -rf %{buildroot} %{__make} DESTDIR=%{buildroot} INSTALL="%{__install} -p" install find %{buildroot} -type f -name "*.la" -exec rm -f {} ';' %{__install} -m 644 -D %{SOURCE2} %{buildroot}%{_datadir}/vim/vimfiles/ftdetect/proto.vim %{__install} -m 644 -D editors/proto.vim %{buildroot}%{_datadir}/vim/vimfiles/syntax/proto.vim %clean %{__rm} -rf %{buildroot} %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %defattr(-,root,root,-) %doc CHANGES.txt CONTRIBUTORS.txt COPYING.txt README.txt %{_bindir}/protoc %{_libdir}/libprotoc.so.* %{_libdir}/libprotobuf.so.* %files devel %defattr(-,root,root,-) %{_includedir}/google/protobuf/ %{_libdir}/libprotoc.so %{_libdir}/libprotobuf.so %{_libdir}/pkgconfig/protobuf.pc %doc examples/ %files vim %defattr(-,root,root,-) %{_datadir}/vim/vimfiles/ftdetect/proto.vim %{_datadir}/vim/vimfiles/syntax/proto.vim %changelog * Wed Aug 13 2008 Rick L Vinyard Jr - 2.0.0-0.1.beta - Initial version