blob: 2d95494cc072217dcf0a9f3ad5dd200b85a0f2c0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
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
|