summaryrefslogtreecommitdiffstats
path: root/build/rpm_specs/zrpc.spec
blob: a8dd3b75cdd3eab02647db70b7f52aedebeebd5e (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
46
Name: zrpcd
Version: 0.2
Release: 0

Summary: Zebra Remote Procedure Call
Group: Applications/Internet
License: GPL
Source0: %{name}-%{version}.tar.gz
Source1: zrpcd.service

BuildRequires:  systemd-units

Requires: thrift zeromq glib2 c-capnproto capnproto quagga
Requires(post): systemd
Requires(preun): systemd
Requires(postun): systemd
%description
ZRPC provides a Thrift API and handles RPC to configure Quagga framework.

%prep
%setup -q

%build

%configure

%install
mkdir -p %{buildroot}%{_unitdir}
install -p -D -m 644 %{SOURCE1} %{buildroot}%{_unitdir}/zrpcd.service
%make_install

%post
%systemd_post zrpcd.service

%preun
%systemd_preun zrpcd.service

%postun
%systemd_postun_with_restart zrpcd.service

%files
%defattr(-,root,root)
%{_sbindir}/zrpcd
%{_includedir}/%name/zrpc_global.h
%{_includedir}/%name/zrpc_os_wrapper.h
%{_unitdir}/zrpcd.service