forked from ossobv/rtpsniff
-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathrtpsniff.spec
62 lines (50 loc) · 1.56 KB
/
rtpsniff.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
Name: rtpsniff
Version: 1.0.0
Release: 3%{?dist}
Summary: rtpsniff
Group: Networking/Utilities
License: GPLv3
URL: https://github.com/lmangani/rtpsniff
Source0: https://github.com/lmangani/rtpsniff/archive/master.zip
Source1: rtpsniff.init
Source2: rtpsniff.logrotate
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
BuildRequires: make, unzip, libtool, gcc
Requires: logrotate
Obsoletes: rtpsniff <= %{version}
Provides: rtpsniff = %{version}
Conflicts: rtpsniff < %{version}
%description
RTPSniff is a tool to sniff RTP traffic and show stats about it.
%prep
%setup -q -n %{name}-master
%build
make MOD_OUT=out_json
%install
rm -rf %{buildroot}
make install PREFIX=%{buildroot}/usr/local
install -d %{buildroot}/etc/init.d
install -d %{buildroot}/etc/logrotate.d
cp %{SOURCE1} %{buildroot}/etc/init.d/rtpsniff
cp %{SOURCE2} %{buildroot}/etc/logrotate.d/rtpsniff
%clean
rm -rf %{buildroot}
%post
/sbin/ldconfig /usr/local/lib/
%postun
/sbin/ldconfig /usr/local/lib/
%preun
%files
%attr(644,root,root)/usr/local/lib/libslowpoll.so
%attr(755,root,root)/usr/local/sbin/rtpsniff
%attr(755,root,root)/etc/init.d/rtpsniff
%attr(644,root,root)/etc/logrotate.d/rtpsniff
%defattr(-,root,root,-)
%doc
%changelog
* Mon Jan 09 2017 Karsten Horsmann <[email protected]> - 1.0.0-3
- ldconfig with /usr/local/lib path in post/un rpm run
* Fri Jan 06 2017 Karsten Horsmann <[email protected]> - 1.0.0-2
- added initscript and logrotate
* Thu Jan 05 2017 Karsten Horsmann <[email protected]> - 1.0.0
- First spec file for CentOS builds, tested on CentOS 6.x