-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathopentestpoint-probe-iptraffic.spec.in
68 lines (51 loc) · 1.26 KB
/
opentestpoint-probe-iptraffic.spec.in
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
%global __brp_check_rpaths %{nil}
%define source_date_epoch_from_changelog 0
Summary: OpenTestPoint IPTraffic Probe
Name: opentestpoint-probe-iptraffic
Version: @VERSION@
Release: 1%{?dist}
License: BSD
Group: Applications/System
URL: http://adjacentlink.com
Source0: %{name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
BuildRequires: libxml2-devel protobuf-devel
Vendor: Adjacent Link LLC
Requires: libxml2 protobuf opentestpoint python3-opentestpoint
BuildRequires: python3
%description
OpenTestPoint IPTraffic Probe
%package protos
Summary: OpenTestPoint IPTraffic Probe protobuf specifications
Group: Applications/System
BuildArch: noarch
%description protos
OpenTestPoint IPTraffic Probe protobuf specifications
%global debug_package %{nil}
%prep
%setup -q
%build
%configure
make
%install
make DESTDIR=${RPM_BUILD_ROOT} install
find ${RPM_BUILD_ROOT} -name '*.a' -exec rm '{}' \;
find ${RPM_BUILD_ROOT} -name '*.la' -exec rm '{}' \;
%clean
rm -rf $RPM_BUILD_ROOT
%post
/sbin/ldconfig
%postun
/sbin/ldconfig
%files
%defattr(-,root,root,-)
%{_libdir}/*
%{python3_sitelib}/*
%doc AUTHORS
%doc COPYING
%doc NEWS
%doc README
%doc INSTALL
%files protos
%defattr(-,root,root,-)
%doc %{_datadir}/opentestpoint-probe-iptraffic/proto/*.proto