forked from tiglabs/jupiter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
rpm.spec
45 lines (35 loc) · 748 Bytes
/
rpm.spec
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: jupiter
Version: %{_version}
Release: 1
Summary: jupiter load balancer
Group: none
License: MIT
URL: none
Source: jupiter-%{_version}.tar.xz
BuildRequires: kernel-devel, kernel-headers, libpcap-devel
# Requires:
%description
jupiter load balancer.
machine=%{_machine}.
%prep
%setup -q
%build
make machine=%{_machine}
%install
rm -rf %{buildroot}
make install DESTDIR=%{buildroot} \
bindir=%{_bindir} \
tooldir=%{_datadir}/jupiter/tools \
kmoddir=%{_datadir}/jupiter/kmod \
confdir=%{_sysconfdir}/jupiter \
machine=%{_machine}
%files
%{_bindir}/*
%{_datadir}/jupiter
%config %{_sysconfdir}/jupiter
%post
/sbin/ldconfig
/sbin/depmod
%postun
/sbin/ldconfig
/sbin/depmod