Name: capnproto-c++ Version: 0.4.0_rc1 Release: 1%{?dist} Summary: A data interchange format and capability-based RPC system License: BSD URL: http://capnproto.org/ Source0: http://capnproto.org/%{name}-0.4.0-rc1.tar.gz %description Cap’n Proto is an insanely fast data interchange format and capability-based RPC system. Think JSON, except binary. Or think Protocol Buffers, except faster. In fact, in benchmarks, Cap’n Proto is INFINITY TIMES faster than Protocol Buffers. %package devel Summary: Development files for %{name} Requires: %{name}%{?_isa} = %{version}-%{release} %description devel The %{name}-devel package contains libraries and header files for developing applications that use %{name}. %package tools Summary: Command-line tools for %{name}, often needed for development Requires: %{name}%{?_isa} = %{version}-%{release} %description tools The %{name}-devel package contains the schema compiler and command-line encoder/decoder tool for %{name}. %prep %setup -q -n capnproto-c++-0.4.0-rc1 %build %configure --disable-static sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool # Make runs tests, and the tests can't find the just-built libraries when # rpath is suppressed. Adding the .libs directory to LD_LIBRARY_PATH # lets the tests pass. LD_LIBRARY_PATH="`/bin/pwd`/.libs" make %{?_smp_mflags} %install %make_install find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';' %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %doc LICENSE.txt README.txt %{_libdir}/*0.4.0-rc1*.so %files devel %doc %{_includedir}/* %{_libdir}/libcapnpc.so %{_libdir}/libcapnp.so %{_libdir}/libcapnp-rpc.so %{_libdir}/libkj.so %{_libdir}/libkj-async.so %files tools %doc %{_bindir}/capnp %{_bindir}/capnpc %{_bindir}/capnpc-c++ %{_bindir}/capnpc-capnp %changelog * Wed Dec 11 2013 Andy Lutomirski - 0.4.0_rc1-1 - Initial version