Merge "Adding L2GW Scenario"
[apex.git] / build / rpm_specs / c_capnproto.spec
1 Name:           c-capnproto
2 Version:        0.1
3 Release:        0
4 Summary:        C library/compiler for the Cap'n Proto serialization/RPC protocol
5
6 Group:          System Environment
7 License:        Apache 2.0
8 URL:            https://gerrit.opnfv.org/gerrit/apex.git
9 Source0:        %{name}-%{version}.tar.gz
10
11 Provides:   c_capnproto
12
13 %description
14 C library/compiler for the Cap'n Proto serialization/RPC protocol
15
16 %prep
17 %setup -q
18
19 %build
20 %configure --without-gtest
21
22 %install
23 rm -rf $RPM_BUILD_ROOT
24 %make_install
25 find %{buildroot} -name '*.la' -exec rm -f {} ';'
26 find %{buildroot} -name '*.a' -exec rm -f {} ';'
27 mkdir -p $RPM_BUILD_ROOT/%{_includedir}/c-capnproto/
28 # These are the headers/libs quagga/zrpcd link against
29 install -m 700 $RPM_BUILD_ROOT/%{_includedir}/capn.h $RPM_BUILD_ROOT/%{_includedir}/c-capnproto/
30 install -m 700 $RPM_BUILD_ROOT/%{_libdir}/libcapn.so $RPM_BUILD_ROOT/%{_libdir}/libcapn_c.so
31
32 %files
33 %defattr(644,root,root)
34 %{_bindir}/capnpc-c
35 %{_includedir}/capn.h
36 %{_includedir}/c-capnproto/capn.h
37 %{_libdir}/libcapn.so*
38 %{_libdir}/libcapn_c.so
39
40 %post -p /sbin/ldconfig
41 %postun -p /sbin/ldconfig
42
43 %changelog
44 * Mon Jan 23 2017 Tim Rozet <trozet@redhat.com> - 1.0-1
45 - Initial version