summaryrefslogtreecommitdiffstats
path: root/build/rpm_specs/c_capnproto.spec
blob: 2d95494cc072217dcf0a9f3ad5dd200b85a0f2c0 (plain)
1
2
3
4
5
6
7

@media only all and (prefers-color-scheme: dark) {
.highlight .hll { background-color: #49483e }
.highlight .c { color: #75715e } /* Comment */
.highlight .err { color: #960050; background-color: #1e0010 } /* Error */
.highlight .k { color: #66d9ef } /* Keyword */
.highlight .l { color: #ae81ff } /* Literal */
.highlight .n { color: #f8f8f2 } /* Name */
.highlight .o { color: #f92672 } /* Operator */
.highlight .p { color: #f8f8f2 } /* Punctuation */
.highlight .ch { color: #75715e } /* Comment.Hashbang */
.highlight .cm { color: #75715e } /* Comment.Multiline */
.highlight .cp { color: #75715e } /* Comment.Preproc */
.highlight .cpf { color: #75715e } /* Comment.PreprocFile */
.highlight .c1 { color: #75715e } /* Comment.Single */
.highlight .cs { color: #75715e } /* Comment.Special */
.highlight .gd { color: #f92672 } /* Generic.Deleted */
.highlight .ge { font-style: italic } /* Generic.Emph */
.highlight .gi { color: #a6e22e } /* Generic.Inserted */
.highlight .gs { font-weight: bold } /* Generic.Strong */
.highlight .gu { color: #75715e } /* Generic.Subheading */
.highlight .kc { color: #66d9ef } /* Keyword.Constant */
.highlight .kd { color: #66d9ef } /* Keyword.Declaration */
Name:           c-capnproto
Version:        0.1
Release:        0
Summary:        C library/compiler for the Cap'n Proto serialization/RPC protocol

Group:          System Environment
License:        Apache 2.0
URL:            https://gerrit.opnfv.org/gerrit/apex.git
Source0:        %{name}-%{version}.tar.gz

Provides:   c_capnproto

%description
C library/compiler for the Cap'n Proto serialization/RPC protocol

%prep
%setup -q

%build
%configure --without-gtest

%install
rm -rf $RPM_BUILD_ROOT
%make_install
find %{buildroot} -name '*.la' -exec rm -f {} ';'
find %{buildroot} -name '*.a' -exec rm -f {} ';'
mkdir -p $RPM_BUILD_ROOT/%{_includedir}/c-capnproto/
# These are the headers/libs quagga/zrpcd link against
install -m 700 $RPM_BUILD_ROOT/%{_includedir}/capn.h $RPM_BUILD_ROOT/%{_includedir}/c-capnproto/
install -m 700 $RPM_BUILD_ROOT/%{_libdir}/libcapn.so $RPM_BUILD_ROOT/%{_libdir}/libcapn_c.so

%files
%defattr(644,root,root)
%{_bindir}/capnpc-c
%{_includedir}/capn.h
%{_includedir}/c-capnproto/capn.h
%{_libdir}/libcapn.so*
%{_libdir}/libcapn_c.so

%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig

%changelog
* Mon Jan 23 2017 Tim Rozet <trozet@redhat.com> - 1.0-1
- Initial version