Name: capnproto Version: 0.4.0 Release: 3%{?dist} Summary: A data interchange format and capability-based RPC system License: BSD URL: http://capnproto.org/ Source0: http://capnproto.org/%{name}-c++-%{version}.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}-tools package contains the schema compiler and command-line encoder/decoder tool for %{name}. %prep %setup -q -n %{name}-c++-%{version} %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 a simple test, and that test needs to be able to find the # just-built libraries. LD_LIBRARY_PATH="$(pwd)/.libs:$(pwd)/gtest/lib/.libs" make %{?_smp_mflags} %check LD_LIBRARY_PATH="$(pwd)/.libs:$(pwd)/gtest/lib/.libs" make %{?_smp_mflags} check %install %make_install find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';' %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %doc LICENSE.txt %doc README.txt %{_libdir}/*%{version}.so %files devel %{_includedir}/* %{_libdir}/libcapnpc.so %{_libdir}/libcapnp.so %{_libdir}/libcapnp-rpc.so %{_libdir}/libkj.so %{_libdir}/libkj-async.so %{_libdir}/pkgconfig/*.pc %files tools %{_bindir}/capnp %{_bindir}/capnpc %{_bindir}/capnpc-c++ %{_bindir}/capnpc-capnp %changelog * Mon Dec 30 2013 Andy Lutomirski - 0.4.0-3 - Add tests - Rename to capnproto (instead of capnproto-c++) - Minor cleanups * Thu Dec 12 2013 Andy Lutomirski - 0.4.0-2 - Update to 0.4.0 - Minor fixes * Tue Dec 10 2013 Andy Lutomirski - 0.4.0-1.rc1 - Initial version (incorrectly called 0.4.0_rc1-1