forked from sipcapture/homer-ui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
homer-ui.spec.in
72 lines (62 loc) · 2.05 KB
/
homer-ui.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
67
68
69
70
71
72
# Definitions
%define debug_package %{nil}
%if %{_vendor} == suse
%define webroot %{_prefix}/srv/sipcapture/htdocs
%else # CentOS/Fedora
%define webroot %{_localstatedir}/www/sipcapture/htdocs
%define webuser apache
%define webgroup apache
%endif
%if 0%{?rhel} < 6 && 0%{?fedora} == 0
%define php php53
# part of json support is now in php-common
Requires: %{php}-json
%else
%define php php
%endif
Name: @PACKAGE_NAME@
Version: @PACKAGE_VERSION@
Release: @PACKAGE_REVISION@
Summary: WEB UI for HOMER
Group: Applications/Communications
License: GPLv3
URL: @PACKAGE_URL@
Source0: %name-%version.tar.gz
Requires: homer-api = %version
%description
WEB UI for HOMER is a robust, carrier-grade, scalable SIP Capture system and Monitoring Application with HEP/HEP2, IP Proto4 (IPIP) encapsulation & port mirroring/monitoring support right out of the box, ready to process & store insane amounts of signaling with instant search, end-to-end analysis and drill-down capabilities for ITSPs, VoIP Providers and Trunk Suppliers using SIP signaling
%files
%defattr(0660,%{webuser},%{webgroup})
%dir %attr(2770,%{webuser},%{webgroup}) %{webroot}
%{webroot}/index.html
%{webroot}/css
%{webroot}/fonts
%{webroot}/img
%{webroot}/js
%{webroot}/lib
%{webroot}/share
%dir %attr(2770,%{webuser},%{webgroup}) %{webroot}/store
%dir %attr(2770,%{webuser},%{webgroup}) %{webroot}/store/dashboard
%dir %attr(2770,%{webuser},%{webgroup}) %{webroot}/store/profile
%{webroot}/store/index.html
%{webroot}/store/dashboard/index.html
%{webroot}/store/dashboard/*.json
%{webroot}/store/profile/index.html
%{webroot}/templates
%prep
%setup -b0 -q
%install
# UI and API directories and files
%{__mkdir} -p %{buildroot}%{webroot}
%{__cp} -r index.html %{buildroot}%{webroot}/index.html
%{__cp} -r css %{buildroot}%{webroot}
%{__cp} -r fonts %{buildroot}%{webroot}
%{__cp} -r img %{buildroot}%{webroot}
%{__cp} -r js %{buildroot}%{webroot}
%{__cp} -r lib %{buildroot}%{webroot}
%{__cp} -r share %{buildroot}%{webroot}
%{__cp} -r store %{buildroot}%{webroot}
%{__cp} -r templates %{buildroot}%{webroot}
%post
%preun
%postun